Skip to content

Commit

Permalink
bpf: add various test cases to selftests
Browse files Browse the repository at this point in the history
Add various map value pointer related test cases to test_verifier
kselftest to reflect recent changes and improve test coverage. The
tests include basic masking functionality, unprivileged behavior
on pointer arithmetic which goes oob, mixed bounds tests, negative
unknown scalar but resulting positive offset for access and helper
range, handling of arithmetic from multiple maps, various masking
scenarios with subsequent map value access and others including two
test cases from Jann Horn for prior fixes.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
Daniel Borkmann authored and Alexei Starovoitov committed Jan 3, 2019
1 parent 979d63d commit 80c9b2f
Showing 1 changed file with 1,124 additions and 22 deletions.
Loading

0 comments on commit 80c9b2f

Please sign in to comment.