diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-05-11 19:46:53 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-05-11 23:57:27 +0000 |
| commit | 04accf794bb2a5a06f23f7d48d195ffa329181a6 (patch) | |
| tree | 9b01d19c410bdea46a363aa3724f4d93d29535b5 /tools/testing/selftests/bpf/prog_tests/timer_mim.c | |
| parent | bpf: Prepare prog_test_struct kfuncs for runtime tests (diff) | |
| download | kernel-04accf794bb2a5a06f23f7d48d195ffa329181a6.tar.gz kernel-04accf794bb2a5a06f23f7d48d195ffa329181a6.zip | |
selftests/bpf: Add negative C tests for kptrs
This uses the newly added SEC("?foo") naming to disable autoload of
programs, and then loads them one by one for the object and verifies
that loading fails and matches the returned error string from verifier.
This is similar to already existing verifier tests but provides coverage
for BPF C.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/timer_mim.c')
0 files changed, 0 insertions, 0 deletions
