Defined in 1 files as a function:
Referenced in 12 files:
- fs/afs/dir.c
- fs/cachefiles/namei.c, line 343
- fs/namei.c
- fs/nfs/internal.h, line 42
- fs/smb/client/inode.c, line 2558
- fs/xfs/scrub/orphanage.c, line 453
- fs/xfs/scrub/trace.h, line 3323
- kernel/audit_watch.c, line 357
- security/apparmor/path.c, line 160
- security/landlock/fs.c, line 397
- security/security.c
- security/smack/smack_lsm.c
Smatch caller information:
security/security.c security_inode_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| CAPPED_DATA | 0 | dentry | 1 |
| DATA_SOURCE | 0 | dentry | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| UNITS | 0 | dentry | unit_jiffy |
security/security.c security_path_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dentry | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| UNITS | 0 | dentry | unit_jiffy |
fs/nfs/nfs3proc.c nfs_lookup_is_soft_revalidate() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry->d_parent | s32min,(-1)-s32max |
| DATA_SOURCE | 0 | dentry | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| USER_DATA | 0 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 0 | dentry->d_name->name | 0-255 |
| USER_DATA | 0 | dentry->d_parent->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | *dentry->__d_name.name | 0-255 |
| USER_DATA | 0 | *dentry->d_parent->__d_name.name | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->moved->d_inode->i_size | |
| USER_PTR | 0 | dentry->__d_name.name | |
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
security/landlock/fs.c is_nouser_or_private() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| DATA_SOURCE | 0 | dentry | $0 |
| BIT_INFO | 0 | dentry->d_sb->s_flags | 0x0,0xffffffff7fffffff |
| UNITS | 0 | dentry | unit_jiffy |
security/apparmor/path.c d_namespace_path() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | dentry->d_hash.pprev | 0 |
| CAPPED_DATA | 0 | dentry | 1 |
| PARAM_COMPARE | 0 | dentry | != $0->d_parent |
| PARAM_COMPARE | 0 | dentry | != $0->d_parent |
fs/cachefiles/namei.c cachefiles_bury_object() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 0 |
| BUF_SIZE | 0 | dentry | 0 |
| HALF_LOCKED2 | &cache->daemon_mutex | ||
| HALF_LOCKED2 | &cache->store->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dir->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
security/smack/smack_lsm.c smack_inode_link() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dentry | $2 |
security/smack/smack_lsm.c smack_inode_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dentry | $3 |
fs/namei.c lookup_one_qstr_excl() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry->d_parent | (-1),1-s32max |
| STR_LEN | 0 | dentry->d_parent | (-1),1-24,26-27,29,31-34,63,99,115,254-255 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_parent->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_parent->d_inode->i_mode | 0-u16max |
| USER_DATA | 0 | dentry->d_parent->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 0 | dentry->d_parent->d_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | dentry->d_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | *dentry->__d_name.name | 0-255 |
| USER_DATA | 0 | *dentry->d_parent->__d_name.name | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| USER_PTR | 0 | dentry->__d_name.name | |
| USER_PTR | 0 | dentry->d_parent->__d_name.name | |
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
fs/namei.c start_creating_dentry() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | 1-s32max |
| BUF_SIZE | 0 | dentry | 1-s32max |
| CAPPED_DATA | 0 | dentry->d_parent | 1 |
| DATA_SOURCE | 0 | dentry | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &parent->d_inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/namei.c start_renaming_two_dentries() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| CAPPED_DATA | 0 | dentry->d_parent | 1 |
| DATA_SOURCE | 0 | dentry | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| USER_DATA | 0 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| UNITS | 0 | dentry | unit_jiffy |
| HALF_LOCKED2 | &old_dentry->d_sb->s_vfs_rename_mutex | ||
| HALF_LOCKED2 | &rd->new_parent->d_inode->i_rwsem | ||
| HALF_LOCKED2 | global &selinux_state.policy_mutex | ||
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
fs/xfs/scrub/orphanage.c xrep_adoption_check_dcache() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dentry | r try_lookup_noperm |
kernel/audit_watch.c audit_get_nd() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| DATA_SOURCE | 0 | dentry | r kern_path_parent |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| LOCK2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
fs/nfs/nfs4proc.c nfs_lookup_is_soft_revalidate() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | (-1),1-s32max |
| BUF_SIZE | 0 | dentry | (-1),1-s32max |
| BUF_SIZE | 0 | dentry->d_parent | s32min,(-1)-s32max |
| DATA_SOURCE | 0 | dentry | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| USER_DATA | 0 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 0 | dentry->d_name->name | 0-255 |
| USER_DATA | 0 | dentry->d_parent->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | *dentry->__d_name.name | 0-255 |
| USER_DATA | 0 | *dentry->d_parent->__d_name.name | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| UNITS | 0 | dentry | unit_jiffy |
| USER_PTR | 0 | dentry->__d_name.name | |
| HALF_LOCKED2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
fs/nfs/proc.c nfs_lookup_is_soft_revalidate() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry | (-1)-s32max |
| BUF_SIZE | 0 | dentry->d_parent | s32min,(-1)-s32max |
| DATA_SOURCE | 0 | dentry | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| USER_DATA | 0 | dentry->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 0 | dentry->d_name->name | 0-255 |
| USER_DATA | 0 | dentry->d_parent->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | dentry->d_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | *dentry->__d_name.name | 0-255 |
| USER_DATA | 0 | *dentry->d_parent->__d_name.name | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->d_sb->s_blocksize_bits | |
| NO_OVERFLOW_SIMPLE | 0 | dentry->moved->d_inode->i_size | |
| USER_PTR | 0 | dentry->__d_name.name | |
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
fs/smb/client/inode.c cifs_rename2() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| CAPPED_DATA | 0 | dentry | 1 |
| DATA_SOURCE | 0 | dentry | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
fs/afs/dir.c afs_lookup_atsys() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| DATA_SOURCE | 0 | dentry | r lookup_noperm |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | 0 | &dentry->d_lockref.lock |
fs/afs/dir.c afs_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| CAPPED_DATA | 0 | dentry | 1 |
| DATA_SOURCE | 0 | dentry | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
fs/afs/dir.c afs_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| CAPPED_DATA | 0 | dentry | 1 |
| DATA_SOURCE | 0 | dentry | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dentry->d_inode->i_mode | 0-u16max |
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
security/selinux/hooks.c may_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | dentry | $3 |
security/selinux/hooks.c may_rename() -> d_is_positive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dentry | 4096-ptr_max |
| DATA_SOURCE | 0 | dentry | $3 |