selftests/bpf: add a test for a pruning bug in the verifier
authorAlexei Starovoitov <ast@fb.com>
Wed, 23 Aug 2017 14:10:26 +0000 (15:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 05:38:07 +0000 (22:38 -0700)
commitdf20cb7ec17577c94ef93fa86c7c80958046a01e
treefdcb349d3344c82114390386044a36da5c8a90da
parent63f45f840634ab5fd71bbc07acff915277764068
selftests/bpf: add a test for a pruning bug in the verifier

The test makes a read through a map value pointer, then considers pruning
 a branch where the register holds an adjusted map value pointer.  It
 should not prune, but currently it does.

Signed-off-by: Alexei Starovoitov <ast@fb.com>
[ecree@solarflare.com: added test-name and patch description]
Signed-off-by: Edward Cree <ecree@solarflare.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_verifier.c