bpf: Fix selftests are changes for CVE 2019-7308
authorBalbir Singh <sblbir@amzn.com>
Wed, 3 Apr 2019 18:39:17 +0000 (18:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:15:10 +0000 (09:15 +0200)
commit03f11a51a196a9aadc20a70a73825a811a726218
treea238eca3f52cfc0162ab7748eaad3302a4b1dfab
parenta042c21a2341979614a2b48d1ec46de5301d3f78
bpf: Fix selftests are changes for CVE 2019-7308

The changes to fix the CVE 2019-7308 make the bpf verifier stricter
with respect to operations that were allowed earlier in unprivileged
mode. Fixup the test cases so that the error messages now correctly
reflect pointer arithmetic going out of range for tests.

Signed-off-by: Balbir Singh <sblbir@amzn.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/test_verifier.c