Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/kcm/kcmsock.c kcm_attach() -> psock_now_avail()

Type Parameter Key Value
PARAM_VALUE 0 psock 4096-ptr_max
PARAM_VALUE 0 psock->bpf_prog 4096-ptr_max
PARAM_VALUE 0 psock->index 0-s32max
PARAM_VALUE 0 psock->mux 4096-ptr_max
PARAM_VALUE 0 psock->psock_list.next 4096-ptr_max
PARAM_VALUE 0 psock->psock_list.prev 4096-ptr_max
PARAM_VALUE 0 psock->sk 4096-ptr_max
PARAM_VALUE 0 psock->sk->__sk_common.skc_family 2,10
PARAM_VALUE 0 psock->sk->__sk_common.skc_state 0-6,8-9,11-255
PARAM_VALUE 0 psock->sk->sk_lock.owned 1
PARAM_VALUE 0 psock->sk->sk_lock.wq.head.prev 4096-ptr_max
PARAM_VALUE 0 psock->sk->sk_protocol 6
PARAM_VALUE 0 psock->strp.aborted 0
PARAM_VALUE 0 psock->strp.cb.abort_parser 4182127247025254400
PARAM_VALUE 0 psock->strp.cb.lock 232227869099556864
PARAM_VALUE 0 psock->strp.cb.parse_msg 7172326450082557952
PARAM_VALUE 0 psock->strp.cb.rcv_msg 5382628580132446208
PARAM_VALUE 0 psock->strp.cb.read_sock 0
PARAM_VALUE 0 psock->strp.cb.read_sock_done 64332454542540800,1755368764290887680,2758681989958533120
PARAM_VALUE 0 psock->strp.cb.unlock 8763596255047938048
PARAM_VALUE 0 psock->strp.interrupted 0
PARAM_VALUE 0 psock->strp.msg_timer_work.cpu 0
PARAM_VALUE 0 psock->strp.msg_timer_work.timer.flags 0
PARAM_VALUE 0 psock->strp.msg_timer_work.work.func 0
PARAM_VALUE 0 psock->strp.msg_timer_work.wq 0
PARAM_VALUE 0 psock->strp.need_bytes 0
PARAM_VALUE 0 psock->strp.paused 0
PARAM_VALUE 0 psock->strp.sk 4096-ptr_max
PARAM_VALUE 0 psock->strp.sk->sk_user_data 0
PARAM_VALUE 0 psock->strp.skb_head 0
PARAM_VALUE 0 psock->strp.skb_nextp 0
PARAM_VALUE 0 psock->strp.stats.bad_hdr_len 0
PARAM_VALUE 0 psock->strp.stats.bytes 0
PARAM_VALUE 0 psock->strp.stats.mem_fail 0
PARAM_VALUE 0 psock->strp.stats.msg_timeouts 0
PARAM_VALUE 0 psock->strp.stats.msg_too_big 0
PARAM_VALUE 0 psock->strp.stats.msgs 0
PARAM_VALUE 0 psock->strp.stats.need_more_hdr 0
PARAM_VALUE 0 psock->strp.stopped 0
PARAM_VALUE 0 psock->strp.unrecov_intr 0
BUF_SIZE 0 psock->bpf_prog s32min-(-2),1-s32max
DATA_SOURCE 0 psock r kmem_cache_alloc_noprof
MEM_ZERO 0 &psock->strp
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &mux->lock
LOCK2 bh
LOCK2 csk
HALF_LOCKED2 &smc->sk
TYPE_LOCK (struct kcm_mux)->lock

net/kcm/kcmsock.c unreserve_psock() -> psock_now_avail()

Type Parameter Key Value
PARAM_VALUE 0 psock 4096-ptr_max
PARAM_VALUE 0 psock->tx_kcm 0
PARAM_VALUE 0 psock->tx_stopped 0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &mux->lock
LOCK2 bh
HALF_LOCKED2 &kcm->tx_mutex
HALF_LOCKED2 sk
TYPE_LOCK (struct kcm_mux)->lock