Defined in 2 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/md/dm-ioctl.c dev_remove() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md->open_count.counter | 0 |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 1 |
| BUF_SIZE | 0 | hc | (-1),88 |
| BUF_SIZE | 0 | hc | (-1),88 |
| DATA_SOURCE | 0 | hc | r __find_device_hash_cell |
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c dm_hash_remove_all() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md | 4096-ptr_max |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 1 |
| UNITS | 0 | hc | unit_byte |
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c dm_hash_rename() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md->disk | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md->io_barrier.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hc->md->io_barrier.srcu_ctrp | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->name | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->name_node.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | hc->name_node.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->name_node.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->name_set | 1 |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| CAPPED_DATA | 0 | hc->md->io_barrier.srcu_ctrp | 1 |
| DATA_SOURCE | 0 | hc | r __get_name_cell |
| NOCHECK_CALL | |||
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c dm_ima_need_measure() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 1-u64max |
| PARAM_VALUE | 1 | context | 4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| BUF_SIZE | 0 | hc | 88 |
| DATA_SOURCE | 1 | context | $2 |
| NOCHECK_CALL | |||
| LOCK2 | global &_hash_lock | ||
| HALF_LOCKED2 | &md->io_barrier |
drivers/md/dm-ioctl.c do_resume() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map | 0 |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| BUF_SIZE | 0 | hc | (-1),88 |
| BUF_SIZE | 0 | hc | (-1),88 |
| DATA_SOURCE | 0 | hc | r __find_device_hash_cell |
| NOCHECK_CALL | |||
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c do_resume() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->md->suspend_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | hc->md->suspend_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hc->md->suspend_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | hc->md->suspend_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | hc->new_map | 1-u64max |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| BUF_SIZE | 0 | hc | 88 |
| NOCHECK_CALL | |||
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c table_clear() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map | 0 |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| BUF_SIZE | 0 | hc | (-1),88 |
| BUF_SIZE | 0 | hc | (-1),88 |
| DATA_SOURCE | 0 | hc | r __find_device_hash_cell |
| NOCHECK_CALL | |||
| LOCK2 | global &_hash_lock |
drivers/md/dm-ioctl.c table_load() -> dm_ima_init_context()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | hc | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map->crypto_profile | 0,4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map->depth | 1-2147483648 |
| PARAM_VALUE | 0 | hc->new_map->flush_bypasses_map | 0 |
| PARAM_VALUE | 0 | hc->new_map->md | 1-u64max |
| PARAM_VALUE | 0 | hc->new_map->mempools | 4096-ptr_max |
| PARAM_VALUE | 0 | hc->new_map->mode | 1,3 |
| PARAM_VALUE | 0 | hc->new_map->num_allocated | 8-1048576 |
| PARAM_VALUE | 0 | hc->new_map->num_targets | 1-1048576 |
| PARAM_VALUE | 0 | hc->new_map->type | 1-u32max |
| PARAM_VALUE | 1 | context | 0,4096-ptr_max |
| PARAM_VALUE | 2 | need_idx | 0 |
| BUF_SIZE | 0 | hc | 88 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | hc->new_map->num_allocated | |
| LOCK2 | global &_hash_lock |