Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/overlayfs/copy_up.c ovl_copy_up_tmpfile() -> ovl_do_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->layers | s64min-(-4096),4096-s64max |
| PARAM_VALUE | 0 | ofs->noxattr | 1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_flctx->flc_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_io_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1808,2632,2648,2712 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_op | 4096-ptr_max |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_sb->s_cop->inode_info_offs | 1632,1808,2632,2648 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_wb->dwork->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_wb->dwork.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_wb->list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_wb->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_acl->a_refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_default_acl->a_refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->id | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->rcu.flags | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->rcu.is_hard | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->rcu.is_lazy | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->rcu.is_queued | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->rcu.is_soft | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->work.flags | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->work.is_hard | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->work.is_lazy | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->work.is_queued | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_private->work.is_soft | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_sb->s_fs_info->xa_cache.ht->nelems.counter | s32min-s32max |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_sb->s_fs_info->xa_cache.ht->tbl->hash_rnd | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_sb->s_fs_info->xa_cache.ht->tbl->nest | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_sb->s_fs_info->xa_cache.ht->tbl->size | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_security->flags | 0-4294967295 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_security->is_hard | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_security->is_lazy | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_security->is_queued | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_fsdata->d_inode->i_security->is_soft | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_parent->d_hash.next->pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | *old_dentry->d_parent->d_fsdata->d_inode->i_sb->s_fs_info->nm_info->nat_root.xa_head | (-4611686018427387904)-4611686018427387903 |
| 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 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| CAPPED_DATA | 1 | old_dentry | 1 |
| CAPPED_DATA | 1 | old_dentry->d_inode->i_sb->s_time_max | 1 |
| DATA_SOURCE | 3 | new_dentry | r ovl_start_creating_upper |
| PARAM_COMPARE | 1 | old_dentry->d_inode->i_sb->s_time_max | >= $1->d_inode->i_sb->s_time_min |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ofs | unit_byte |
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/overlayfs/copy_up.c ovl_link_up() -> ovl_do_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->layers | 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 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| DATA_SOURCE | 3 | new_dentry | r ovl_start_creating_upper |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ofs | unit_byte |
| HALF_LOCKED2 | &dentry->d_lockref.lock |
fs/overlayfs/dir.c ovl_create_real() -> ovl_do_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->layers | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->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_inode | 0 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs->config.lowerdirs | (-1),8 |
| BUF_SIZE | 0 | ofs->workdir | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| BUF_SIZE | 3 | new_dentry | (-1),1-s32max |
| DATA_SOURCE | 0 | ofs | $0 |
| DATA_SOURCE | 3 | new_dentry | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ofs->workbasedir_trap->__i_nlink | 1-u32max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_blocks | 0-u64max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_bytes | 0-511[c] |
| USER_DATA | 0 | ofs->workbasedir_trap->i_ino | 0-u64max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | ofs->workdir_trap->__i_nlink | 1-u32max |
| USER_DATA | 0 | ofs->workdir_trap->i_blocks | 0-u64max |
| USER_DATA | 0 | ofs->workdir_trap->i_bytes | 0-511[c] |
| USER_DATA | 0 | ofs->workdir_trap->i_ino | 0-u64max |
| USER_DATA | 0 | ofs->workdir_trap->i_rdev | 0-u32max[c] |
| USER_DATA | 2 | dir->i_mode | 0-u16max |
| USER_DATA | 2 | dir->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir->dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir->moved->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_size | |
| UNITS | 0 | ofs | unit_byte |
fs/overlayfs/dir.c ovl_whiteout() -> ovl_do_link()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->layers | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->no_shared_whiteout | 0 |
| PARAM_VALUE | 0 | ofs->whiteout | 1-u64max |
| PARAM_VALUE | 0 | ofs->whiteout->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ofs->whiteout->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ofs->workdir | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workdir->d_children->first->pprev | 1-u64max |
| PARAM_VALUE | 0 | ofs->workdir->d_children.first | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_bmap_bits | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_bmap_count | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_data_blksize | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_hashsize | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_last_bmap | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_mode | 0-u16max |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_partition_size | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_reserved | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->s_root_block | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workdir->d_sb->s_fs_info->work_queued | s32min-s32max |
| PARAM_VALUE | 1 | old_dentry | 1-u64max |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | old_dentry->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | dir->i_op->mknod | 0,4096-ptr_max |
| PARAM_VALUE | 3 | new_dentry | 4096-ptr_max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs->config.lowerdirs | (-1),8 |
| BUF_SIZE | 0 | ofs->whiteout | (-1)-s32max |
| BUF_SIZE | 0 | ofs->workdir | (-1),1-s32max |
| BUF_SIZE | 1 | old_dentry | (-1)-s32max |
| BUF_SIZE | 1 | old_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| BUF_SIZE | 3 | new_dentry | (-1)-s32max |
| DATA_SOURCE | 0 | ofs | $0 |
| DATA_SOURCE | 3 | new_dentry | r ovl_start_creating_temp |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ofs->workbasedir_trap->__i_nlink | 1-u32max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_blocks | 0-u64max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_bytes | 0-511[c] |
| USER_DATA | 0 | ofs->workbasedir_trap->i_ino | 0-u64max |
| USER_DATA | 0 | ofs->workbasedir_trap->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | ofs->workdir_trap->__i_nlink | 1-u32max |
| USER_DATA | 0 | ofs->workdir_trap->i_blocks | 0-u64max |
| USER_DATA | 0 | ofs->workdir_trap->i_bytes | 0-511[c] |
| USER_DATA | 0 | ofs->workdir_trap->i_ino | 0-u64max |
| USER_DATA | 0 | ofs->workdir_trap->i_rdev | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workbasedir_trap->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_size | |
| UNITS | 0 | ofs | unit_byte |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | 0 | &ofs->workdir->d_lockref.lock |