Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

net/unix/af_unix.c unix_socketpair() -> init_peercred()

Type Parameter Key Value
PARAM_VALUE 1 peercred 4436544571250868224
PARAM_VALUE 1 peercred->peer_cred 0,4096-ptr_max
PARAM_VALUE 1 peercred->peer_pid 0,4096-ptr_max
NOCHECK_CALL
UNITS 0 sk unit_byte

net/unix/af_unix.c unix_socketpair() -> init_peercred()

Type Parameter Key Value
PARAM_VALUE 1 peercred 2369788134650580992
PARAM_VALUE 1 peercred->peer_cred 0,4096-ptr_max
PARAM_VALUE 1 peercred->peer_pid 0,4096-ptr_max
NOCHECK_CALL
UNITS 0 sk unit_byte

net/unix/af_unix.c unix_stream_connect() -> init_peercred()

Type Parameter Key Value
PARAM_VALUE 0 sk 4096-ptr_max
PARAM_VALUE 0 sk->sk_peer_pid 0
PARAM_VALUE 1 peercred 2693086556770152448
PARAM_VALUE 1 peercred->peer_cred 0,4096-ptr_max
PARAM_VALUE 1 peercred->peer_pid 0,4096-ptr_max
CAPPED_DATA 0 sk->__sk_common.skc_net.net 1
DATA_SOURCE 0 sk r unix_create1
BIT_INFO 0 sk->sk_prot_creator 0x48c0200b30230000,0xffffffffffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

net/unix/af_unix.c update_peercred() -> init_peercred()

Type Parameter Key Value
PARAM_VALUE 0 sk 4096-ptr_max
PARAM_VALUE 1 peercred 3286630410743521280
PARAM_VALUE 1 peercred->peer_pid 0,4096-ptr_max
DATA_SOURCE 0 sk $0
DATA_SOURCE 1 peercred $1
BIT_INFO 0 sk->sk_max_ack_backlog 0x0,0x7fffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sk unit_byte
LOCK2 0 &sk->sk_peer_lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 global &ls_lock
HALF_LOCKED2 global &o2nm_cluster_group.cs_subsys.su_mutex
HALF_LOCKED2 global &pernet_ops_rwsem
TYPE_LOCK (struct sock)->sk_peer_lock