diff options
author | Josef Bacik <jbacik@fb.com> | 2016-11-29 20:35:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-30 22:51:54 +0300 |
commit | e95489010b7abf6d360dfb7d88a41dfa9e0cc802 (patch) | |
tree | b29ed2aec03f74d7f13fd5b6407751abbcb568d9 /net | |
parent | ddf952a1e4e48855815365e2643139239f48660e (diff) | |
download | linux-e95489010b7abf6d360dfb7d88a41dfa9e0cc802.tar.xz |
bpf: add test for the verifier equal logic bug
This is a test to verify that
bpf: fix states equal logic for varlen access
actually fixed the problem. The problem was if the register we added to our map
register was UNKNOWN in both the false and true branches and the only thing that
changed was the range then we'd incorrectly assume that the true branch was
valid, which it really wasnt. This tests this case and properly fails without
my fix in place and passes with it in place.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions