]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Add arena ASAN runtime to libarena
authorEmil Tsalapatis <emil@etsalapatis.com>
Sun, 26 Apr 2026 19:03:34 +0000 (15:03 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 27 Apr 2026 01:12:22 +0000 (18:12 -0700)
commit9ab78691eb5fd0d3ad0a1994d4103223678eb78b
treeead6c1bb4cc6e1d07d1a046a3bff23cce691dd98
parent8c1e1c33fe5ad867bc0b6ba121911d70e7881d88
selftests/bpf: Add arena ASAN runtime to libarena

Add an address sanitizer (ASAN) runtime to the arena library. The
ASAN runtime implements the functions injected into BPF binaries
by LLVM sanitization when ASAN is enabled during compilation.

The runtime also includes functions called explicitly by memory
allocation code to mark memory as poisoned/unpoisoned to ASAN.
This code is a no-op when sanitization is turned off.

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