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:
net/ethtool/strset.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 1 |
| PARAM_VALUE | 3 | policy | 4361305585440555008 |
| PARAM_VALUE | 4 | validate | 31 |
| BUF_SIZE | 3 | policy | 32 |
| BUF_SIZE | 3 | policy | 32 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
net/sched/cls_flower.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 5 |
| PARAM_VALUE | 3 | policy | 1603290473849987072 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 4971238048455385088 |
| PARAM_VALUE | 5 | extack->bad_attr->nla_len | 4-u16max |
| PARAM_VALUE | 5 | extack->cookie_len | 0 |
| PARAM_VALUE | 5 | extack->miss_nest | 0,4096-ptr_max |
| PARAM_VALUE | 5 | extack->miss_type | 0,48,111 |
| PARAM_VALUE | 5 | *extack->_msg_buf | 0-255 |
| BUF_SIZE | 3 | policy | 96 |
| BUF_SIZE | 3 | policy | 96 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| 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 &rx_queue_mutex |
net/ipv4/fib_frontend.c nlmsg_validate_deprecated() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | maxtype | 31 |
| PARAM_VALUE | 3 | policy | 811949010622005248 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 4971238048455385088 |
| PARAM_VALUE | 5 | extack->_msg | 0 |
| BUF_SIZE | 3 | policy | 512 |
| BUF_SIZE | 3 | policy | 512 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| BIT_INFO | 1 | len | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| 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 |
net/netfilter/nf_conntrack_netlink.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 9 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
net/sched/act_tunnel_key.c nla_validate_deprecated() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 3 |
| PARAM_VALUE | 3 | policy | 1042123823848931328 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 4971238048455385088 |
| PARAM_VALUE | 5 | extack->bad_attr->nla_len | 4-u16max |
| PARAM_VALUE | 5 | extack->cookie_len | 0 |
| PARAM_VALUE | 5 | extack->miss_nest | 0 |
| PARAM_VALUE | 5 | extack->miss_type | 0 |
| BUF_SIZE | 3 | policy | 64 |
| BUF_SIZE | 3 | policy | 64 |
| DATA_SOURCE | 0 | head | $0 |
| DATA_SOURCE | 1 | len | $1 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| 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 |
net/ipv4/ip_tunnel_core.c nla_validate() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 3 |
| PARAM_VALUE | 3 | policy | 4629770247322898432 |
| PARAM_VALUE | 4 | validate | 31 |
| PARAM_VALUE | 5 | extack | 0,4971238048455385088 |
| BUF_SIZE | 3 | policy | 64 |
| BUF_SIZE | 3 | policy | 64 |
| DATA_SOURCE | 0 | head | $0 |
| DATA_SOURCE | 1 | len | $1 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/sched/sch_ets.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 6 |
| PARAM_VALUE | 3 | policy | 1126999597313986560,2869194062270107648 |
| PARAM_VALUE | 4 | validate | 31 |
| PARAM_VALUE | 5 | extack | 0,4971238048455385088 |
| PARAM_VALUE | 5 | extack->bad_attr | 0 |
| PARAM_VALUE | 5 | extack->cookie_len | 0 |
| PARAM_VALUE | 5 | extack->miss_nest | 0 |
| PARAM_VALUE | 5 | extack->miss_type | 0 |
| PARAM_VALUE | 5 | extack->policy | 0 |
| BUF_SIZE | 3 | policy | 112 |
| BUF_SIZE | 3 | policy | 112 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head |
net/netfilter/nft_tunnel.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 3 |
| PARAM_VALUE | 3 | policy | 4647969562572025856 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0 |
| BUF_SIZE | 3 | policy | 64 |
| BUF_SIZE | 3 | policy | 64 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| HALF_LOCKED2 | &nft_net->commit_mutex | ||
| 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/netlabel/netlabel_cipso_v4.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 12 |
| PARAM_VALUE | 3 | policy | 7978571536677289984 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0 |
| BUF_SIZE | 3 | policy | 208 |
| BUF_SIZE | 3 | policy | 208 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_DATA | 1 | len | 0-65531 |
| USER_PTR | 0 | head | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| 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 &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/8021q/vlan_netlink.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 1 |
| PARAM_VALUE | 3 | policy | 258334895300861952 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0 |
| BUF_SIZE | 3 | policy | 32 |
| BUF_SIZE | 3 | policy | 32 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| LOCK2 | &ops->srcu | ||
| 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 | ||
| TYPE_LOCK | (struct rtnl_link_ops)->srcu |
net/wireless/nl80211.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 0,8 |
| PARAM_VALUE | 3 | policy | 35556431788687360,541353642289684480,3105322635229249536 |
| PARAM_VALUE | 4 | validate | 31 |
| PARAM_VALUE | 5 | extack | 1892393987123912704,4971238048455385088 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head | |
| HALF_LOCKED2 | global &rtnl_mutex |
net/sched/sch_gred.c __nla_validate_nested() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 1 | len | 0-u16max |
| PARAM_VALUE | 2 | maxtype | 1 |
| PARAM_VALUE | 3 | policy | 8691265512824418304 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0,4971238048455385088 |
| PARAM_VALUE | 5 | extack->bad_attr | 0 |
| PARAM_VALUE | 5 | extack->cookie_len | 0 |
| PARAM_VALUE | 5 | extack->miss_nest | 0 |
| PARAM_VALUE | 5 | extack->miss_type | 0 |
| PARAM_VALUE | 5 | extack->policy | 0 |
| BUF_SIZE | 3 | policy | 32 |
| BUF_SIZE | 3 | policy | 32 |
| DATA_SOURCE | 2 | maxtype | $1 |
| DATA_SOURCE | 3 | policy | $2 |
| DATA_SOURCE | 4 | validate | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_PTR | 0 | head |
drivers/infiniband/core/iwpm_util.c nlmsg_validate_deprecated() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | maxtype | 1-6 |
| PARAM_VALUE | 3 | policy | 17141625843445760,3286499020497555456,3851796726912757760,4786106224906895360,5445747216103538688,5802717280418254848,6217819298840551424 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 0 |
| BUF_SIZE | 3 | policy | 32,48,64,80,96,112 |
| BUF_SIZE | 3 | policy | 32,48,64,80,96,112 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| BIT_INFO | 1 | len | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex |
net/ipv4/ipmr.c nlmsg_validate_deprecated() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | maxtype | 31 |
| PARAM_VALUE | 3 | policy | 4191085332949192704 |
| PARAM_VALUE | 4 | validate | 0 |
| PARAM_VALUE | 5 | extack | 4971238048455385088 |
| PARAM_VALUE | 5 | extack->_msg | 0 |
| BUF_SIZE | 3 | policy | 512 |
| BUF_SIZE | 3 | policy | 512 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| BIT_INFO | 1 | len | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 0-u16max |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_DATA | 1 | len | (-12)-2147483619 |
| USER_PTR | 0 | head | |
| 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 |
net/core/rtnetlink.c nla_validate() -> __nla_validate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | head | 4096-ptr_max |
| PARAM_VALUE | 0 | head->nla_len | 4-u16max |
| PARAM_VALUE | 1 | len | 4-u16max |
| PARAM_VALUE | 2 | maxtype | 69 |
| PARAM_VALUE | 3 | policy | 4930321630210740224 |
| PARAM_VALUE | 4 | validate | 31 |
| PARAM_VALUE | 5 | extack | 4971238048455385088 |
| BUF_SIZE | 3 | policy | 1120 |
| BUF_SIZE | 3 | policy | 1120 |
| CAPPED_DATA | 0 | head->nla_len | 1 |
| CAPPED_DATA | 1 | len | 1 |
| DATA_SOURCE | 0 | head | $0 |
| DATA_SOURCE | 1 | len | $1 |
| DATA_SOURCE | 2 | maxtype | $2 |
| DATA_SOURCE | 3 | policy | $3 |
| DATA_SOURCE | 5 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | head->nla_len | 4-u16max[c] |
| USER_DATA | 0 | head->nla_type | 0-u16max |
| USER_DATA | 1 | len | 4-u16max[c] |
| UNITS | 1 | len | unit_byte |
| USER_PTR | 0 | head | |
| 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 |