aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/bpf.txt.const
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2023-09-06 15:40:33 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-09-13 07:31:19 +0000
commit7c97d670c44edd6eee772ec47d77847d85f8a7a7 (patch)
treeb2795d137571e47a1c38fe9c931834a4894f0d7a /sys/linux/bpf.txt.const
parentbb5b1ba38e68fd9ee210a27fbbac664c37763f3b (diff)
sys/linux: cover multi-uprobes for BPF_LINK_CREATE
Upstream, commit [1] added support for multi-uprobe links, to speed up the attachment of uprobes BPF programs by attaching in batches. This commit covers the same in syzkaller. Field path is a path to the binary, offsets are the offsets to attach to in the binary, and cnt is the number of uprobes to attach to. Field ref_ctr_offsets is a bit trickier as it can point to an array of reference counters; I limited those to 0--5 as they are not expected to be large. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=89ae89f53d2011435 Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
-rw-r--r--sys/linux/bpf.txt.const1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const
index 12526dadc..2b0eb6e54 100644
--- a/sys/linux/bpf.txt.const
+++ b/sys/linux/bpf.txt.const
@@ -90,6 +90,7 @@ BPF_F_TEST_RND_HI32 = 4
BPF_F_TEST_RUN_ON_CPU = 1
BPF_F_TEST_STATE_FREQ = 8
BPF_F_TEST_XDP_LIVE_FRAMES = 2
+BPF_F_UPROBE_MULTI_RETURN = 1
BPF_F_WRONLY = 16
BPF_F_WRONLY_PROG = 256
BPF_F_XDP_DEV_BOUND_ONLY = 64