Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

net/ipv4/fib_frontend.c __inet_dev_addr_type() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 1 flp 1137735225973411840
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0
PARAM_VALUE 1 flp->__fl_common.flowic_oif 0
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->daddr 1-4294967294
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 5831052028949270528
PARAM_VALUE 3 fib_flags 1
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->daddr 1-4294967294
LOCK2 rcu_read

net/ipv4/fib_frontend.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 3126066341975281664,3378410442382344192
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_iif s32min-(-1),1-s32max
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 2 res 2602186971906322432,2826639845108072448
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1,3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
BIT_INFO 3 fib_flags 0x1,0x3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_dscp 0,4-252[c]
LOCK2 rcu_read

net/ipv4/fib_frontend.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 3126066341975281664,3378410442382344192
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_iif s32min-(-1),1-s32max
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 2 res 2602186971906322432,2826639845108072448
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1,3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
BIT_INFO 3 fib_flags 0x1,0x3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_dscp 0,4-252[c]
LOCK2 rcu_read

net/ipv4/fib_frontend.c nl_fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 1 flp 3247846401936994304
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_oif 0
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 8401853927666491392
PARAM_VALUE 3 fib_flags 1
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_dscp 0,4-252[c]
USER_DATA 1 flp->__fl_common.flowic_mark 0-u32max
USER_DATA 1 flp->__fl_common.flowic_scope 0-255
USER_DATA 1 flp->daddr 0-u32max
LOCK2 bh
LOCK2 rcu_read
HALF_LOCKED2 &dev->ethtool->rss_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

drivers/infiniband/core/cma.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 3184021617337679872
PARAM_VALUE 1 flp->daddr 1-4294967294
PARAM_VALUE 1 flp->saddr 1-4294967294
PARAM_VALUE 2 res 3163209054265364480
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
TASK_NOT_RUNNING
LOCK2 global &lock
LOCK2 rcu_read
HALF_LOCKED2 &pool->lock

drivers/infiniband/core/cma.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 3184021617337679872
PARAM_VALUE 1 flp->daddr 1-4294967294
PARAM_VALUE 1 flp->saddr 1-4294967294
PARAM_VALUE 2 res 3163209054265364480
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
TASK_NOT_RUNNING
LOCK2 global &lock
LOCK2 rcu_read
HALF_LOCKED2 &pool->lock

net/core/filter.c bpf_ipv4_fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 1 flp 8899565637439016960
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 2 res 7934135933787738112
PARAM_VALUE 3 fib_flags 1
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table

net/core/filter.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 8899565637439016960
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 2 res 7934135933787738112
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
LOCK2 rcu_read

net/core/filter.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 8899565637439016960
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 2 res 7934135933787738112
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
LOCK2 rcu_read

net/ipv4/fib_semantics.c fib_check_nh_v4_gw() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 1 flp 7310024992303976448
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0
PARAM_VALUE 1 flp->__fl_common.flowic_iif 1
PARAM_VALUE 1 flp->__fl_common.flowic_scope 253-254
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 2092853150581448704
PARAM_VALUE 3 fib_flags 3
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_oif s32min-s32max
LOCK2 rcu_read
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/fib_semantics.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 7310024992303976448
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0
PARAM_VALUE 1 flp->__fl_common.flowic_iif 1
PARAM_VALUE 1 flp->__fl_common.flowic_scope 253-254
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 2092853150581448704
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_oif s32min-s32max
USER_DATA 1 flp->__fl_common.flowic_scope 254[c]
USER_DATA 1 flp->daddr 0-u32max
LOCK2 rcu_read
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/ipv4/fib_semantics.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 7310024992303976448
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0
PARAM_VALUE 1 flp->__fl_common.flowic_iif 1
PARAM_VALUE 1 flp->__fl_common.flowic_scope 253-254
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 2092853150581448704
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
CAPPED_DATA 1 flp->__fl_common.flowic_scope 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
NOSPEC 1 flp->__fl_common.flowic_scope
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_oif s32min-s32max
USER_DATA 1 flp->__fl_common.flowic_scope 254[c]
USER_DATA 1 flp->daddr 0-u32max
LOCK2 rcu_read
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/marvell/prestera/prestera_router.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 5389390310833381376
PARAM_VALUE 2 res 2653457679283806208
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
LOCK2 &pool->lock
LOCK2 global &rtnl_mutex
LOCK2 rcu_read

drivers/net/ethernet/marvell/prestera/prestera_router.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 5389390310833381376
PARAM_VALUE 2 res 2653457679283806208
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
LOCK2 &pool->lock
LOCK2 global &rtnl_mutex
LOCK2 rcu_read

net/ipv4/netfilter/nft_fib_ipv4.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 7300944142296932352
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_oif 0
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->saddr 0-4294967294
PARAM_VALUE 2 res 6972221991158444032
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
LOCK2 rcu_read

net/ipv4/netfilter/nft_fib_ipv4.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 7300944142296932352
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_oif 0
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->saddr 0-4294967294
PARAM_VALUE 2 res 6972221991158444032
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
LOCK2 rcu_read

net/ipv4/netfilter/ipt_rpfilter.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 7372093485568909312
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_iif 1
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->saddr 0-4294967294
PARAM_VALUE 2 res 604639393722220544
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &table->lock
HALF_LOCKED2 bh

net/ipv4/netfilter/ipt_rpfilter.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 7372093485568909312
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0,4-252
PARAM_VALUE 1 flp->__fl_common.flowic_iif 1
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->saddr 0-4294967294
PARAM_VALUE 2 res 604639393722220544
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 3
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
MEM_ZERO 1 flp
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &table->lock
HALF_LOCKED2 bh

net/ipv4/fib_rules.c fib4_rule_action() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 2 res 4096-ptr_max
PARAM_VALUE 3 fib_flags 1,3
BUF_SIZE 2 res 8,32
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/ipv4/route.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 1 flp 4096-ptr_max
PARAM_VALUE 2 res 429988801965383680,1393448695251062784,4240960965415747584,7684502420953772032,7985481728897236992,8909405672440926208
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
NOSPEC 1 flp->saddr
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_dscp 0,4-252[c]
USER_DATA 1 flp->__fl_common.flowic_oif s32min-(-1),1-s32max[c]
USER_DATA 1 flp->__fl_common.flowic_proto 0-255
USER_DATA 1 flp->daddr 0-u32max
USER_DATA 1 flp->saddr 0-u32max
USER_DATA 1 flp->uli.ports.dport 0-u16max
USER_DATA 1 flp->uli.ports.sport 0-u16max[u]
LOCK2 rcu_read

net/ipv4/route.c fib_lookup() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 1-u64max
PARAM_VALUE 0 tb->tb_data->kv 4096-ptr_max
PARAM_VALUE 1 flp 4096-ptr_max
PARAM_VALUE 2 res 429988801965383680,1393448695251062784,4240960965415747584,7684502420953772032,7985481728897236992,8909405672440926208
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 3 fib_flags 1
DATA_SOURCE 1 flp $1
DATA_SOURCE 2 res $2
DATA_SOURCE 3 fib_flags $3 [m]
NOSPEC 1 flp->saddr
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->__fl_common.flowic_dscp 0,4-252[c]
USER_DATA 1 flp->__fl_common.flowic_oif s32min-(-1),1-s32max[c]
USER_DATA 1 flp->__fl_common.flowic_proto 0-255
USER_DATA 1 flp->daddr 0-u32max
USER_DATA 1 flp->saddr 0-u32max
USER_DATA 1 flp->uli.ports.dport 0-u16max
USER_DATA 1 flp->uli.ports.sport 0-u16max[u]
LOCK2 rcu_read

net/ipv4/devinet.c __ip_dev_find() -> fib_table_lookup()

Type Parameter Key Value
PARAM_VALUE 0 tb 4096-ptr_max
PARAM_VALUE 0 tb->tb_id 1-u32max
PARAM_VALUE 1 flp 8878443118670368768
PARAM_VALUE 1 flp->__fl_common.flowic_dscp 0
PARAM_VALUE 1 flp->__fl_common.flowic_oif 0
PARAM_VALUE 1 flp->__fl_common.flowic_scope 0
PARAM_VALUE 1 flp->saddr 0
PARAM_VALUE 2 res 113782431417589760
PARAM_VALUE 2 res->dscp 0
PARAM_VALUE 2 res->fa_head 0
PARAM_VALUE 2 res->fi 0
PARAM_VALUE 2 res->nh_sel 0
PARAM_VALUE 2 res->nhc 0
PARAM_VALUE 2 res->prefix 0
PARAM_VALUE 2 res->prefixlen 0
PARAM_VALUE 2 res->scope 0
PARAM_VALUE 2 res->table 0
PARAM_VALUE 2 res->tclassid 0
PARAM_VALUE 2 res->type 0
PARAM_VALUE 3 fib_flags 1
CAPPED_DATA 0 tb->tb_id 1
DATA_SOURCE 0 tb r fib_get_table
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 flp->daddr 0-u32max
LOCK2 rcu_read
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex