Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/namei.c vfs_rename() -> d_exchange()

Type Parameter Key Value
PARAM_VALUE 0 dentry1 4096-ptr_max
PARAM_VALUE 0 dentry1->d_inode 4096-ptr_max
PARAM_VALUE 0 dentry1->d_inode->i_mapping->host->i_sb->s_cop->inode_info_offs 1632,1720,2632,2648
PARAM_VALUE 0 dentry1->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 dentry2 4096-ptr_max
PARAM_VALUE 1 dentry2->d_inode 0,4096-ptr_max
PARAM_VALUE 1 dentry2->d_inode->i_mapping->host->i_sb->s_cop->inode_info_offs 1632,1720,2632,2648
PARAM_VALUE 1 dentry2->d_inode->i_rwsem.first_waiter->type 0-1
CAPPED_DATA 0 dentry1 1
CAPPED_DATA 0 dentry1->d_parent->d_inode 1
CAPPED_DATA 1 dentry2 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 dentry1->d_inode->i_mode 0-u16max
USER_DATA 1 dentry2->d_inode->i_mode 0-u16max
UNITS 1 dentry2 unit_jiffy
HALF_LOCKED2 &source->i_rwsem
HALF_LOCKED2 &target->i_rwsem

security/selinux/selinuxfs.c sel_make_policy_nodes() -> d_exchange()

Type Parameter Key Value
PARAM_VALUE 0 dentry1 4096-ptr_max
PARAM_VALUE 0 dentry1->d_hash.pprev 1-u64max
PARAM_VALUE 0 dentry1->d_parent 4096-ptr_max
PARAM_VALUE 0 dentry1->d_parent->d_inode 4096-ptr_max
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.osq.tail.counter 0-s32max
PARAM_VALUE 0 dentry1->d_sb 4096-ptr_max
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.dep_map->name 0-255
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 1 dentry2 4096-ptr_max
PARAM_VALUE 1 dentry2->d_hash.pprev 1-u64max
PARAM_VALUE 1 dentry2->d_inode 4096-ptr_max
PARAM_VALUE 1 dentry2->d_parent 4096-ptr_max
CAPPED_DATA 0 dentry1 1
CAPPED_DATA 0 dentry1->d_parent 1
CAPPED_DATA 1 dentry2->d_parent 1
DATA_SOURCE 0 dentry1 r sel_make_dir
NOCHECK_CALL
UNITS 1 dentry2 unit_jiffy
LOCK2 global &selinux_state.policy_mutex
TYPE_LOCK (struct selinux_state)->policy_mutex

security/selinux/selinuxfs.c sel_make_policy_nodes() -> d_exchange()

Type Parameter Key Value
PARAM_VALUE 0 dentry1 4096-ptr_max
PARAM_VALUE 0 dentry1->d_children->first->pprev 1-u64max
PARAM_VALUE 0 dentry1->d_children.first 4096-ptr_max
PARAM_VALUE 0 dentry1->d_children.first->pprev 0
PARAM_VALUE 0 dentry1->d_hash.pprev 1-u64max
PARAM_VALUE 0 dentry1->d_parent 4096-ptr_max
PARAM_VALUE 0 dentry1->d_parent->d_inode 4096-ptr_max
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 dentry1->d_parent->d_inode->i_rwsem.osq.tail.counter 0-s32max
PARAM_VALUE 0 dentry1->d_sb 4096-ptr_max
PARAM_VALUE 0 dentry1->d_sb->__s_d_op 0,4096-ptr_max
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.dep_map->name 0-255
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 dentry1->d_sb->s_vfs_rename_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 1 dentry2 4096-ptr_max
PARAM_VALUE 1 dentry2->d_hash.pprev 1-u64max
PARAM_VALUE 1 dentry2->d_inode 4096-ptr_max
PARAM_VALUE 1 dentry2->d_parent 4096-ptr_max
CAPPED_DATA 0 dentry1 1
CAPPED_DATA 0 dentry1->d_parent 1
CAPPED_DATA 1 dentry2->d_parent 1
DATA_SOURCE 0 dentry1 r sel_make_dir
NOCHECK_CALL
UNITS 1 dentry2 unit_jiffy
LOCK2 global &selinux_state.policy_mutex
TYPE_LOCK (struct selinux_state)->policy_mutex

fs/afs/dir.c afs_rename_exchange_edit_dir() -> d_exchange()

Type Parameter Key Value
BUF_SIZE 0 dentry1 (-1),1-s32max
BUF_SIZE 0 dentry1 (-1),1-s32max
BUF_SIZE 1 dentry2 (-1)-s32max
BUF_SIZE 1 dentry2 (-1)-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 dentry1->__d_name.hash 0-u32max[c]
USER_PTR 0 dentry1->__d_name.name
LOCK2 &orig_dvnode->validate_lock
HALF_LOCKED2 &dvnode->rmdir_lock
HALF_LOCKED2 &target->i_rwsem
TYPE_LOCK (struct afs_vnode)->validate_lock

fs/afs/dir.c afs_rename_exchange_edit_dir() -> d_exchange()

Type Parameter Key Value
PARAM_VALUE 0 dentry1 4096-ptr_max
PARAM_VALUE 1 dentry2 4096-ptr_max
BUF_SIZE 0 dentry1 (-1),1-s32max
BUF_SIZE 0 dentry1 (-1),1-s32max
BUF_SIZE 1 dentry2 (-1)-s32max
BUF_SIZE 1 dentry2 (-1)-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 dentry1->__d_name.hash 0-u32max[c]
USER_PTR 0 dentry1->__d_name.name
LOCK2 &new_dvnode->validate_lock
HALF_LOCKED2 &dvnode->rmdir_lock
HALF_LOCKED2 &target->i_rwsem
TYPE_LOCK (struct afs_vnode)->validate_lock