]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add uptr failure verifier tests
authorMartin KaFai Lau <martin.lau@kernel.org>
Wed, 23 Oct 2024 23:47:58 +0000 (16:47 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Oct 2024 17:26:00 +0000 (10:26 -0700)
commit898cbca4a7579bea3ab746cd8dc33027bff80dac
tree1218cef182cd2e3c2ad676aae99d9b8a2bd78714
parentcbf9f849a3e86f1b7c041dfbeeae1c1fff0ddc8d
selftests/bpf: Add uptr failure verifier tests

Add verifier tests to ensure invalid uptr usages are rejected.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20241023234759.860539-12-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/task_local_storage.c
tools/testing/selftests/bpf/progs/uptr_failure.c [new file with mode: 0644]