Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/overlayfs/export.c ovl_lookup_real_inode() -> ovl_index_upper()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->config.index | 1 |
| PARAM_VALUE | 0 | ofs->workdir->d_children->first->pprev | 1-u64max |
| 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 | 2212933610777083904 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| 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 | index | 4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_data.host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_rdev | 0 |
| PARAM_VALUE | 1 | index->d_inode->i_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | index->d_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | index->d_inode->i_sb->s_cop->inode_info_offs | 1632,1808,2632,2648,2712 |
| PARAM_VALUE | 1 | index->d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 1 | index->d_op->d_dname | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 1 | index->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 1 | index->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 1 | index->d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 1 | index->d_op->d_weak_revalidate | 0,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 2 | connected | 1 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 1 | index | (-1),1-s32max |
| BUF_SIZE | 1 | index | (-1),1-s32max |
| DATA_SOURCE | 1 | index | r ovl_lookup_index |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | index->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 1 | index->d_sb->s_blocksize_bits | |
| UNITS | 0 | ofs | unit_byte |
| HALF_LOCKED2 | &real->d_lockref.lock |
fs/overlayfs/export.c ovl_lower_fh_to_d() -> ovl_index_upper()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->config.index | 1 |
| 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_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 | 2212933610777083904 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | ofs->workdir->d_inode->i_rwsem.first_waiter->type | 0-1 |
| 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 | index | 4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_data.host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode->i_sb->s_cop->inode_info_offs | 1632,1808,2632,2648,2712 |
| PARAM_VALUE | 1 | index->d_op->d_automount | 0,2908707185815040000,3401111987815645184,6746145930460459008,7190988915944083456,7386785427940065280,8018779550845526016 |
| PARAM_VALUE | 1 | index->d_op->d_dname | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_init | 0,2385819921126617088,7057831443282669568,7824184004865302528 |
| PARAM_VALUE | 1 | index->d_op->d_iput | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_manage | 0,1859587847549206528 |
| PARAM_VALUE | 1 | index->d_op->d_prune | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_real | 0,4096-ptr_max |
| PARAM_VALUE | 1 | index->d_op->d_unalias_trylock | 0,6635409759016140800 |
| PARAM_VALUE | 1 | index->d_op->d_unalias_unlock | 0,6336447517789900800 |
| PARAM_VALUE | 1 | index->d_op->d_weak_revalidate | 0,5632434648052031488,5669063523602272256,7231033168839651328 |
| PARAM_VALUE | 2 | connected | 1 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 1 | index | (-1),1-s32max |
| BUF_SIZE | 1 | index | (-1),1-s32max |
| CAPPED_DATA | 1 | index | 1 |
| DATA_SOURCE | 1 | index | r ovl_get_index_fh |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | index->d_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 1 | index->d_sb->s_blocksize_bits | |
| UNITS | 0 | ofs | unit_byte |
fs/overlayfs/namei.c ovl_verify_index() -> ovl_index_upper()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ofs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->config.fsync_mode | 1 |
| PARAM_VALUE | 0 | ofs->config.index | 1 |
| PARAM_VALUE | 0 | ofs->config.lowerdirs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->config.metacopy | 0 |
| PARAM_VALUE | 0 | ofs->config.nfs_export | 0 |
| PARAM_VALUE | 0 | ofs->config.redirect_mode | 2-3 |
| PARAM_VALUE | 0 | ofs->config.uuid | 1 |
| PARAM_VALUE | 0 | ofs->config.workdir | 0 |
| PARAM_VALUE | 0 | ofs->fs | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->last_ino.counter | 1 |
| PARAM_VALUE | 0 | ofs->layers | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->namelen | 0-s64max |
| PARAM_VALUE | 0 | ofs->numlayer | 2-u32max |
| 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 | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_inode->i_lock.rlock.dep_map->name | 0-255 |
| 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->workbasedir->d_sb->s_fs_info->s_bmap_bits | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_bmap_count | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_data_blksize | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_hashsize | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_last_bmap | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_mode | 0-u16max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_partition_size | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_reserved | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->s_root_block | 0-4294967295 |
| PARAM_VALUE | 0 | ofs->workbasedir->d_sb->s_fs_info->work_queued | s32min-s32max |
| PARAM_VALUE | 0 | ofs->workdir | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workdir->d_hash.pprev | 0 |
| 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 | 0 | ofs->workdir->d_inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | ofs->workdir->waiters | 0 |
| PARAM_VALUE | 0 | ofs->workdir_trap | 4096-ptr_max |
| PARAM_VALUE | 0 | ofs->workdir_trap->i_flags | 16 |
| PARAM_VALUE | 0 | ofs->workdir_trap->i_mode | 16384 |
| PARAM_VALUE | 0 | ofs->workdir_trap->i_rwsem.first_waiter | 0 |
| PARAM_VALUE | 0 | ofs->xino_mode | (-1)-s32max |
| PARAM_VALUE | 1 | index | 4096-ptr_max |
| PARAM_VALUE | 1 | index->d_inode | 4096-ptr_max |
| PARAM_VALUE | 1 | index->d_name.len | 42-u32max |
| PARAM_VALUE | 1 | index->d_name.name | 4096-ptr_max |
| PARAM_VALUE | 2 | connected | 0 |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs | 1-s32max |
| BUF_SIZE | 0 | ofs->config.lowerdirs | 8 |
| BUF_SIZE | 0 | ofs->workdir | (-1),1-s32max |
| BUF_SIZE | 1 | index | (-1)-s32max |
| BUF_SIZE | 1 | index | (-1)-s32max |
| CAPPED_DATA | 0 | ofs->workbasedir | 1 |
| DATA_SOURCE | 0 | ofs | $0 |
| DATA_SOURCE | 1 | index | $1 |
| FUZZY_MAX | 1 | index->d_name.len | 42 |
| 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 | 1 | index->d_inode->i_mode | 0-u16max |
| USER_DATA | 1 | index->d_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | ofs->workdir_trap->i_size | |
| UNITS | 0 | ofs | unit_byte |
| UNITS | 1 | index | unit_jiffy |
| HALF_LOCKED2 | &fc->uapi_mutex | ||
| HALF_LOCKED2 | &indexdir->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | 0 | &ofs->workdir->d_lockref.lock | |
| HALF_LOCKED2 | 1 | &index->d_lockref.lock |