Re: [PATCH 1/9] kasan: unify static kasan_flag_enabled across modes

2025-06-26 Thread Sabyrzhan Tasbolatov
On Wed, Jun 25, 2025 at 3:35 PM Christophe Leroy wrote: > > > > Le 25/06/2025 à 11:52, Sabyrzhan Tasbolatov a écrit : > > Historically the fast-path static key `kasan_flag_enabled` existed > > only for `CONFIG_KASAN_HW_TAGS`. Generic and SW_TAGS either relied on > > `kasan_arch_is_ready()` or eval

Re: [PATCH 1/9] kasan: unify static kasan_flag_enabled across modes

2025-06-25 Thread Christophe Leroy
Le 25/06/2025 à 11:52, Sabyrzhan Tasbolatov a écrit : Historically the fast-path static key `kasan_flag_enabled` existed only for `CONFIG_KASAN_HW_TAGS`. Generic and SW_TAGS either relied on `kasan_arch_is_ready()` or evaluated KASAN checks unconditionally. As a result every architecture had t

[PATCH 1/9] kasan: unify static kasan_flag_enabled across modes

2025-06-25 Thread Sabyrzhan Tasbolatov
Historically the fast-path static key `kasan_flag_enabled` existed only for `CONFIG_KASAN_HW_TAGS`. Generic and SW_TAGS either relied on `kasan_arch_is_ready()` or evaluated KASAN checks unconditionally. As a result every architecture had to toggle a private flag in its `kasan_init()`. This patch