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 357
- block/sed-opal.c, line 317
- certs/blacklist.c, line 235
- crypto/asymmetric_keys/asymmetric_type.c, line 90
- drivers/nvme/common/keyring.c, line 112
- lib/digsig.c, line 215
- net/rxrpc/security.c, line 191
- security/integrity/digsig_asymmetric.c
- security/keys/keyctl.c, line 763
- security/keys/keyring.c, line 976
- security/keys/process_keys.c
Smatch caller information:
block/sed-opal.c read_sed_opal_key() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 7296958975019053056 |
| PARAM_VALUE | 2 | description | 4681919564386979840 |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 14 |
| BUF_SIZE | 2 | description | 14 |
| DATA_SOURCE | 2 | description | $0 |
| STR_LEN | 0 | keyring | 13 |
| STR_LEN | 2 | description | 13 |
| CAPABLE | 0 | 21 | |
| TERMINATED | 2 | description | 1 |
| HALF_LOCKED2 | &dev->dev_lock |
net/rxrpc/security.c rxrpc_look_up_server_security() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 8019606871800008704 |
| PARAM_VALUE | 2 | description | 4689972664232120320 |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 36 |
| LOCK2 | &conn->local->services_lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct rxrpc_local)->services_lock |
lib/digsig.c digsig_verify() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 2-18446744073709547521 |
| PARAM_VALUE | 1 | type | 7296958975019053056 |
| PARAM_VALUE | 2 | description | 4908474782521331712 |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 20 |
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem |
security/keys/keyctl.c keyctl_keyring_search() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 0,4096-ptr_max |
| PARAM_VALUE | 1 | type | 4096-ptr_max |
| PARAM_VALUE | 2 | description | 4096-ptr_max |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 0 | keyring | (-1)-s32max |
| BUF_SIZE | 0 | keyring | (-1)-s32max |
| BUF_SIZE | 2 | description | s32min-s32max |
| DATA_SOURCE | 0 | keyring | r lookup_user_key |
| DATA_SOURCE | 1 | type | r key_type_lookup |
| DATA_SOURCE | 2 | description | r strndup_user |
| TERMINATED | 2 | description | 1 |
| USER_DATA | 2 | *description | 0-255 |
| USER_PTR | 2 | description | |
| LOCK2 | global &key_types_sem |
certs/blacklist.c is_hash_blacklisted() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 4808654508280905728 |
| PARAM_VALUE | 2 | description | 16,4096-ptr_max |
| PARAM_VALUE | 3 | recurse | 0 |
| BUF_SIZE | 2 | description | s32min-s32max |
| DATA_SOURCE | 2 | description | r get_raw_hash |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &iint->mutex |
security/integrity/digsig_asymmetric.c request_asymmetric_key() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2816195182958821376 |
| PARAM_VALUE | 2 | description | 3816148842678038528 |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 12 |
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem |
security/integrity/digsig_asymmetric.c request_asymmetric_key() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 2-18446744073709547521 |
| PARAM_VALUE | 1 | type | 2816195182958821376 |
| PARAM_VALUE | 1 | type->match_preparse | 1-u64max |
| PARAM_VALUE | 2 | description | 3816148842678038528 |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 12 |
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem |
drivers/nvme/common/keyring.c nvme_tls_psk_lookup() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 1,4097-18446744073709547521 |
| PARAM_VALUE | 1 | type | 8977573347343847424 |
| PARAM_VALUE | 2 | description | 4096-ptr_max |
| PARAM_VALUE | 3 | recurse | 0 |
| BUF_SIZE | 2 | description | 457 |
| BUF_SIZE | 2 | description | 457 |
| DATA_SOURCE | 2 | description | r _kzalloc_noprof |
| STR_LEN | 0 | keyring | 456 |
| STR_LEN | 2 | description | 456 |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &nvmf_dev_mutex |
crypto/asymmetric_keys/asymmetric_type.c find_asymmetric_key() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2816195182958821376 |
| PARAM_VALUE | 2 | description | 4096-ptr_max |
| PARAM_VALUE | 3 | recurse | 1 |
| BUF_SIZE | 2 | description | 4-131074 |
| BUF_SIZE | 2 | description | 4-131074 |
| DATA_SOURCE | 2 | description | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dest_keyring->sem | ||
| HALF_LOCKED2 | &keyring->sem |
security/keys/process_keys.c look_up_user_keyrings() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 1-18446744073709547521 |
| PARAM_VALUE | 1 | type | 9142442151112187904 |
| PARAM_VALUE | 2 | description | 2194157397913108480 |
| PARAM_VALUE | 3 | recurse | 0 |
| BUF_SIZE | 2 | description | 20 |
| STR_LEN | 0 | keyring | 19 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &user_ns->keyring_sem | ||
| TYPE_LOCK | (struct user_namespace)->keyring_sem |
security/keys/process_keys.c look_up_user_keyrings() -> keyring_search()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring | 1-18446744073709547521 |
| PARAM_VALUE | 1 | type | 9142442151112187904 |
| PARAM_VALUE | 1 | type->match_preparse | 0 |
| PARAM_VALUE | 2 | description | 2194157397913108480 |
| PARAM_VALUE | 3 | recurse | 0 |
| BUF_SIZE | 2 | description | 20 |
| STR_LEN | 0 | keyring | 19 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &user_ns->keyring_sem | ||
| TYPE_LOCK | (struct user_namespace)->keyring_sem |