Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
ipc/shm.c __shm_close() -> shm_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns->ids | 4096-ptr_max |
| PARAM_VALUE | 1 | shp | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_lprid | 0,4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_nattch | 0 |
| DATA_SOURCE | 1 | shp | r shm_lock |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ipcp->lock | ||
| LOCK2 | rcu_read |
ipc/shm.c do_shm_rmid() -> shm_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns->ids | 4096-ptr_max |
| PARAM_VALUE | 1 | shp | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_nattch | 0 |
| DATA_SOURCE | 0 | ns | $0 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ns | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &ids->rwsem | ||
| HALF_LOCKED2 | &ipcp->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &shp->shm_perm.lock | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
ipc/shm.c do_shmat() -> shm_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns->ids | 4096-ptr_max |
| PARAM_VALUE | 1 | shp | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_file->f_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | shp->shm_file->f_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | shp->shm_nattch | 0 |
| PARAM_VALUE | 1 | shp->shm_perm.lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 1 | shp | r shm_lock |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ipcp->lock | ||
| HALF_LOCKED2 | rcu_read |
ipc/shm.c exit_shm() -> shm_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ids | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->ns.__ns_ref.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | ns->shm_rmid_forced | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | shp | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->ns | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_clist.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_clist.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_nattch | 0 |
| PARAM_VALUE | 1 | shp->shm_perm.deleted | 0 |
| PARAM_COMPARE | 0 | ns | == $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ns | unit_byte |
| LOCK2 | rcu_read | ||
| LOCK2 | 1 | &shp->shm_perm.lock | |
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
ipc/shm.c shm_try_destroy_orphaned() -> shm_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | shp | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_clist.next | 4096-ptr_max |
| PARAM_VALUE | 1 | shp->shm_nattch | 0 |
| CAPPED_DATA | 1 | &shp->shm_clist | 1 |
| DATA_SOURCE | 0 | ns | $2 |
| PARAM_COMPARE | 1 | &shp->shm_clist | == $1->shm_clist.next |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ns | unit_byte |
| LOCK2 | rcu_read | ||
| LOCK2 | 1 | &shp->shm_perm.lock | |
| HALF_LOCKED2 | &ab->core_lock | ||
| HALF_LOCKED2 | &ah->hw->wiphy->mtx | ||
| HALF_LOCKED2 | &ar->conf_mutex | ||
| HALF_LOCKED2 | &ar->data_lock | ||
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &fpriv->lock | ||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | &s->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global &device_mutex | ||
| HALF_LOCKED2 | global &nbd_index_mutex | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &sg_index_lock | ||
| HALF_LOCKED2 | iflags | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |