Re: [PATCH v3 02/12] kasan: unify static kasan_flag_enabled across modes

2025-07-21 Thread Andrey Ryabinin
On 7/17/25 4:27 PM, Sabyrzhan Tasbolatov wrote: > Historically, the runtime static key kasan_flag_enabled existed only for > CONFIG_KASAN_HW_TAGS mode. Generic and SW_TAGS modes either relied on > architecture-specific kasan_arch_is_ready() implementations or evaluated > KASAN checks uncondition

[PATCH v3 02/12] kasan: unify static kasan_flag_enabled across modes

2025-07-17 Thread Sabyrzhan Tasbolatov
Historically, the runtime static key kasan_flag_enabled existed only for CONFIG_KASAN_HW_TAGS mode. Generic and SW_TAGS modes either relied on architecture-specific kasan_arch_is_ready() implementations or evaluated KASAN checks unconditionally, leading to code duplication. This patch implements t