Re: [PATCH bpf v3 15/15] selftests/bpf: Don't override SIGSEGV handler with ASAN

From: Eduard Zingerman

Date: Fri Feb 20 2026 - 19:52:57 EST


On Fri, 2026-02-20 at 14:26 -0800, Ihor Solodrai wrote:
> test_progs has custom SIGSEGV handler, which interferes with the
> address sanitizer [1]. Add an #ifndef to avoid this.
>
> Additionally, declare an __asan_on_error() to dump the test logs in
> the same way it happens in the custom SIGSEGV handler.
>
> [1] https://lore.kernel.org/bpf/73d832948b01dbc0ebc60d85574bdf8537f3a810.camel@xxxxxxxxx/
>
> Acked-by: Mykyta Yatsenko <yatsenko@xxxxxxxx>
> Signed-off-by: Ihor Solodrai <ihor.solodrai@xxxxxxxxx>
> ---

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>

[...]