aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorAndrei Matei <[email protected]>2021-01-30 17:01:50 -0500
committerDaniel Borkmann <[email protected]>2021-02-03 22:01:25 +0100
commit060fd1035880dd466607d1c279ca913dd1f96916 (patch)
tree67224d24637f77e6f5271657528d0a9c88586f25 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent1132b9987a3f6c7c396633d5a675075911f1ce32 (diff)
selftest/bpf: Testing for multiple logs on REJECT
This patch adds support to verifier tests to check for a succession of verifier log messages on program load failure. This makes the errstr field work uniformly across REJECT and VERBOSE_ACCEPT checks. This patch also increases the maximum size of a message in the series of messages to test from 80 chars to 200 chars. This is in order to keep existing tests working, which sometimes test for messages larger than 80 chars (which was accepted in the REJECT case, when testing for a single message, but not in the VERBOSE_ACCEPT case, when testing for possibly multiple messages). And example of such a long, checked message is in bounds.c: "R1 has unknown scalar with mixed signed bounds, pointer arithmetic with it prohibited for !root" Signed-off-by: Andrei Matei <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions