Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/base/devtmpfs.c, line 182
- fs/cachefiles/namei.c, line 132
- fs/ecryptfs/inode.c, line 519
- fs/namei.c
- fs/nfsd/nfs4recover.c, line 163
- fs/nfsd/vfs.c, line 1833
- fs/overlayfs/overlayfs.h, line 257
- fs/smb/server/vfs.c, line 205
- fs/xfs/scrub/orphanage.c, line 168
Smatch caller information:
fs/cachefiles/namei.c cachefiles_get_directory() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_op->d_dname | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 3 | mode | 448 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| HALF_LOCKED2 | &cache->daemon_mutex |
fs/ecryptfs/inode.c ecryptfs_mkdir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_parent | 0,4096-ptr_max |
| PARAM_VALUE | 3 | mode | 16384-17407 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | 1-s32max |
| BUF_SIZE | 2 | dentry | 1-s32max |
| DATA_SOURCE | 2 | dentry | r ecryptfs_start_creating_dentry |
| DATA_SOURCE | 3 | mode | $3 |
| BIT_INFO | 3 | mode | 0x4000,0x7fff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/namei.c filename_mkdirat() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | dir->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | dir->i_sb | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_op->d_dname | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 2 | dentry->d_parent->d_sb->__s_d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_iput | 0,170374395438985216,837750826476904448,5086081384299388928,8216155483032948736 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_prune | 0,2225594340392566784,7225953709177749504 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_real | 0,4509355519306412032 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 2 | dentry->d_sb->__s_d_op->d_weak_revalidate | 0,1549882712720502784,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 4 | delegated_inode | 2998680122532675584 |
| PARAM_VALUE | 4 | delegated_inode->di_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| DATA_SOURCE | 2 | dentry | r filename_create |
| DATA_SOURCE | 3 | mode | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 3 | mode | 0-u16max |
fs/xfs/scrub/orphanage.c xrep_orphanage_create() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_dentry.first | 1-u64max |
| PARAM_VALUE | 1 | dir->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode | 0 |
| PARAM_VALUE | 3 | mode | 488 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 1 | dir | 1160 |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| DATA_SOURCE | 1 | dir | r VFS_I |
| DATA_SOURCE | 2 | dentry | r start_creating_noperm |
| CAPABLE | 0 | 21 |
fs/overlayfs/dir.c ovl_do_mkdir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode | 0 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| DATA_SOURCE | 1 | dir | $1 |
| DATA_SOURCE | 2 | dentry | $2 |
| DATA_SOURCE | 3 | mode | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | dir->i_mode | 0-u16max |
| USER_DATA | 1 | dir->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 3 | mode | 0-u16max |
fs/overlayfs/super.c ovl_do_mkdir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode | 0 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dentry->d_op->d_dname | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dentry->d_parent->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 3 | mode | 16384 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| DATA_SOURCE | 1 | dir | $1 |
| DATA_SOURCE | 2 | dentry | $2 |
| DATA_SOURCE | 3 | mode | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | dentry->d_inode->i_mode | 0-u16max |
| USER_DATA | 2 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| UNITS | 2 | dentry | unit_jiffy |
| HALF_LOCKED2 | &fc->uapi_mutex | ||
| HALF_LOCKED2 | &ofs->workbasedir->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &ofs->workdir->d_lockref.lock | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | 2 | &dentry->d_lockref.lock |
fs/nfsd/vfs.c nfsd_create_locked() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_sb | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| DATA_SOURCE | 2 | dentry | r dget |
fs/smb/server/vfs.c ksmbd_vfs_mkdir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| DATA_SOURCE | 2 | dentry | r ksmbd_vfs_kern_path_create |
| DATA_SOURCE | 3 | mode | $2 [m] |
| BIT_INFO | 3 | mode | 0x4000,0xffff |
drivers/base/devtmpfs.c dev_mkdir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 3 | mode | 493 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| BUF_SIZE | 2 | dentry | (-1),1-s32max |
| DATA_SOURCE | 2 | dentry | r start_creating_path |
| DATA_SOURCE | 3 | mode | $1 |
fs/nfsd/nfs4recover.c nfsd4_create_clid_dir() -> vfs_mkdir()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | idmap | 1531479832127729664 |
| PARAM_VALUE | 2 | dentry | 4096-ptr_max |
| PARAM_VALUE | 2 | dentry->d_inode | 0 |
| PARAM_VALUE | 3 | mode | 448 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| BUF_SIZE | 2 | dentry | (-1)-s32max |
| DATA_SOURCE | 2 | dentry | r start_creating |