summary refs log tree commit diff
path: root/block/sed-opal.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-01-20 01:24:31 +0100
committerAlexei Starovoitov <ast@kernel.org>2018-01-19 18:36:59 -0800
commitfcd1c9177195489c40198d2769649439dd88505b (patch)
treee5a90dbd92ed6ef04729bf5ddc180d272c5f75b5 /block/sed-opal.c
parent205c380778d09291668da5267057a80385f89437 (diff)
downloadlinux-fcd1c9177195489c40198d2769649439dd88505b.tar.gz
bpf: add couple of test cases for signed extended imms
Add a couple of test cases for interpreter and JIT that are
related to an issue we faced some time ago in Cilium [1],
which is fixed in LLVM with commit e53750e1e086 ("bpf: fix
bug on silently truncating 64-bit immediate").

Test cases were run-time checking kernel to behave as intended
which should also provide some guidance for current or new
JITs in case they should trip over this. Added for cBPF and
eBPF.

  [1] https://github.com/cilium/cilium/pull/2162

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'block/sed-opal.c')
0 files changed, 0 insertions, 0 deletions