From ea2ace1b4710cee59bacacb344281c9d4887cc15 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Wed, 6 Sep 2023 15:38:00 +0200 Subject: sys/linux: cover cookie for tracing BPF links Commit [1] added the ability to pass a cookie at BPF link creation time for many tracing program types. This commit covers the same in syzkaller. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2fcc82411e74e5e6a Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/linux') diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index a56d745af..c4c86049d 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -219,11 +219,17 @@ link_create_kprobe_multi [ syms link_create_kprobe_multi_symbols ] +link_create_tracing { + target_btf_id bpf_btf_id + cookie int64 +} + link_create_arg_extra [ target_btf_id bpf_btf_id iter link_create_iter perf_event link_create_perf_event kprobe_multi link_create_kprobe_multi + tracing link_create_tracing ] type bpf_link_create_arg_t[PROG_FD, TARGET_FD, ATTACH_TYPE, FLAGS] { -- cgit mrf-deployment