Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/mpls/af_mpls.c mpls_ifdown() -> mpls_route_update()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_label 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_labels 1-u64max
PARAM_VALUE 2 new 0
PARAM_VALUE 3 info 0
CAPPED_DATA 0 net->mpls.platform_label 1
CAPPED_DATA 1 index 1
PARAM_COMPARE 1 index < $0->mpls.platform_labels
NOCHECK_CALL
UNITS 0 net unit_byte
UNITS 1 index unit_array_size
LOCK2 &net->mpls.platform_mutex
TYPE_LOCK (struct netns_mpls)->platform_mutex

net/mpls/af_mpls.c mpls_ifdown() -> mpls_route_update()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_label 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_labels 1-u64max
PARAM_VALUE 2 new 4096-ptr_max
PARAM_VALUE 2 new->rt_nh 4096-ptr_max
PARAM_VALUE 3 info 0
BUF_SIZE 2 new s32min-s32max
CAPPED_DATA 0 net->mpls.platform_label 1
CAPPED_DATA 1 index 1
CAPPED_DATA 2 new->rt_nhn 1
DATA_SOURCE 2 new r kmemdup_noprof
FUZZY_MAX 0 net->mpls.platform_labels 1
PARAM_COMPARE 1 index < $0->mpls.platform_labels
NOCHECK_CALL
UNITS 0 net unit_byte
UNITS 1 index unit_array_size
LOCK2 &net->mpls.platform_mutex
TYPE_LOCK (struct netns_mpls)->platform_mutex

net/mpls/af_mpls.c mpls_route_add() -> mpls_route_update()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_label 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_labels 17-u64max
PARAM_VALUE 2 new 4096-ptr_max
PARAM_VALUE 2 new->rt_nh 0,4096-ptr_max
PARAM_VALUE 2 new->rt_nh->nh_dev->ifindex s32min-(-1),1-s32max
PARAM_VALUE 2 new->rt_nh->nh_flags 0-4294967295
PARAM_VALUE 2 new->rt_nh->nh_labels 0-255
PARAM_VALUE 2 new->rt_nh->nh_via_alen 0-255
PARAM_VALUE 2 new->rt_nh->nh_via_table 0-255
PARAM_VALUE 2 new->rt_ttl_propagate 0-2
PARAM_VALUE 2 *new->rt_nh->nh_label 0-4294967295
PARAM_VALUE 3 info 4096-ptr_max
PARAM_VALUE 3 info->nl_net 4096-ptr_max
PARAM_VALUE 3 info->nlh 4096-ptr_max
BUF_SIZE 2 new 32-4096
BUF_SIZE 2 new 32-4096
CAPPED_DATA 0 net->mpls.platform_label 1
DATA_SOURCE 2 new r mpls_rt_alloc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 new->rt_nh_size 0-255[c]
USER_DATA 2 new->rt_protocol 0-255
UNITS 0 net unit_byte
USER_PTR 3 info->nlh
LOCK2 &net->mpls.platform_mutex
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
TYPE_LOCK (struct netns_mpls)->platform_mutex

net/mpls/af_mpls.c mpls_route_del() -> mpls_route_update()

Type Parameter Key Value
PARAM_VALUE 0 net->mpls.platform_labels 17-u64max
PARAM_VALUE 2 new 0
PARAM_VALUE 3 info 4096-ptr_max
PARAM_VALUE 3 info->nlh 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 net unit_byte
USER_PTR 3 info->nlh
LOCK2 &net->mpls.platform_mutex
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
TYPE_LOCK (struct netns_mpls)->platform_mutex

net/mpls/af_mpls.c resize_platform_label_table() -> mpls_route_update()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_mutex.dep_map->name 0-255
PARAM_VALUE 0 net->mpls.platform_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 net->mpls.platform_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 net->mpls.platform_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 net->mpls.platform_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 net->mpls.platform_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 net->mpls.platform_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 2 new 0
PARAM_VALUE 3 info 0
BUF_SIZE 0 net 4-5,7-8,12,16,20,24,28,32,36-37,40,44,46,48,52,63-65,74,132,768,2048
BUF_SIZE 0 net 4-5,7-8,12,16,20,24,28,32,36-37,40,44,46,48,52,63-65,74,132,768,2048
CAPPED_DATA 0 &net->mpls.platform_mutex 1
CAPPED_DATA 1 index 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 index unit_array_size
LOCK2 0 &net->mpls.platform_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct netns_mpls)->platform_mutex