Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/cachefiles/namei.c, line 692
- fs/ecryptfs/inode.c, line 443
- fs/namei.c
- fs/nfsd/vfs.c, line 2094
- fs/overlayfs/overlayfs.h, line 233
- fs/smb/server/vfs.c, line 649
Smatch caller information:
fs/cachefiles/namei.c cachefiles_commit_tmpfile() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | idmap | 1531479832127729664 |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 3 | new_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 3 | new_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 3 | new_dentry->d_parent->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 3 | new_dentry->d_parent->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| LOCK2 | &pool->lock |
fs/overlayfs/copy_up.c ovl_do_link() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | old_dentry->d_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | old_dentry->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 0 | old_dentry->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 0 | old_dentry->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dir->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dir->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| DATA_SOURCE | 0 | old_dentry | $1 |
| DATA_SOURCE | 2 | dir | $2 |
| DATA_SOURCE | 3 | new_dentry | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | old_dentry->dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | old_dentry->moved->d_inode->i_size | |
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/ecryptfs/inode.c ecryptfs_link() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | idmap | 1531479832127729664 |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 3 | new_dentry->d_parent | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 0 | old_dentry | 1-s32max |
| BUF_SIZE | 0 | old_dentry | 1-s32max |
| BUF_SIZE | 3 | new_dentry | 1-s32max |
| BUF_SIZE | 3 | new_dentry | 1-s32max |
| DATA_SOURCE | 3 | new_dentry | r ecryptfs_start_creating_dentry |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/namei.c filename_linkat() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | old_dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | old_dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 2 | dir->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 3 | new_dentry->d_parent->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 3 | new_dentry->d_parent->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 4 | delegated_inode | 6320029024165384192 |
| PARAM_VALUE | 4 | delegated_inode->di_inode | 0 |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| DATA_SOURCE | 3 | new_dentry | r filename_create |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/overlayfs/dir.c ovl_do_link() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir->i_op->mknod | 0,4096-ptr_max |
| PARAM_VALUE | 2 | dir->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 0 | old_dentry | (-1),1-s32max |
| BUF_SIZE | 0 | old_dentry | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| DATA_SOURCE | 0 | old_dentry | $1 |
| DATA_SOURCE | 2 | dir | $2 |
| DATA_SOURCE | 3 | new_dentry | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | dir->i_mode | 0-u16max |
| USER_DATA | 2 | dir->i_size | (-9223372036854775807)-(-4),0-s64max |
| HALF_LOCKED2 | _T->lock |
fs/nfsd/vfs.c nfsd_link() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | old_dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | old_dentry->d_inode | 1-u64max |
| PARAM_VALUE | 1 | idmap | 1531479832127729664 |
| PARAM_VALUE | 2 | dir->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dir->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 2 | dir->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| DATA_SOURCE | 3 | new_dentry | r start_creating |
fs/smb/server/vfs.c ksmbd_vfs_link() -> vfs_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | delegated_inode | 0 |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| DATA_SOURCE | 3 | new_dentry | r ksmbd_vfs_kern_path_create |
| LOCK2 | &pool->lock |