]> 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)
commit1d7eb14cdd57aa119292b44a14a0e78387c27ab8
tree576851fb11b2246f784da4ef3716fd441037ceaf
parentfc96ea536621296ee664e058aeffd43f3eda3700
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