Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 3 files:
Smatch caller information:
net/key/af_key.c pfkey_compile_policy() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 4096-ptr_max |
| PARAM_VALUE | 1 | sec_ctx | 0,4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 2080 |
| BUF_SIZE | 1 | sec_ctx | (-1),8-65543 |
| BUF_SIZE | 1 | sec_ctx | (-1),8-65543 |
| DATA_SOURCE | 1 | sec_ctx | r pfkey_sadb2xfrm_user_sec_ctx |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | sk |
net/key/af_key.c pfkey_spdadd() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 4096-ptr_max |
| PARAM_VALUE | 1 | sec_ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3264 |
| BUF_SIZE | 1 | sec_ctx | 8-65543 |
| BUF_SIZE | 1 | sec_ctx | 8-65543 |
| DATA_SOURCE | 1 | sec_ctx | r pfkey_sadb2xfrm_user_sec_ctx |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_cfg_mutex |
net/key/af_key.c pfkey_spddelete() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 3738654606598045696 |
| PARAM_VALUE | 0 | *ctxp | 0 |
| PARAM_VALUE | 1 | sec_ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3264 |
| BUF_SIZE | 1 | sec_ctx | 8-65543 |
| BUF_SIZE | 1 | sec_ctx | 8-65543 |
| DATA_SOURCE | 1 | sec_ctx | r pfkey_sadb2xfrm_user_sec_ctx |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_cfg_mutex |
net/xfrm/xfrm_user.c copy_from_user_sec_ctx() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 4096-ptr_max |
| PARAM_VALUE | 1 | sec_ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3264 |
| DATA_SOURCE | 1 | sec_ctx | r nla_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | sec_ctx->ctx_alg | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_doi | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_len | 0-u16max |
| USER_DATA | 1 | sec_ctx->exttype | 0-u16max |
| USER_DATA | 1 | sec_ctx->len | 0-u16max |
| USER_PTR | 1 | sec_ctx | |
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/xfrm/xfrm_user.c xfrm_add_pol_expire() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 1499156688154992640 |
| PARAM_VALUE | 0 | *ctxp | 0 |
| PARAM_VALUE | 1 | sec_ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3264 |
| DATA_SOURCE | 1 | sec_ctx | r nla_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | sec_ctx->ctx_alg | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_doi | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_len | 0-u16max |
| USER_DATA | 1 | sec_ctx->exttype | 0-u16max |
| USER_DATA | 1 | sec_ctx->len | 0-u16max |
| USER_PTR | 1 | sec_ctx | |
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/xfrm/xfrm_user.c xfrm_get_policy() -> security_xfrm_policy_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctxp | 2625024531526717440 |
| PARAM_VALUE | 0 | *ctxp | 0 |
| PARAM_VALUE | 1 | sec_ctx | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3264 |
| DATA_SOURCE | 1 | sec_ctx | r nla_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | sec_ctx->ctx_alg | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_doi | 0-255 |
| USER_DATA | 1 | sec_ctx->ctx_len | 0-u16max |
| USER_DATA | 1 | sec_ctx->exttype | 0-u16max |
| USER_DATA | 1 | sec_ctx->len | 0-u16max |
| USER_PTR | 1 | sec_ctx | |
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |