]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Add ASAN support for libarena selftests
authorEmil Tsalapatis <emil@etsalapatis.com>
Sun, 26 Apr 2026 19:03:35 +0000 (15:03 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 27 Apr 2026 01:12:22 +0000 (18:12 -0700)
commitcfc00618b9dfc75cd507f1a4f0d83b4429627399
tree080cd3bd0295f57c2b5577e485f9c79876ac5baf
parent9ab78691eb5fd0d3ad0a1994d4103223678eb78b
selftests/bpf: Add ASAN support for libarena selftests

Expand the arena library selftest infrastructure to support
address sanitization. Add the compiler flags necessary to
compile the library under ASAN when supported.

Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260426190338.4615-6-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/libarena/Makefile
tools/testing/selftests/bpf/libarena/include/libarena/userspace.h
tools/testing/selftests/bpf/libarena/selftests/st_asan_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/libarena/src/common.bpf.c