]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbcbafe76acf2402fec8086ee477b40ff927b84c
tree576851fb11b2246f784da4ef3716fd441037ceaf
parente134e3500446cebea6146dec461c674d37702cae
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