Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 3 files:
Smatch caller information:
net/ipv4/nexthop.c nh_create_ipv6() -> fib6_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | fib6_nh | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg | 5653162649109348352 |
| PARAM_VALUE | 2 | cfg->__unused | 0 |
| PARAM_VALUE | 2 | cfg->fc_dst_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap_type | 0 |
| PARAM_VALUE | 2 | cfg->fc_flags | 0-8 |
| PARAM_VALUE | 2 | cfg->fc_ifindex | 0 |
| PARAM_VALUE | 2 | cfg->fc_ignore_dev_down | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx | 0 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_type | 0 |
| PARAM_VALUE | 3 | gfp_flags | 3264 |
| PARAM_VALUE | 4 | extack | 4971238048455385088 |
| PARAM_VALUE | 4 | extack->bad_attr | 0 |
| PARAM_VALUE | 4 | extack->policy | 0 |
| BUF_SIZE | 1 | fib6_nh | 104 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 4 | extack | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_flags | 0-8[c] |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| 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 | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/ipv4/fib_semantics.c fib_check_nh_v6_gw() -> fib6_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | fib6_nh | 4166114070911225856 |
| PARAM_VALUE | 1 | fib6_nh->last_probe | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_dev | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_dev_tracker | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_exceptions | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_family | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_flags | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_gw_family | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_lwtstate | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_oif | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_pcpu_rth_output | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_rth_input | 0 |
| PARAM_VALUE | 1 | fib6_nh->nh_common.nhc_weight | 0 |
| PARAM_VALUE | 1 | fib6_nh->rt6i_pcpu | 0 |
| PARAM_VALUE | 2 | cfg | 4075310799101239296 |
| PARAM_VALUE | 2 | cfg->__unused | 0 |
| PARAM_VALUE | 2 | cfg->fc_dst_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap_type | 0 |
| PARAM_VALUE | 2 | cfg->fc_flags | 2-257 |
| PARAM_VALUE | 2 | cfg->fc_ignore_dev_down | 0 |
| PARAM_VALUE | 2 | cfg->fc_is_fdb | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx | 0 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_type | 0 |
| PARAM_VALUE | 3 | gfp_flags | 3264 |
| PARAM_VALUE | 4 | extack | 0,4971238048455385088 |
| PARAM_VALUE | 4 | extack->bad_attr | 0 |
| PARAM_VALUE | 4 | extack->policy | 0 |
| PARAM_VALUE | 4 | *extack->_msg_buf | 0-255 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 4 | extack | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_flags | 2-257 |
| USER_DATA | 2 | cfg->fc_ifindex | s32min-s32max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/ipv6/route.c ip6_route_info_create_nh() -> fib6_nh_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cfg | 858256462879571968,2950613005020708864,3816564303804612608,6652296807720366080,7664424937499230208,8090513921446170624,8904447314051678208,9003424200363573248 |
| PARAM_VALUE | 2 | cfg->fc_dst_len | s32min-128 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nlh | 0,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_protocol | 1-u32max |
| PARAM_VALUE | 2 | cfg->fc_src_len | s32min-128 |
| PARAM_VALUE | 2 | cfg->fc_type | 0-11 |
| PARAM_VALUE | 3 | gfp_flags | 2080,3264 |
| PARAM_VALUE | 4 | extack | 0,4971238048455385088 |
| PARAM_VALUE | 4 | extack->bad_attr | 0 |
| PARAM_VALUE | 4 | extack->policy | 0 |
| BUF_SIZE | 1 | fib6_nh | 0,104 |
| DATA_SOURCE | 2 | cfg | $1 |
| DATA_SOURCE | 3 | gfp_flags | $2 |
| DATA_SOURCE | 4 | extack | $3 |
| HARD_MAX | 3 | gfp_flags | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_dst_len | 0-128 |
| USER_DATA | 2 | cfg->fc_flags | 0-u32max[c][u] |
| USER_DATA | 2 | cfg->fc_ifindex | s32min-(-1),1-s32max |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 2 | cfg->fc_encap | |
| USER_PTR | 2 | cfg->fc_mp | |
| USER_PTR | 2 | cfg->fc_mx |