Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

fs/coredump.c coredump_sock_mark() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING

fs/coredump.c coredump_sock_recv() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING

fs/coredump.c coredump_sock_send() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING

fs/coredump.c coredump_sock_shutdown() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4096-ptr_max
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 file->f_path.d_inode->i_size
NO_OVERFLOW_SIMPLE 0 file->f_path.dentry->d_inode->i_size
NO_OVERFLOW_SIMPLE 0 file->f_path.moved->d_inode->i_size

fs/splice.c splice_to_socket() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_op 4096-ptr_max
BUF_SIZE 0 file s32min,(-1),1-s32max
BUF_SIZE 0 file s32min,(-1),1-s32max
DATA_SOURCE 0 file $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

net/core/filter.c ____bpf_sock_from_file() -> sock_from_file()

Type Parameter Key Value
DATA_SOURCE 0 file $0

io_uring/poll.c io_napi_add() -> sock_from_file()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_bind() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_connect() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_op 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_listen() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_recv() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_recvmsg() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_recvzc() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_send() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_sendmsg() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_sendmsg_zc() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

io_uring/net.c io_shutdown() -> sock_from_file()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

net/core/sock.c __receive_sock() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &match->notify_lock

net/core/netclassid_cgroup.c update_classid_sock() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max
DATA_SOURCE 0 file $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &files->file_lock
HALF_LOCKED2 &_T->lock->alloc_lock
HALF_LOCKED2 &p->alloc_lock
HALF_LOCKED2 global &tasklist_lock
TYPE_LOCK (struct files_struct)->file_lock

fs/eventpoll.c ep_set_busy_poll_napi_id() -> sock_from_file()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ep->lock
HALF_LOCKED2 irq
TYPE_LOCK (struct eventpoll)->lock

net/socket.c __sys_bind() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_connect_file() -> sock_from_file()

Type Parameter Key Value
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING

net/socket.c __sys_getsockname() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_getsockopt() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_listen() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_recvfrom() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_recvmsg() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_sendmmsg() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_sendmsg() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_sendto() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_setsockopt() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c __sys_shutdown() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c do_accept() -> sock_from_file()

Type Parameter Key Value
DATA_SOURCE 0 file $0
RX_PATH
TASK_NOT_RUNNING

net/socket.c do_recvmmsg() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max

net/socket.c sock_read_xattr() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max

net/socket.c sockfd_lookup() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
CAPPED_DATA 0 file 1
DATA_SOURCE 0 file r fget
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &cls_conn->ep_mutex
HALF_LOCKED2 &n->dev.mutex
HALF_LOCKED2 &nbd->config_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sdev->ud.lock
HALF_LOCKED2 &sdev->ud.sysfs_lock
HALF_LOCKED2 &udc->lock
HALF_LOCKED2 &udc->ud.lock
HALF_LOCKED2 &udc->ud.sysfs_lock
HALF_LOCKED2 &vdev->ud.sysfs_lock
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 &xs->mutex
HALF_LOCKED2 flags
HALF_LOCKED2 global &nfsd_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 irq

net/core/netprio_cgroup.c update_netprio() -> sock_from_file()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max
DATA_SOURCE 0 file $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &files->file_lock
HALF_LOCKED2 &_T->lock->alloc_lock
HALF_LOCKED2 &p->alloc_lock
HALF_LOCKED2 global &tasklist_lock
TYPE_LOCK (struct files_struct)->file_lock