[PATCH v2] ARM: kasan: Only map modules if CONFIG_KASAN_VMALLOC=n
Alexander Sverdlin
alexander.sverdlin at nokia.com
Mon Sep 5 08:28:35 PDT 2022
Hello Linus,
On 05/09/2022 15:38, Linus Walleij wrote:
>> In case CONFIG_KASAN_VMALLOC=y kasan_populate_vmalloc() allocates the
>> shadow pages dynamically. But even worse is that kasan_release_vmalloc()
>> releases them, which is not compatible with create_mapping() of
>> MODULES_VADDR..MODULES_END range:
>>
>> BUG: Bad page state in process kworker/9:1 pfn:2068b
[...]
>>
>> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
>> Signed-off-by: Alexander Sverdlin <alexander.sverdlin at nokia.com>
> Thanks Alexander, will you submit this to Russell's patch tracker please?
done!
https://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=9242/1
Thank you for the quick review!
--
Best regards,
Alexander Sverdlin.
More information about the linux-arm-kernel
mailing list