bpf: test case for map pointer poison with calls/branches
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Jun 2018 21:06:31 +0000 (23:06 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 14:42:06 +0000 (07:42 -0700)
commit06be0864c77ae6861632a678a6378511a4828d6e
tree1dcb6db94fcedbfe8c04352b3ad4e379a69b1fd5
parent25c1013e0464340aeb090a11c6d0b154bc52afd7
bpf: test case for map pointer poison with calls/branches

Add several test cases where the same or different map pointers
originate from different paths in the program and execute a map
lookup or tail call at a common location.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/filter.h
tools/include/linux/filter.h
tools/testing/selftests/bpf/test_verifier.c