Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 1 files as a function:
Referenced in 3 files:
- crypto/asymmetric_keys/asymmetric_type.c, line 514
- include/keys/system_keyring.h
- security/integrity/ima/ima_mok.c, line 34
Smatch caller information:
security/keys/key.c __key_create_or_update() -> (struct key_restriction)->check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest_keyring | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->datalen | 4-u16max |
| PARAM_VALUE | 0 | dest_keyring->restrict_link->check | 1-u64max |
| PARAM_VALUE | 0 | dest_keyring->sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | dest_keyring->sem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dest_keyring->type | 9142442151112187904 |
| PARAM_VALUE | 0 | dest_keyring->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | type | 4096-ptr_max |
| PARAM_VALUE | 1 | type->instantiate | 1-u64max |
| PARAM_VALUE | 2 | payload | 5316563657895759888 |
| DATA_SOURCE | 0 | dest_keyring | r key_ref_to_ptr |
| DATA_SOURCE | 1 | type | r key_type_lookup |
| CONTAINER | 3 | *(-0+8) | $(-1) |
| MEM_ZERO | 2 | payload | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &key_types_sem | ||
| LOCK2 | 0 | &dest_keyring->sem | |
| TYPE_LOCK | (struct key)->sem |
security/keys/key.c key_instantiate_and_link() -> (struct key_restriction)->check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest_keyring | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->datalen | 4-u16max |
| PARAM_VALUE | 0 | dest_keyring->restrict_link | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->restrict_link->check | 1-u64max |
| PARAM_VALUE | 0 | dest_keyring->sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | dest_keyring->sem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dest_keyring->type | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->user->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | type | 4096-ptr_max |
| PARAM_VALUE | 2 | payload | 1383123209570623504 |
| BUF_SIZE | 0 | dest_keyring | (-1)-s32max |
| BUF_SIZE | 0 | dest_keyring | (-1)-s32max |
| DATA_SOURCE | 0 | dest_keyring | $3 |
| CONTAINER | 0 | -0-336+0 | $(-1) |
| CONTAINER | 3 | *(-0+8) | $(-1) |
| MEM_ZERO | 2 | payload | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | dest_keyring->quotalen | |
| NO_OVERFLOW_SIMPLE | 0 | dest_keyring->user->qnbytes | |
| LOCK2 | 0 | &dest_keyring->sem | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct key)->sem |
security/keys/keyring.c __key_link_check_restriction() -> (struct key_restriction)->check()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dest_keyring | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->datalen | 4-u16max |
| PARAM_VALUE | 0 | dest_keyring->restrict_link | 4096-ptr_max |
| PARAM_VALUE | 0 | dest_keyring->restrict_link->check | 1-u64max |
| PARAM_VALUE | 0 | dest_keyring->sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | dest_keyring->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | dest_keyring->sem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dest_keyring->type | 4096-ptr_max |
| PARAM_VALUE | 2 | payload | 4096-ptr_max |
| BUF_SIZE | 0 | dest_keyring | (-1)-s32max |
| BUF_SIZE | 0 | dest_keyring | (-1)-s32max |
| CAPPED_DATA | 0 | dest_keyring | 1 |
| DATA_SOURCE | 0 | dest_keyring | $0 |
| CONTAINER | 0 | -0-336+0 | $(-1) |
| CONTAINER | 3 | *(-0+8) | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | dest_keyring->quotalen | |
| NO_OVERFLOW_SIMPLE | 0 | dest_keyring->user->qnbytes | |
| LOCK2 | 0 | &dest_keyring->sem | |
| HALF_LOCKED2 | &from_keyring->sem | ||
| TYPE_LOCK | (struct key)->sem |