Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- arch/s390/kernel/cert_store.c, line 465
- block/sed-opal.c, line 292
- certs/blacklist.c, line 267
- certs/system_keyring.c, line 172
- crypto/asymmetric_keys/x509_loader.c, line 31
- drivers/nvme/common/keyring.c, line 168
- kernel/crash_dump_dm_crypt.c, line 71
- net/rxrpc/rxperf.c
- security/integrity/digsig.c, line 179
- security/keys/key.c, line 1024
- security/keys/keyctl.c, line 134
Smatch caller information:
block/sed-opal.c update_sed_opal_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 572916574821515264 |
| PARAM_VALUE | 2 | description | 4681919564386979840 |
| PARAM_VALUE | 4 | plen | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 5 | perm | 851968 |
| PARAM_VALUE | 6 | flags | 14 |
| BUF_SIZE | 1 | type | 5 |
| BUF_SIZE | 2 | description | 14 |
| BUF_SIZE | 2 | description | 14 |
| BUF_SIZE | 3 | payload | 256 |
| BUF_SIZE | 3 | payload | 256 |
| DATA_SOURCE | 2 | description | $0 |
| DATA_SOURCE | 3 | payload | $1 |
| DATA_SOURCE | 4 | plen | $2 |
| STR_LEN | 0 | keyring_ref | 4 |
| STR_LEN | 1 | type | 13 |
| STR_LEN | 2 | description | 13 |
| TERMINATED | 1 | type | 1 |
| TERMINATED | 2 | description | 1 |
security/integrity/digsig.c integrity_add_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 3828916242367111168 |
| PARAM_VALUE | 2 | description | 0 |
| PARAM_VALUE | 5 | perm | 520159232,520290304 |
| PARAM_VALUE | 6 | flags | 2 |
| BUF_SIZE | 1 | type | 11 |
| DATA_SOURCE | 3 | payload | $1 |
| DATA_SOURCE | 4 | plen | $2 |
| DATA_SOURCE | 5 | perm | $3 |
| STR_LEN | 0 | keyring_ref | 10 |
| TERMINATED | 1 | type | 1 |
| HARD_MAX | 5 | perm | 520290304 |
kernel/crash_dump_dm_crypt.c add_key_to_keyring() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 0,4096-ptr_max |
| PARAM_VALUE | 1 | type | 572916574821515264 |
| PARAM_VALUE | 5 | perm | 4128768 |
| PARAM_VALUE | 6 | flags | 0 |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 1 | type | 5 |
| BUF_SIZE | 2 | description | 128 |
| BUF_SIZE | 3 | payload | 256 |
| DATA_SOURCE | 0 | keyring_ref | $1 |
| STR_LEN | 0 | keyring_ref | 4 |
| TERMINATED | 1 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | plen | unit_byte |
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
net/rxrpc/rxperf.c rxperf_add_rxkad_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 5570815470420623360 |
| PARAM_VALUE | 2 | description | 33005261875257344 |
| PARAM_VALUE | 3 | payload | 3034066852850458624 |
| PARAM_VALUE | 4 | plen | 8 |
| PARAM_VALUE | 5 | perm | 184614912 |
| PARAM_VALUE | 6 | flags | 2 |
| BUF_SIZE | 1 | type | 8 |
| BUF_SIZE | 2 | description | 6 |
| BUF_SIZE | 3 | payload | 8 |
| STR_LEN | 0 | keyring_ref | 7 |
| STR_LEN | 1 | type | 5 |
| TERMINATED | 1 | type | 1 |
| TERMINATED | 2 | description | 1 |
| UNITS | 4 | plen | unit_byte |
net/rxrpc/rxperf.c rxperf_add_yfs_rxgk_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 5570815470420623360 |
| PARAM_VALUE | 2 | description | 724967808536047616 |
| PARAM_VALUE | 3 | payload | 4096-ptr_max |
| PARAM_VALUE | 4 | plen | 0-32 |
| PARAM_VALUE | 5 | perm | 184614912 |
| PARAM_VALUE | 6 | flags | 2 |
| BUF_SIZE | 1 | type | 8 |
| BUF_SIZE | 2 | description | 64 |
| BUF_SIZE | 3 | payload | 32 |
| CAPPED_DATA | 4 | plen | 1 |
| FUZZY_MAX | 4 | plen | 32 |
| STR_LEN | 0 | keyring_ref | 7 |
| TERMINATED | 1 | type | 1 |
| HARD_MAX | 4 | plen | 32 |
| UNITS | 4 | plen | unit_byte |
security/keys/keyctl.c __do_sys_add_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 0,4096-ptr_max |
| PARAM_VALUE | 1 | type | 8891941570754449408 |
| PARAM_VALUE | 1 | *type | 0 |
| PARAM_VALUE | 2 | description | 0,4096-ptr_max |
| PARAM_VALUE | 3 | payload | 0-18446744073709551614 |
| PARAM_VALUE | 4 | plen | 0-1048575 |
| PARAM_VALUE | 5 | perm | u32max |
| PARAM_VALUE | 6 | flags | 0 |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 1 | type | 32 |
| BUF_SIZE | 2 | description | s32min-s32max |
| BUF_SIZE | 3 | payload | 0-1048575 |
| BUF_SIZE | 3 | payload | 0-1048575 |
| CAPPED_DATA | 4 | plen | 1 |
| CAPPED_DATA | 4 | plen | 1 |
| DATA_SOURCE | 0 | keyring_ref | r lookup_user_key |
| DATA_SOURCE | 4 | plen | $3 |
| FUZZY_MAX | 4 | plen | 1048575 |
| HARD_MAX | 4 | plen | 1048575 |
| USER_DATA | 2 | *description | 0-255 |
| USER_DATA | 3 | *payload | s64min-s64max |
| USER_DATA | 4 | plen | 0-1048575[c] |
| UNITS | 4 | plen | unit_byte |
| BYTE_COUNT | 3 | ==payload4 | 8050 |
| USER_PTR | 2 | description | |
| USER_PTR | 3 | payload |
security/keys/keyctl.c __do_sys_add_key() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 0,4096-ptr_max |
| PARAM_VALUE | 1 | type | 8891941570754449408 |
| PARAM_VALUE | 1 | *type | 0 |
| PARAM_VALUE | 2 | description | 0,4096-ptr_max |
| PARAM_VALUE | 3 | payload | 0-18446744073709551614 |
| PARAM_VALUE | 4 | plen | 0-1048575 |
| PARAM_VALUE | 5 | perm | u32max |
| PARAM_VALUE | 6 | flags | 0 |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 0 | keyring_ref | (-1)-s32max |
| BUF_SIZE | 1 | type | 32 |
| BUF_SIZE | 2 | description | s32min-s32max |
| BUF_SIZE | 3 | payload | 0-1048575 |
| BUF_SIZE | 3 | payload | 0-1048575 |
| CAPPED_DATA | 4 | plen | 1 |
| CAPPED_DATA | 4 | plen | 1 |
| DATA_SOURCE | 0 | keyring_ref | r lookup_user_key |
| DATA_SOURCE | 4 | plen | $3 |
| FUZZY_MAX | 4 | plen | 1048575 |
| HARD_MAX | 4 | plen | 1048575 |
| USER_DATA | 2 | *description | 0-255 |
| USER_DATA | 3 | *payload | s64min-s64max |
| USER_DATA | 4 | plen | 0-1048575[c] |
| UNITS | 4 | plen | unit_byte |
| BYTE_COUNT | 3 | ==payload4 | 8050 |
| USER_PTR | 2 | description | |
| USER_PTR | 3 | payload |
certs/blacklist.c add_key_to_revocation_list() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 3828916242367111168 |
| PARAM_VALUE | 2 | description | 0 |
| PARAM_VALUE | 5 | perm | 184614912 |
| PARAM_VALUE | 6 | flags | 14 |
| BUF_SIZE | 1 | type | 11 |
| DATA_SOURCE | 3 | payload | $0 |
| DATA_SOURCE | 4 | plen | $1 |
| STR_LEN | 0 | keyring_ref | 10 |
| TERMINATED | 1 | type | 1 |
certs/system_keyring.c add_to_secondary_keyring() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 3828916242367111168 |
| PARAM_VALUE | 2 | description | 0 |
| PARAM_VALUE | 5 | perm | 520159232 |
| PARAM_VALUE | 6 | flags | 2 |
| BUF_SIZE | 1 | type | 11 |
| DATA_SOURCE | 3 | payload | $1 |
| DATA_SOURCE | 4 | plen | $2 |
| STR_LEN | 0 | keyring_ref | 10 |
| TERMINATED | 1 | type | 1 |
drivers/nvme/common/keyring.c nvme_tls_psk_refresh() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 1,4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 2983909691106885632 |
| PARAM_VALUE | 2 | description | 1-u64max |
| PARAM_VALUE | 3 | payload | 4096-ptr_max |
| PARAM_VALUE | 3 | *payload | 0-255 |
| PARAM_VALUE | 4 | plen | 1-4000000 |
| PARAM_VALUE | 5 | perm | 1057685504 |
| PARAM_VALUE | 6 | flags | 14 |
| BUF_SIZE | 1 | type | 4 |
| BUF_SIZE | 2 | description | 0-s32max |
| BUF_SIZE | 2 | description | 0-s32max |
| CAPPED_DATA | 2 | description | 1 |
| CAPPED_DATA | 4 | plen | 1 |
| CAPPED_DATA | 4 | plen | 1 |
| DATA_SOURCE | 2 | description | r kasprintf |
| DATA_SOURCE | 3 | payload | $4 |
| DATA_SOURCE | 4 | plen | $5 |
| STR_LEN | 0 | keyring_ref | 3 |
| TERMINATED | 1 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
crypto/asymmetric_keys/x509_loader.c x509_load_certificate_list() -> key_create_or_update()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 3828916242367111168 |
| PARAM_VALUE | 2 | description | 0 |
| PARAM_VALUE | 3 | payload | 4096-18446744073709547519 |
| PARAM_VALUE | 4 | plen | 4-9223372036854775807 |
| PARAM_VALUE | 5 | perm | 520290304 |
| PARAM_VALUE | 6 | flags | 14 |
| BUF_SIZE | 1 | type | 11 |
| BUF_SIZE | 3 | payload | (-1),1363 |
| CAPPED_DATA | 4 | plen | 1 |
| CAPPED_DATA | 4 | plen | 1 |
| STR_LEN | 0 | keyring_ref | 10 |
| TERMINATED | 1 | type | 1 |
| UNITS | 3 | payload | unit_byte |
| UNITS | 4 | plen | unit_byte |