Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/xfrm/xfrm_policy.c xfrm_policy_inexact_insert() -> xfrm_policy_insert_list()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chain | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| BUF_SIZE | 0 | chain | 8 |
| BUF_SIZE | 1 | policy | (-1),1064 |
| BUF_SIZE | 1 | policy | (-1),1064 |
| CAPPED_DATA | 1 | policy->xp_net.net | 1 |
| DATA_SOURCE | 0 | chain | r xfrm_policy_inexact_alloc_chain |
| DATA_SOURCE | 1 | policy | $0 |
| DATA_SOURCE | 2 | excl | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | policy->action | 0-1 |
| USER_DATA | 1 | policy->family | 2,10 |
| USER_DATA | 1 | policy->flags | 0-255 |
| USER_DATA | 1 | policy->index | 0-u32max |
| USER_DATA | 1 | policy->lft.hard_add_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_byte_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_packet_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_use_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_add_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_byte_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_packet_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_use_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->priority | 0-u32max |
| USER_DATA | 1 | policy->selector.dport | 0-u16max |
| USER_DATA | 1 | policy->selector.dport_mask | 0-u16max |
| USER_DATA | 1 | policy->selector.family | 2,10 |
| USER_DATA | 1 | policy->selector.ifindex | s32min-s32max |
| USER_DATA | 1 | policy->selector.prefixlen_d | 0-128 |
| USER_DATA | 1 | policy->selector.prefixlen_s | 0-128 |
| USER_DATA | 1 | policy->selector.proto | 0-255 |
| USER_DATA | 1 | policy->selector.sport | 0-u16max |
| USER_DATA | 1 | policy->selector.sport_mask | 0-u16max |
| USER_DATA | 1 | policy->selector.user | 0-u32max |
| USER_DATA | 1 | policy->type | 0-1 |
| USER_DATA | 1 | policy->xfrm_nr | 1-6[c] |
| USER_DATA | 2 | excl | 0[c] |
| LOCK2 | &net->xfrm.xfrm_policy_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &hash_resize_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_policy_lock |
net/xfrm/xfrm_policy.c xfrm_policy_insert() -> xfrm_policy_insert_list()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chain | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->bydst.next | 0 |
| PARAM_VALUE | 1 | policy->bydst.pprev | 0 |
| BUF_SIZE | 1 | policy | 1064 |
| CAPPED_DATA | 1 | policy->xp_net.net | 1 |
| DATA_SOURCE | 0 | chain | r policy_hash_bysel |
| DATA_SOURCE | 1 | policy | $1 |
| DATA_SOURCE | 2 | excl | $2 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | policy->action | 0-1 |
| USER_DATA | 1 | policy->family | 2,10 |
| USER_DATA | 1 | policy->flags | 0-255 |
| USER_DATA | 1 | policy->index | 0-u32max |
| USER_DATA | 1 | policy->lft.hard_add_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_byte_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_packet_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.hard_use_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_add_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_byte_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_packet_limit | 0-u64max |
| USER_DATA | 1 | policy->lft.soft_use_expires_seconds | 0-u64max |
| USER_DATA | 1 | policy->priority | 0-u32max |
| USER_DATA | 1 | policy->selector.dport | 0-u16max |
| USER_DATA | 1 | policy->selector.dport_mask | 0-u16max |
| USER_DATA | 1 | policy->selector.family | 2,10 |
| USER_DATA | 1 | policy->selector.ifindex | s32min-s32max |
| USER_DATA | 1 | policy->selector.prefixlen_d | 0-128 |
| USER_DATA | 1 | policy->selector.prefixlen_s | 0-128 |
| USER_DATA | 1 | policy->selector.proto | 0-255 |
| USER_DATA | 1 | policy->selector.sport | 0-u16max |
| USER_DATA | 1 | policy->selector.sport_mask | 0-u16max |
| USER_DATA | 1 | policy->selector.user | 0-u32max |
| USER_DATA | 1 | policy->type | 0-1 |
| USER_DATA | 1 | policy->xfrm_nr | 1-6[c] |
| USER_DATA | 2 | excl | 0[c] |
| LOCK2 | &net->xfrm.xfrm_policy_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_policy_lock |