From 89b81d8a020a3c1f0a2a1efdd3c9d9b5a8916486 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Wed, 6 Sep 2023 15:33:10 +0200 Subject: sys/linux: cover BPF iterators support in BPF_LINK_CREATE Commit [1] upstream extended the bpf(2) BPF_LINK_CREATE command with optional fields for BPF iterators. The extra field is a pointer to a bpf_iter_link_info struct and its size. Commits [2, 3] upstream latter extended the bpf_iter_link_info struct to cover cgroup and task iterators. This commit extends the syzkaller description of BPF_LINK_CREATE to cover the above. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5e7b30205cef80f6b 2 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4ccaf58a8472123a 3 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f0d74c4da1f060d2a Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt.const | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/linux/bpf.txt.const') diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index ce8296ea4..ced4f2134 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -28,6 +28,10 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_INET_SOCK_RELEASE = 34 +BPF_CGROUP_ITER_ANCESTORS_UP = 4 +BPF_CGROUP_ITER_DESCENDANTS_POST = 3 +BPF_CGROUP_ITER_DESCENDANTS_PRE = 2 +BPF_CGROUP_ITER_SELF_ONLY = 1 BPF_CGROUP_SETSOCKOPT = 22 BPF_CGROUP_SOCK_OPS = 3 BPF_CGROUP_SYSCTL = 18 -- cgit mrf-deployment