Re: [PATCH bpf-next v1 00/14] selftests/bpf: Fixes for userspace ASAN

From: Eduard Zingerman

Date: Fri Feb 13 2026 - 13:36:08 EST


On Fri, 2026-02-13 at 10:29 -0800, Ihor Solodrai wrote:

[...]

> I kinda have a switch like that [1]:
>
> if [[ -n "${SELFTESTS_BPF_ASAN:-}" ]]; then
> SELF_OPTS+=(SAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer")
> [...]
>
> Any ideas how to make this obvious in CI logs?
> I could set -x in the script executing the make, but it may be noisy still.
>
> [1] https://github.com/libbpf/ci/blob/selftests-asan/build-selftests/build_selftests.sh#L50-L51

I'd just add one more knob to the selftests makefile, e.g.:

ifdef ASAN
SAN_CFLAGS:="-fsanitize=address -fno-omit-frame-pointer"
endif

And use it from CI as well.