Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/keys/keyring.c keyring_search() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 7870531563263242240 |
| PARAM_VALUE | 1 | ctx->flags | 2,66 |
| PARAM_VALUE | 1 | ctx->index_key.description | 16,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->index_key.domain_tag | 0 |
| PARAM_VALUE | 1 | ctx->index_key.hash | 0 |
| PARAM_VALUE | 1 | ctx->index_key.type | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->iterator | 0 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 1679633131033747456,3325541039431966720,4068942585331077120,4687065711135023104,4946869985818988544,8304728542847062016 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0-1 |
| PARAM_VALUE | 1 | ctx->match_data.raw_data | 16,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->now | 0 |
| PARAM_VALUE | 1 | ctx->possessed | 0 |
| PARAM_VALUE | 1 | ctx->result | 0 |
| PARAM_VALUE | 1 | ctx->skipped_ret | 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),13,19,456 |
| STR_LEN | 0 | keyring_ref | (-1),13,19,456 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | ctx->index_key.description | |
| USER_PTR | 1 | ctx->match_data.raw_data | |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &conn->local->services_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &user_ns->keyring_sem | ||
| HALF_LOCKED2 | global &key_types_sem |
security/keys/process_keys.c get_user_session_keyring_rcu() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 6940733319926751232 |
| PARAM_VALUE | 1 | ctx->cred | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->flags | 2 |
| PARAM_VALUE | 1 | ctx->index_key.desc_len | 10-19 |
| PARAM_VALUE | 1 | ctx->index_key.description | 4875437685185384448 |
| PARAM_VALUE | 1 | ctx->index_key.domain_tag | 0 |
| PARAM_VALUE | 1 | ctx->index_key.hash | 0 |
| PARAM_VALUE | 1 | ctx->index_key.type | 9142442151112187904 |
| PARAM_VALUE | 1 | ctx->iterator | 0 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 4946869985818988544 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0 |
| PARAM_VALUE | 1 | ctx->match_data.raw_data | 4875437685185384448 |
| PARAM_VALUE | 1 | ctx->now | 0 |
| PARAM_VALUE | 1 | ctx->possessed | 0 |
| PARAM_VALUE | 1 | ctx->result | 0 |
| PARAM_VALUE | 1 | ctx->skipped_ret | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | rcu_read |
security/keys/process_keys.c search_cred_keyrings_rcu() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 865089248343306240,2764668154173882368,3985960929331363840,5000047925832593408,6296698174800781312 |
| PARAM_VALUE | 1 | ctx->cred | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->cred->thread_keyring | 1-u64max |
| PARAM_VALUE | 1 | ctx->flags | 34,65-66,98 |
| PARAM_VALUE | 1 | ctx->iterator | 0,4332256403137916928 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 1679633131033747456,3325541039431966720,4068942585331077120,4687065711135023104,4946869985818988544,7569574332998537216,8304728542847062016 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0-1 |
| BUF_SIZE | 1 | ctx->index_key.description | (-1)-s32max |
| BUF_SIZE | 1 | ctx->match_data.raw_data | (-1)-s32max |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 1 | ctx->index_key.description | (-1)-0 |
| STR_LEN | 1 | ctx->index_key.type | (-1)-0,7,13,263 |
| STR_LEN | 1 | ctx->match_data.raw_data | (-1)-0 |
| HARD_MAX | 1 | ctx->flags | 98 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | ctx->index_key.description | |
| USER_PTR | 1 | ctx->match_data.raw_data | |
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | rcu_read |
security/keys/process_keys.c search_cred_keyrings_rcu() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 865089248343306240,2764668154173882368,3985960929331363840,5000047925832593408,6296698174800781312 |
| PARAM_VALUE | 1 | ctx->cred | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->cred->process_keyring | 1-u64max |
| PARAM_VALUE | 1 | ctx->flags | 34,65-66,98 |
| PARAM_VALUE | 1 | ctx->iterator | 0,4332256403137916928 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 1679633131033747456,3325541039431966720,4068942585331077120,4687065711135023104,4946869985818988544,7569574332998537216,8304728542847062016 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0-1 |
| BUF_SIZE | 1 | ctx->index_key.description | (-1)-s32max |
| BUF_SIZE | 1 | ctx->match_data.raw_data | (-1)-s32max |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 1 | ctx->index_key.description | (-1)-0 |
| STR_LEN | 1 | ctx->index_key.type | (-1)-0,7,13,263 |
| STR_LEN | 1 | ctx->match_data.raw_data | (-1)-0 |
| HARD_MAX | 1 | ctx->flags | 98 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | ctx->index_key.description | |
| USER_PTR | 1 | ctx->match_data.raw_data | |
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | rcu_read |
security/keys/process_keys.c search_cred_keyrings_rcu() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ctx | 865089248343306240,2764668154173882368,3985960929331363840,5000047925832593408,6296698174800781312 |
| PARAM_VALUE | 1 | ctx->cred | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->cred->session_keyring | 1-u64max |
| PARAM_VALUE | 1 | ctx->flags | 34,65-66,98 |
| PARAM_VALUE | 1 | ctx->iterator | 0,4332256403137916928 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 1679633131033747456,3325541039431966720,4068942585331077120,4687065711135023104,4946869985818988544,7569574332998537216,8304728542847062016 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0-1 |
| BUF_SIZE | 1 | ctx->index_key.description | (-1)-s32max |
| BUF_SIZE | 1 | ctx->match_data.raw_data | (-1)-s32max |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 1 | ctx->index_key.description | (-1)-0 |
| STR_LEN | 1 | ctx->index_key.type | (-1)-0,7,13,263 |
| STR_LEN | 1 | ctx->match_data.raw_data | (-1)-0 |
| HARD_MAX | 1 | ctx->flags | 98 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | ctx->index_key.description | |
| USER_PTR | 1 | ctx->match_data.raw_data | |
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | rcu_read |
security/keys/process_keys.c search_cred_keyrings_rcu() -> keyring_search_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | keyring_ref | 4097-18446744073709547521 |
| PARAM_VALUE | 1 | ctx | 865089248343306240,2764668154173882368,3985960929331363840,5000047925832593408,6296698174800781312 |
| PARAM_VALUE | 1 | ctx->cred | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->cred->session_keyring | 0 |
| PARAM_VALUE | 1 | ctx->cred->user_ns | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->cred->user_ns->user_keyring_register | 1-u64max |
| PARAM_VALUE | 1 | ctx->flags | 34,65-66,98 |
| PARAM_VALUE | 1 | ctx->iterator | 0,4332256403137916928 |
| PARAM_VALUE | 1 | ctx->match_data.cmp | 1679633131033747456,3325541039431966720,4068942585331077120,4687065711135023104,4946869985818988544,7569574332998537216,8304728542847062016 |
| PARAM_VALUE | 1 | ctx->match_data.lookup_type | 0-1 |
| BUF_SIZE | 1 | ctx->index_key.description | (-1)-s32max |
| BUF_SIZE | 1 | ctx->match_data.raw_data | (-1)-s32max |
| DATA_SOURCE | 1 | ctx | $0 |
| STR_LEN | 1 | ctx->index_key.description | (-1)-0 |
| STR_LEN | 1 | ctx->index_key.type | (-1)-0,7,13,263 |
| STR_LEN | 1 | ctx->match_data.raw_data | (-1)-0 |
| HARD_MAX | 1 | ctx->flags | 98 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | ctx->index_key.description | |
| USER_PTR | 1 | ctx->match_data.raw_data | |
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | rcu_read |