commit | ca796fe66f7fceff17679ee6cc5fe4b4023de44d | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Wed Jan 05 11:33:34 2022 -0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Wed Jan 05 12:00:19 2022 -0800 |
tree | cd6f1361dd6c9f5eebe588564b5c219d53bde661 | |
parent | e60b0d12a95dcf16a63225cead4541567f5cb517 [diff] |
bpf, selftests: Add verifier test for mem_or_null register with offset. Add a new test case with mem_or_null typed register with off > 0 to ensure it gets rejected by the verifier: # ./test_verifier 1011 #1009/u check with invalid reg offset 0 OK #1009/p check with invalid reg offset 0 OK Summary: 2 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org>