Defined in 1 files as a function:

Referenced in 17 files:

Smatch caller information:

drivers/net/netkit.c netkit_run() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &dev->tx_global_lock
HALF_LOCKED2 &txq->_xmit_lock
HALF_LOCKED2 bh
HALF_LOCKED2 flags

drivers/net/team/team_mode_loadbalance.c lb_get_skb_hash() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
DATA_SOURCE 1 ctx $1

net/kcm/kcmsock.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-0,240
BUF_SIZE 1 ctx (-1)-0,240
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1

net/sched/cls_bpf.c bpf_prog_run_data_pointers() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
HALF_LOCKED2 rcu_read

net/netfilter/xt_bpf.c __bpf_prog_run_save_cb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &table->lock
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

net/netfilter/xt_bpf.c bpf_mt() -> bpf_prog_run()

Type Parameter Key Value
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &table->lock
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

net/packet/af_packet.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 rcu_read

kernel/bpf/bpf_iter.c bpf_iter_run_prog() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->sleepable 1
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx 16,24,32
BUF_SIZE 1 ctx 16,24,32
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &seq->lock
TYPE_LOCK (struct seq_file)->lock

kernel/bpf/bpf_iter.c bpf_iter_run_prog() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->sleepable 0
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx 16,24,32
BUF_SIZE 1 ctx 16,24,32
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &seq->lock
TYPE_LOCK (struct seq_file)->lock

net/core/sock_reuseport.c __bpf_prog_run_save_cb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->type 0-20,22-u32max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 rcu_read
HALF_LOCKED2 &head->lock

net/core/skmsg.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-0,240,712
BUF_SIZE 1 ctx (-1)-0,240,712
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/core/filter.c __bpf_prog_run_save_cb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 rcu_read
HALF_LOCKED2 &conn->lock

net/core/filter.c bpf_run_sk_reuseport() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 5851226552495054848
BUF_SIZE 1 ctx 56
DATA_SOURCE 0 prog $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

kernel/bpf/syscall.c kern_sys_bpf() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->active 4096-ptr_max
PARAM_VALUE 0 prog->aux 4096-ptr_max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
CAPPED_DATA 0 prog->aux->max_ctx_offset 1
DATA_SOURCE 0 prog r bpf_prog_get_type

drivers/net/ppp/ppp_generic.c ppp_prepare_tx_skb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ppp->wlock
LOCK2 bh
TYPE_LOCK (struct ppp)->wlock

drivers/net/ppp/ppp_generic.c ppp_prepare_tx_skb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ppp->wlock
LOCK2 bh
TYPE_LOCK (struct ppp)->wlock

drivers/net/ppp/ppp_generic.c ppp_receive_nonmp_frame() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $1 [m]
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 &ppp->rlock
LOCK2 bh
LOCK2 rcu_read
HALF_LOCKED2 &network->close_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ppp)->rlock

drivers/net/ppp/ppp_generic.c ppp_receive_nonmp_frame() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $1 [m]
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 &ppp->rlock
LOCK2 bh
LOCK2 rcu_read
HALF_LOCKED2 &network->close_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ppp)->rlock

lib/test_bpf.c __run_one() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 0,16,4096-ptr_max
BUF_SIZE 0 prog (-1)-s32max
BUF_SIZE 0 prog (-1)-s32max
BUF_SIZE 1 ctx (-1)-0,4
BUF_SIZE 1 ctx (-1)-0,4
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
NO_OVERFLOW_SIMPLE 0 prog->aux->offload->prog->len
NO_OVERFLOW_SIMPLE 0 prog->len

net/ipv6/inet6_hashtables.c bpf_sk_lookup_run_v6() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4278405163977875456
BUF_SIZE 1 ctx 48
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/bpf/test_run.c __bpf_prog_test_run_raw_tp() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->active 4096-ptr_max
BUF_SIZE 1 ctx 1-96
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/bpf/test_run.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->aux 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops->test_run 4096-ptr_max
PARAM_VALUE 1 ctx 0-ptr_max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 1 ctx 0-u16max
BUF_SIZE 1 ctx 0-u16max
CAPPED_DATA 0 prog->aux->max_ctx_offset 1
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
USER_DATA 1 *ctx s64min-s64max
USER_PTR 1 ctx

net/bpf/test_run.c bpf_prog_test_run_sk_lookup() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 211653067269926912
BUF_SIZE 1 ctx 48
LOCK2 rcu_read

net/bpf/test_run.c bpf_test_run() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->aux 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops->test_run 4096-ptr_max
PARAM_VALUE 1 ctx 235069033480892416
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 1 ctx 16
BUF_SIZE 1 ctx 16
CAPPED_DATA 0 prog 1
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD <- disables preempt
LOCK2 bh
LOCK2 rcu_read

net/netfilter/nf_bpf_link.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 6935307809540841472
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 1 ctx 16
BUF_SIZE 1 ctx 16
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/core/lwt_bpf.c __bpf_prog_run_save_cb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 bh
LOCK2 rcu_read

net/ipv4/inet_hashtables.c bpf_sk_lookup_run_v4() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4470423413511622656
BUF_SIZE 1 ctx 48
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

kernel/events/core.c bpf_overflow_handler() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->type 7
PARAM_VALUE 1 ctx 9156305609676218368
BUF_SIZE 1 ctx 24
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 _T->flags

net/core/ptp_classifier.c ptp_classify_raw() -> bpf_prog_run()

Type Parameter Key Value
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
HALF_LOCKED2 &clock->tx_queue.lock
HALF_LOCKED2 &ocelot->inj_lock
HALF_LOCKED2 &phydev->lock
HALF_LOCKED2 &ptp_priv->tx_queue.lock
HALF_LOCKED2 flags

net/core/flow_dissector.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->aux 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops 4096-ptr_max
PARAM_VALUE 0 prog->aux->ops->test_run 4096-ptr_max
PARAM_VALUE 1 ctx 5747244982162644992
BUF_SIZE 0 prog s32min-(-2),1-s32max
BUF_SIZE 0 prog s32min-(-2),1-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
LOCK2 rcu_read

drivers/net/tun.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

net/ipv6/seg6_local.c __bpf_prog_run_save_cb() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh

io_uring/bpf_filter.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 7463350493292011520
BUF_SIZE 1 ctx 40
BUF_SIZE 1 ctx 40
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
LOCK2 &ctx->uring_lock
LOCK2 rcu_read
HALF_LOCKED2 &sqd->lock
TYPE_LOCK (struct io_ring_ctx)->uring_lock

kernel/trace/bpf_trace.c __bpf_trace_run() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->active 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1),16,24,32,40,48,56,64,72,80,88,96
DATA_SOURCE 1 ctx $1
HALF_LOCKED2 rcu_read

kernel/trace/bpf_trace.c kprobe_multi_link_prog_run() -> bpf_prog_run()

Type Parameter Key Value
BUF_SIZE 1 ctx 168
DATA_SOURCE 1 ctx r ftrace_partial_regs
LOCK2 rcu_read

kernel/trace/bpf_trace.c uprobe_prog_run() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
DATA_SOURCE 1 ctx $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

net/sched/act_bpf.c bpf_prog_run_data_pointers() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte

net/core/dev.c tcx_run() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 rcu_read
HALF_LOCKED2 bh

kernel/seccomp.c bpf_prog_run_pin_on_cpu() -> bpf_prog_run()

Type Parameter Key Value
PARAM_VALUE 1 ctx 1551933998003503104
DATA_SOURCE 0 prog $0
DATA_SOURCE 1 ctx $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/cgroup.c bpf_prog_run_array_cg() -> bpf_prog_run_array_cg param 3()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
BUF_SIZE 1 ctx (-1)-s32max
BUF_SIZE 1 ctx (-1)-s32max
DATA_SOURCE 1 ctx $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ctx unit_byte
LOCK2 rcu_read
HALF_LOCKED2 sk

kernel/trace/trace_uprobe.c bpf_prog_run_array_uprobe() -> bpf_prog_run_array_uprobe param 2()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 1 ctx 4096-ptr_max
DATA_SOURCE 1 ctx $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ucb->mutex
HALF_LOCKED2 rcu_read

drivers/media/rc/bpf-lirc.c bpf_prog_run_array() -> bpf_prog_run_array param 2()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
PARAM_VALUE 1 *ctx 0-67108863,83886079
BUF_SIZE 1 ctx 4
BUF_SIZE 1 ctx 4
DATA_SOURCE 1 ctx $1
LOCK2 global &ir_raw_handler_lock
LOCK2 rcu_read

kernel/trace/bpf_trace.c bpf_prog_run_array() -> bpf_prog_run_array param 2()

Type Parameter Key Value
PARAM_VALUE 0 prog 1-u64max
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx (-1),168
BUF_SIZE 1 ctx (-1),168
DATA_SOURCE 1 ctx $1
LOCK2 rcu_read

kernel/trace/bpf_trace.c bpf_prog_run_array_sleepable() -> bpf_prog_run_array_sleepable param 2()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->active 4096-ptr_max
PARAM_VALUE 0 prog->len 1-u32max
PARAM_VALUE 0 prog->sleepable 0
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx 24,64
BUF_SIZE 1 ctx 24,64
DATA_SOURCE 1 ctx $1
LOCK2 rcu_read

kernel/trace/bpf_trace.c bpf_prog_run_array_sleepable() -> bpf_prog_run_array_sleepable param 2()

Type Parameter Key Value
PARAM_VALUE 0 prog 4096-ptr_max
PARAM_VALUE 0 prog->active 4096-ptr_max
PARAM_VALUE 0 prog->len 1-u32max
PARAM_VALUE 0 prog->sleepable 1
PARAM_VALUE 1 ctx 4096-ptr_max
BUF_SIZE 1 ctx 24,64
BUF_SIZE 1 ctx 24,64
DATA_SOURCE 1 ctx $1