Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/netfilter/nf_tables_api.c nf_tables_addchain() -> nf_tables_chain_alloc_rules()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chain | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->flags | 0-6 |
| PARAM_VALUE | 0 | chain->name | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->rules.next | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->rules.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->rules.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->rules.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->rules.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->table | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 0 |
| BUF_SIZE | 0 | chain | 128 |
| BUF_SIZE | 0 | chain->name | (-1),1-65536 |
| BUF_SIZE | 0 | chain->udata | s32min-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | chain->flags | 0-6 |
| USER_DATA | 0 | *chain->name | 0-255 |
| USER_PTR | 0 | chain->name | |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/nf_tables_api.c nf_tables_commit_chain_prepare() -> nf_tables_chain_alloc_rules()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chain | 4096-ptr_max |
| PARAM_VALUE | 0 | chain->blob_next | 0 |
| PARAM_VALUE | 1 | size | 0,8-s32max |
| CAPPED_DATA | 0 | &chain->rules | 1 |
| DATA_SOURCE | 0 | chain | $1 |
| FUZZY_MAX | 1 | size | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &nft_net->commit_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |