selftests/bpf: add a test for overlapping packet range checks
authorAlexei Starovoitov <ast@fb.com>
Fri, 31 Mar 2017 04:45:41 +0000 (21:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2017 19:45:57 +0000 (12:45 -0700)
commit6882804c916beaa945bae90dfd3295e635f6b78f
tree45ecd19979acd5920f781f3957e8fbe70259b657
parentdd26b7f54a08fd1a9fd804b51b9fce8e16628349
selftests/bpf: add a test for overlapping packet range checks

add simple C test case for llvm and verifier range check fix from
commit b1977682a385 ("bpf: improve verifier packet range checks")

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_pkt_access.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_progs.c [new file with mode: 0644]