aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorLuke Nelson <lukenels@cs.washington.edu>2019-06-28 22:57:51 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-03 11:14:28 +0200
commitac8786c72eba67dfc8ae751a75c586289a1b9b1b (patch)
treeaa608db6bc66714bae269be435fd209eb5b96413 /tools/testing/selftests/bpf/prog_tests
parentbpf, x32: Fix bug with ALU64 {LSH, RSH, ARSH} BPF_K shift by 0 (diff)
downloadlinux-dev-ac8786c72eba67dfc8ae751a75c586289a1b9b1b.tar.xz
linux-dev-ac8786c72eba67dfc8ae751a75c586289a1b9b1b.zip
selftests: bpf: add tests for shifts by zero
There are currently no tests for ALU64 shift operations when the shift amount is 0. This adds 6 new tests to make sure they are equivalent to a no-op. The x32 JIT had such bugs that could have been caught by these tests. Cc: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luke Nelson <luke.r.nels@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions