From 7c97d670c44edd6eee772ec47d77847d85f8a7a7 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Wed, 6 Sep 2023 15:40:33 +0200 Subject: 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 --- sys/linux/bpf.txt.const | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/linux/bpf.txt.const') 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 -- cgit mrf-deployment