From d48cdee764e01dac2e9e49a907cdb720eaaf9158 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Thu, 24 Aug 2023 13:54:25 +0200 Subject: sys/linux: support prog_attach_flags field for BPF_PROG_QUERY Commit [1] upstream added a new field to the anonymous struct for the BPF_PROG_QUERY bpf(2) command, for the kernel to return the attach flags of the program. This commit adds this field in the syzkaller struct. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b79c9fc9551b Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sys/linux/bpf.txt') diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index e15b1505e..e7de40e5e 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -734,12 +734,13 @@ bpf_btf_info { } [align[8]] bpf_prog_query { - target_fd fd_cgroup - attach_type flags[bpf_prog_query_attach_type, int32] - query_flags flags[bpf_prog_query_flags, int32] - attach_flags int32 - prog_ids ptr64[out, array[int32]] - prog_cnt len[prog_ids, int32] + target_fd fd_cgroup + attach_type flags[bpf_prog_query_attach_type, int32] + query_flags flags[bpf_prog_query_flags, int32] + attach_flags int32 + prog_ids ptr64[out, array[int32]] + prog_cnt len[prog_ids, int32] + prog_attach_flags ptr64[out, array[int32]] } [align[8]] bpf_btf_load { -- cgit mrf-deployment