Thread (20 messages) 20 messages, 4 authors, 2025-06-26

Re: [PATCH 2/9] kasan: replace kasan_arch_is_ready with kasan_enabled

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2025-06-25 12:24:23
Also in: linux-arm-kernel, linux-mm, linux-s390, linux-um, lkml, loongarch

On Wed, 2025-06-25 at 12:27 +0200, Christophe Leroy wrote:
Le 25/06/2025 à 11:52, Sabyrzhan Tasbolatov a écrit :
quoted
Replace the existing kasan_arch_is_ready() calls with kasan_enabled().
Drop checks where the caller is already under kasan_enabled() condition.
If I understand correctly, it means that KASAN won't work anymore 
between patch 2 and 9, because until the arch calls kasan_init_generic() 
kasan_enabled() will return false.

The transition should be smooth and your series should remain bisectable.

Or am I missing something ?
Seems right to me, it won't work for architectures that define
kasan_arch_is_ready themselves I think?

But since they have to literally #define it, could #ifdef on that
temporarily?

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help