aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/bpf_rand.h
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2020-05-21 13:08:06 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-05-21 17:44:25 -0700
commitf9b16ec0eeb75337aef38954a4066e6eecd7cfe5 (patch)
tree3358afdf6dfb99ab7c596fd19c9f0452633bbdfc /tools/testing/selftests/bpf/bpf_rand.h
parentbpf: Selftests, verifier case for non null pointer check branch taken (diff)
downloadwireguard-linux-f9b16ec0eeb75337aef38954a4066e6eecd7cfe5.tar.xz
wireguard-linux-f9b16ec0eeb75337aef38954a4066e6eecd7cfe5.zip
bpf: Selftests, verifier case for non null pointer map value branch
When we have pointer type that is known to be non-null we only follow the non-null branch. This adds tests to cover the map_value pointer returned from a map lookup. To force an error if both branches are followed we do an ALU op on R10. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/159009168650.6313.7434084136067263554.stgit@john-Precision-5820-Tower
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_rand.h')
0 files changed, 0 insertions, 0 deletions