• Huacai Chen's avatar
    LoongArch: Fix earlycon parameter if KASAN enabled · 639420e9
    Huacai Chen authored
    The earlycon parameter is based on fixmap, and fixmap addresses are not
    supposed to be shadowed by KASAN. So return the kasan_early_shadow_page
    in kasan_mem_to_shadow() if the input address is above FIXADDR_START.
    Otherwise earlycon cannot work after kasan_init().
    
    Cc: stable@vger.kernel.org
    Fixes: 5aa4ac64 ("LoongArch: Add KASAN (Kernel Address Sanitizer) support")
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    639420e9
kasan_init.c 8.84 KB