]> git.baikalelectronics.ru Git - kernel.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)
commit71531f02b5bbed873bcd8fc54b7bd0997157a5a6
treeedddd22c72b270f167cd13371e29b95c97f661a3
parent5a3c6a2effdd78c4aafecb518b5487fb1f36c775
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