Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/keys/persistent.c key_create_persistent() -> find_key_to_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | index_key | 2682332787884687360 |
| PARAM_VALUE | 1 | index_key->desc_len | 13-22 |
| PARAM_VALUE | 1 | index_key->description | 6977208350810771456 |
| PARAM_VALUE | 1 | index_key->type | 9142442151112187904 |
| DATA_SOURCE | 0 | keyring_ref | r make_key_ref |
| DATA_SOURCE | 1 | index_key | $2 |
| MEM_ZERO | 1 | index_key | |
| LOCK2 | &ns->keyring_sem | ||
| TYPE_LOCK | (struct user_namespace)->keyring_sem |
security/keys/persistent.c key_get_persistent() -> find_key_to_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | index_key | 2682332787884687360 |
| PARAM_VALUE | 1 | index_key->desc_len | 13-22 |
| PARAM_VALUE | 1 | index_key->description | 6977208350810771456 |
| PARAM_VALUE | 1 | index_key->type | 9142442151112187904 |
| DATA_SOURCE | 0 | keyring_ref | r make_key_ref |
| MEM_ZERO | 1 | index_key | |
| LOCK2 | &ns->keyring_sem | ||
| TYPE_LOCK | (struct user_namespace)->keyring_sem |
security/keys/key.c __key_create_or_update() -> find_key_to_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | index_key | 5936470887294271488 |
| PARAM_VALUE | 1 | index_key->desc_len | 1-u16max |
| PARAM_VALUE | 1 | index_key->description | 1-u64max |
| PARAM_VALUE | 1 | index_key->type | 4096-ptr_max |
| PARAM_VALUE | 1 | index_key->x | 0 |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| DATA_SOURCE | 0 | keyring_ref | $0 |
| STR_LEN | 0 | keyring_ref | (-1),3-4,7,10 |
| STR_LEN | 0 | keyring_ref | (-1),3-4,7,10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | index_key->description | |
| LOCK2 | &keyring->sem | ||
| LOCK2 | global &key_types_sem | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| TYPE_LOCK | (struct key)->sem |
security/keys/key.c __key_create_or_update() -> find_key_to_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | index_key | 5936470887294271488 |
| PARAM_VALUE | 1 | index_key->desc_len | 1-u16max |
| PARAM_VALUE | 1 | index_key->description | 1-u64max |
| PARAM_VALUE | 1 | index_key->type | 4096-ptr_max |
| PARAM_VALUE | 1 | index_key->x | 0 |
| DATA_SOURCE | 0 | keyring_ref | $0 |
| STR_LEN | 0 | keyring_ref | (-1),7,9 |
| STR_LEN | 0 | keyring_ref | (-1),7,9 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | index_key->description | |
| LOCK2 | &keyring->sem | ||
| LOCK2 | global &key_types_sem | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| TYPE_LOCK | (struct key)->sem |