aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/bpf.txt
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2023-05-06 15:41:32 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-08-25 14:18:37 +0000
commitb64118ab2f7c483d4d00a7d022230a96d88c8af6 (patch)
tree9da802b73a2478873e1e46fb394f87beef280701 /sys/linux/bpf.txt
parent3c29a5fa10a3ca45b251e02c4153a75f45fa8f1c (diff)
sys/linux: support log_true_size field in bpf(2) PROG_LOAD
Commit [1] upstream added a new field to the bpf(2) PROG_LOAD command for the kernel to return the buffer size that would be required to store all logs. This is an output-only field so probably not much point in fuzzing it, so let's fix it to 0. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47a71c1f9af0 Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt')
-rw-r--r--sys/linux/bpf.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index c321b38c8..9455ba652 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -226,6 +226,7 @@ type bpf_prog_t[TYPE, ATTACH_TYPE, BTF_ID, PROG_FD] {
fd_array ptr64[in, array[fd_bpf_map], opt]
core_relos ptr64[in, array[bpf_core_relo], opt]
core_relo_rec_size const[BPF_CORE_RELO_SIZE, int32]
+ log_true_size int32
}
type bpf_prog bpf_prog_t[flags[bpf_prog_type, int32], flags[bpf_attach_type, int32], bpf_btf_id[opt], fd_bpf_prog[opt]]
@@ -554,7 +555,7 @@ bpf_test_prog_arg {
inctx ptr64[in, array[int8]]
outctx ptr64[in, array[int8]]
flags flags[bpf_prog_test_run_flags, int32]
- cpu int32
+ cpu const[0, int32]
}
bpf_prog_get_next_id_arg {