Documented in 1 files:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/namei.c dentry_create() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->atomic_open | 4096-ptr_max |
| PARAM_VALUE | 3 | mask_perms | 4095 |
| PARAM_VALUE | 4 | type | 32768 |
| DATA_SOURCE | 2 | mode | $2 |
fs/namei.c lookup_open() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->atomic_open | 0,4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->create | 0,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 |
| BIT_INFO | 1 | dir->i_flags | 0x0,0xffffffef |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | mode | 32768-36862[c] |
| USER_DATA | 3 | mask_perms | 32768-36862[c] |
| USER_DATA | 4 | type | 32768-36862[c] |
| LOCK2 | 1 | &dir->i_rwsem | |
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/namei.c vfs_create() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->create | 4096-ptr_max |
| PARAM_VALUE | 3 | mask_perms | 4095 |
| PARAM_VALUE | 4 | type | 32768 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->gid_map.nr_extents | 1 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->uid_map.nr_extents | 1 |
| DATA_SOURCE | 0 | idmap | $0 |
| DATA_SOURCE | 2 | mode | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | mode | 0-u16max |
fs/namei.c vfs_mkdir() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->mkdir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | dir->i_sb | 4096-ptr_max |
| PARAM_VALUE | 3 | mask_perms | 1023 |
| PARAM_VALUE | 4 | type | 16384 |
| BUF_SIZE | 1 | dir | (-1),1160 |
| BUF_SIZE | 1 | dir | (-1),1160 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->gid_map.nr_extents | 1 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->uid_map.nr_extents | 1 |
| DATA_SOURCE | 0 | idmap | $0 |
| DATA_SOURCE | 1 | dir | $1 |
| DATA_SOURCE | 2 | mode | $3 |
| 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 | 2 | mode | 0-u16max |
fs/namei.c vfs_mknod() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->mknod | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | dir->i_rwsem.first_waiter->type | 0-1 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->gid_map.nr_extents | 1 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->uid_map.nr_extents | 1 |
| DATA_SOURCE | 0 | idmap | $0 |
| DATA_SOURCE | 1 | dir | $1 |
| DATA_SOURCE | 2 | mode | $3 |
| DATA_SOURCE | 3 | mask_perms | $3 |
| DATA_SOURCE | 4 | type | $3 |
| 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 | 2 | mode | 0-u16max |
| USER_DATA | 3 | mask_perms | 0-u16max |
| USER_DATA | 4 | type | 0-u16max |
| HALF_LOCKED2 | _T->lock |
fs/namei.c vfs_tmpfile() -> vfs_prepare_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dir | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_op->tmpfile | 4096-ptr_max |
| PARAM_VALUE | 1 | dir->i_sb | 4096-ptr_max |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->gid_map.nr_extents | 1 |
| CAPPED_DATA | 1 | dir->i_sb->s_user_ns->uid_map.nr_extents | 1 |
| DATA_SOURCE | 0 | idmap | $0 |
| DATA_SOURCE | 2 | mode | $3 |
| DATA_SOURCE | 3 | mask_perms | $3 |
| DATA_SOURCE | 4 | type | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | mode | 0-u16max |
| USER_DATA | 3 | mask_perms | 0-u16max |
| USER_DATA | 4 | type | 0-u16max |