From 18760ed77c0da6e2bcb29109739ccc108653db22 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sun, 22 Oct 2023 19:18:56 +0200 Subject: sys/linux: support new BPF opcode BPF_MEMSX Commit [1] upstream added support for new sign-extended load instructions. Those instructions rely on a new mode, BPF_MEMSX, for the opcode. This commit adds that mode to the BPF description. Note that several other instructions were defined at the same type, but our BPF instruction descriptions are currently generic enough that no other changes are needed. In the future, we may want to make those descriptions more specific to avoid wasting fuzzing time on unsupported instruction formats. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f9a1ea821ff Signed-off-by: Paul Chaignon --- sys/linux/bpf.txt.const | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/linux/bpf.txt.const') diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 07c73dece..d2c3c5722 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -174,6 +174,7 @@ BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_BATCH = 26 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 +BPF_MEMSX0 = 4 BPF_MOD0 = 9 BPF_MODIFY_RETURN = 26 BPF_MOV0 = 11 @@ -269,12 +270,12 @@ BPF_TRACE_KPROBE_MULTI = 42 BPF_TRACE_RAW_TP = 23 BPF_TRACE_UPROBE_MULTI = 48 BPF_W0 = 0 +BPF_X0 = 1 BPF_XADD0 = 6 BPF_XDP = 37 BPF_XDP_CPUMAP = 35 BPF_XDP_DEVMAP = 33 BPF_XOR0 = 10 -BPF_X0 = 1 BTF_INT_BOOL = 4 BTF_INT_CHAR = 2 BTF_INT_SIGNED = 1 -- cgit mrf-deployment