diff options
author | Edward Cree <ecree@solarflare.com> | 2017-08-07 17:29:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-09 03:51:35 +0300 |
commit | 1f9ab38f8a155913c9a587a673e61eedb75c9bc8 (patch) | |
tree | 413ab94b9a98d08a7b9055758ef02f368f5425d1 /tools/objtool | |
parent | c2c3e11712e23d430a49e1247a8ec211740c2254 (diff) | |
download | linux-1f9ab38f8a155913c9a587a673e61eedb75c9bc8.tar.xz |
selftests/bpf: don't try to access past MAX_PACKET_OFF in test_verifier
A number of selftests fell foul of the changed MAX_PACKET_OFF handling.
For instance, "direct packet access: test2" was potentially reading four
bytes from pkt + 0xffff, which could take it past the verifier's limit,
causing the program to be rejected (checks against pkt_end didn't give
us any reg->range).
Increase the shifts by one so that R2 is now mask 0x7fff instead of
mask 0xffff.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/objtool')
0 files changed, 0 insertions, 0 deletions