Defined in 1 files as a prototype:

Referenced in 19 files:

Smatch caller information:

net/tipc/node.c tipc_node_check_dest() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &n->lock
LOCK2 bh
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct tipc_node)->lock

net/ipv4/tcp_ipv4.c tcp_v4_connect() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 sk

net/ipv4/tcp_ipv4.c tcp_v4_syn_recv_sock() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

net/ipv4/ping.c ping_v4_proc_init_net() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &pernet_ops_rwsem

net/netfilter/nf_nat_core.c nf_nat_l4proto_unique_tuple() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/netfilter/nf_nat_core.c nf_nat_l4proto_unique_tuple() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/sctp/socket.c sctp_clone_sock() -> get_random_u16()

Type Parameter Key Value
RX_PATH
LOCK2 sk

drivers/net/wireless/st/cw1200/wsm.c cw1200_get_prio_queue() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
LOCK2 &priv->ps_state_lock
LOCK2 bh
TYPE_LOCK (struct cw1200_common)->ps_state_lock

net/rds/bind.c rds_add_bound() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 sk
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 global &o2nm_cluster_group.cs_subsys.su_mutex

drivers/mtd/nand/raw/nandsim.c ns_do_bit_flips() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

net/ipv4/datagram.c __ip4_datagram_connect() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 sk

net/sched/sch_sfb.c sfb_enqueue() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/ipv6/route.c rt6_multipath_custom_hash_fl6() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->ipv4.mfc_mutex
HALF_LOCKED2 &net->ipv6.mfc_mutex
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 rcu_read

net/ipv6/route.c rt6_multipath_hash() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->ipv4.mfc_mutex
HALF_LOCKED2 &net->ipv6.mfc_mutex
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 rcu_read

drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_sli4_new_fcf_random_select() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &phba->hbalock
LOCK2 irq
TYPE_LOCK (struct lpfc_hba)->hbalock

net/sched/sch_cake.c cake_get_flow_quantum() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

net/mac80211/scan.c ieee80211_send_scan_probe_req() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &rdev->wiphy.mtx

net/ipv4/route.c fib_multipath_custom_hash_fl4() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->ipv4.mfc_mutex
HALF_LOCKED2 &net->ipv6.mfc_mutex
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 rcu_read

net/ipv4/route.c fib_multipath_hash() -> get_random_u16()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->ipv4.mfc_mutex
HALF_LOCKED2 &net->ipv6.mfc_mutex
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 rcu_read

net/ipv4/ip_output.c ip_build_and_send_pkt() -> get_random_u16()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_state_lock
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read