]> 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)
commit3cef3c297e73da69d8831abc6f869ff5f9d62951
treeedddd22c72b270f167cd13371e29b95c97f661a3
parent03685e6a4500362a811ba283825a85fa3fe2f889
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