]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: test case to check whether src/dst regs got mangled by xadd
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Jul 2018 16:18:36 +0000 (18:18 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 19 Jul 2018 23:08:06 +0000 (16:08 -0700)
commitfa47a16b04ad896ea9c10d4fa0caf47dcf47cd00
treeedddd22c72b270f167cd13371e29b95c97f661a3
parentb9c1e60e7bf4e64ac1b4f4d6d593f0bb57886973
bpf: test case to check whether src/dst regs got mangled by xadd

We currently do not have such a test case in test_verifier selftests
but it's important to test under bpf_jit_enable=1 to make sure JIT
implementations do not mistakenly mess with src/dst reg for xadd/{w,dw}.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c