[PATCH v5 1/2] kasan: introduce ARCH_DEFER_KASAN and unify static key across modes
    Christophe Leroy 
    christophe.leroy at csgroup.eu
       
    Fri Aug  8 17:33:45 AEST 2025
    
    
  
Le 08/08/2025 à 09:26, Sabyrzhan Tasbolatov a écrit :
> On Fri, Aug 8, 2025 at 10:03 AM Christophe Leroy
> <christophe.leroy at csgroup.eu> wrote:
>>> diff --git a/arch/um/Kconfig b/arch/um/Kconfig
>>> index 9083bfdb773..a12cc072ab1 100644
>>> --- a/arch/um/Kconfig
>>> +++ b/arch/um/Kconfig
>>> @@ -5,6 +5,7 @@ menu "UML-specific options"
>>>    config UML
>>>        bool
>>>        default y
>>> +     select ARCH_DEFER_KASAN if STATIC_LINK
>>
>> No need to also verify KASAN here like powerpc and loongarch ?
> 
> Sorry, I didn't quite understand the question.
> I've verified powerpc with KASAN enabled which selects KASAN_OUTLINE,
> as far as I remember, and GENERIC mode.
The question is whether:
	select ARCH_DEFER_KASAN if STATIC_LINK
is enough ? Shouldn't it be:
	select ARCH_DEFER_KASAN if KASAN && STATIC_LINK
Like for powerpc and loongarch ?
> 
> I haven't tested LoongArch booting via QEMU, only tested compilation.
> I guess, I need to test the boot, will try to learn how to do it for
> qemu-system-loongarch64. Would be helpful LoongArch devs in CC can
> assist as well.
> 
> STATIC_LINK is defined for UML only.
> 
    
    
More information about the Linuxppc-dev
mailing list