bpf: add various test cases for alu op on mixed dst register types
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 5 Jan 2019 23:54:38 +0000 (00:54 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 6 Jan 2019 05:32:38 +0000 (21:32 -0800)
commit1cbbcfbbd56efd994d643428c69467fe3c8ab672
tree576851fb11b2246f784da4ef3716fd441037ceaf
parentd3bd7413e0ca40b60cf60d4003246d067cafdeda
bpf: add various test cases for alu op on mixed dst register types

Add couple of test_verifier tests to check sanitation of alu op insn
with pointer and scalar type coming from different paths. This also
includes BPF insns of the test reproducer provided by Jann Horn.

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