Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
net/ipv4/fib_frontend.c fib_magic() -> fib_table_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | tb | 4096-ptr_max |
| PARAM_VALUE | 1 | tb->tb_id | 1-u32max |
| PARAM_VALUE | 2 | cfg | 2491509575282348032 |
| PARAM_VALUE | 2 | cfg->fc_dscp | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap_type | 0 |
| PARAM_VALUE | 2 | cfg->fc_flags | 0 |
| PARAM_VALUE | 2 | cfg->fc_flow | 0 |
| PARAM_VALUE | 2 | cfg->fc_gw4 | 0 |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlflags | 3072 |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nlh | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.portid | 0 |
| PARAM_VALUE | 2 | cfg->fc_protocol | 2 |
| PARAM_VALUE | 2 | cfg->fc_scope | 253-254 |
| PARAM_VALUE | 2 | cfg->fc_table | 1-u32max |
| PARAM_VALUE | 2 | cfg->fc_type | 1-3 |
| PARAM_VALUE | 3 | extack | 0 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| CAPPED_DATA | 1 | tb->tb_id | 1 |
| DATA_SOURCE | 1 | tb | r fib_new_table |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/ipv4/fib_frontend.c inet_rtm_newroute() -> fib_table_insert()
| 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 | tb | 4096-ptr_max |
| PARAM_VALUE | 1 | tb->tb_id | 1-u32max |
| PARAM_VALUE | 2 | cfg | 1718700463136440320 |
| PARAM_VALUE | 2 | cfg->fc_dscp | 0,4-252 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0,2,10 |
| PARAM_VALUE | 2 | cfg->fc_mp_len | 0-65531 |
| PARAM_VALUE | 2 | cfg->fc_mx_len | 0-65531 |
| PARAM_VALUE | 2 | cfg->fc_nlflags | 1-u16max |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nlh | 4096-ptr_max |
| PARAM_VALUE | 3 | extack | 4971238048455385088 |
| PARAM_VALUE | 3 | extack->bad_attr | 0 |
| PARAM_VALUE | 3 | extack->policy | 0 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| CAPPED_DATA | 1 | tb->tb_id | 1 |
| DATA_SOURCE | 1 | tb | r fib_new_table |
| DATA_SOURCE | 3 | extack | $2 |
| MEM_ZERO | 2 | cfg | |
| MEM_ZERO | 3 | extack | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | cfg->fc_dscp | 0,4-252[c] |
| USER_DATA | 2 | cfg->fc_flags | 0 |
| USER_DATA | 2 | cfg->fc_gw4 | 0 |
| USER_DATA | 2 | cfg->fc_mp_len | 0-65531[c] |
| USER_DATA | 2 | cfg->fc_mx_len | 0-65531[c] |
| USER_DATA | 2 | cfg->fc_nlflags | 1-u16max[u] |
| USER_DATA | 2 | cfg->fc_protocol | 0 |
| USER_DATA | 2 | cfg->fc_scope | 0 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 2 | cfg->fc_mp | |
| USER_PTR | 2 | cfg->fc_mx | |
| USER_PTR | 2 | cfg->fc_nlinfo.nlh | |
| 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_frontend.c ip_rt_ioctl() -> fib_table_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| 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 | tb | 4096-ptr_max |
| PARAM_VALUE | 1 | tb->tb_id | 1-u32max |
| PARAM_VALUE | 2 | cfg | 8689399522901368832 |
| PARAM_VALUE | 2 | cfg->fc_dscp | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap | 0 |
| PARAM_VALUE | 2 | cfg->fc_encap_type | 0 |
| PARAM_VALUE | 2 | cfg->fc_flags | 0 |
| PARAM_VALUE | 2 | cfg->fc_flow | 0 |
| PARAM_VALUE | 2 | cfg->fc_gw_family | 0,2 |
| PARAM_VALUE | 2 | cfg->fc_mp | 0 |
| PARAM_VALUE | 2 | cfg->fc_mp_len | 0 |
| PARAM_VALUE | 2 | cfg->fc_mx | 0,16,4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_nh_id | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlflags | 0,1024 |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nl_net | 4096-ptr_max |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.nlh | 0 |
| PARAM_VALUE | 2 | cfg->fc_nlinfo.portid | 0 |
| PARAM_VALUE | 2 | cfg->fc_priority | 0-32766,4294934527-4294967294 |
| PARAM_VALUE | 2 | cfg->fc_protocol | 0,3 |
| PARAM_VALUE | 2 | cfg->fc_scope | 0,253-254 |
| PARAM_VALUE | 2 | cfg->fc_type | 1,7 |
| PARAM_VALUE | 3 | extack | 0 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| BUF_SIZE | 1 | tb | (-1),48,72 |
| CAPPED_DATA | 1 | tb->tb_id | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | tb | r fib_new_table |
| NS_CAPABLE | 0 | 12 | |
| MEM_ZERO | 2 | cfg | |
| USER_DATA | 2 | cfg->fc_priority | 0-32766,4294934527-4294967294 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| TYPE_LOCK | (struct net)->rtnl_mutex |