Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/coredump.c coredump_file() -> do_truncate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_hash.pprev | 1-u64max |
| PARAM_VALUE | 2 | length | 0 |
| PARAM_VALUE | 3 | time_attrs | 0 |
| PARAM_VALUE | 4 | filp | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_inode->i_nlink | 0-1 |
| PARAM_VALUE | 4 | filp->f_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry->d_hash.pprev | 1-u64max |
| PARAM_VALUE | 4 | filp->f_path.mnt | 4096-ptr_max |
| BUF_SIZE | 4 | filp | (-1)-s32max |
| BUF_SIZE | 4 | filp | (-1)-s32max |
| DATA_SOURCE | 0 | idmap | r file_mnt_idmap |
| DATA_SOURCE | 4 | filp | r filp_open |
| FUZZY_MAX | 4 | filp->f_inode->i_nlink | 1 |
| BIT_INFO | 4 | filp->f_mode | 0x40000,0xffffffff |
| HARD_MAX | 4 | filp->f_inode->i_nlink | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/namei.c handle_truncate() -> do_truncate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode->i_writecount.counter | 0-s32max |
| PARAM_VALUE | 2 | length | 0 |
| PARAM_VALUE | 3 | time_attrs | 32864 |
| PARAM_VALUE | 4 | filp | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_mode | 0,131072-u32max |
| PARAM_VALUE | 4 | filp->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry->d_inode->i_writecount.counter | 0-s32max |
| DATA_SOURCE | 0 | idmap | $0 |
| DATA_SOURCE | 4 | filp | $1 |
| NO_OVERFLOW_SIMPLE | 4 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 4 | filp->f_inode->i_size |
fs/open.c do_ftruncate() -> do_truncate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 3 | time_attrs | 96 |
| PARAM_VALUE | 4 | filp | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry->d_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 4 | filp->f_path.dentry->d_inode->i_sb->s_iflags | 16384-u64max |
| PARAM_VALUE | 4 | filp->f_path.mnt | 4096-ptr_max |
| CAPPED_DATA | 4 | filp->f_path.dentry | 1 |
| DATA_SOURCE | 2 | length | $1 |
| DATA_SOURCE | 4 | filp | $0 |
| BIT_INFO | 4 | filp->f_mode | 0x2,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | length | 0-s64max |
fs/open.c vfs_truncate() -> do_truncate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dentry | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 1 | dentry->d_inode->i_sb->s_iflags | 16384-u64max |
| PARAM_VALUE | 1 | dentry->d_inode->i_writecount.counter | 0-s32max |
| PARAM_VALUE | 3 | time_attrs | 0 |
| PARAM_VALUE | 4 | filp | 0 |
| CAPPED_DATA | 1 | dentry | 1 |
| DATA_SOURCE | 2 | length | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | length | (-9223372036854771712)-s64max[c] |
| HALF_LOCKED2 | &key->sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &zone->lock |