diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-10-22 19:18:56 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-10-23 08:14:13 +0000 |
| commit | 18760ed77c0da6e2bcb29109739ccc108653db22 (patch) | |
| tree | b3bd9e3de227aedeec1603bb69c515d47f35bb0a /sys/linux/bpf.txt.const | |
| parent | 361b23dca53619ee1dfd92dd6a74a7f3e58f270c (diff) | |
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 <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
| -rw-r--r-- | sys/linux/bpf.txt.const | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
