[RESEND PATCH v2] arm/mm/ptdump:Add address markers for KASAN regions

Linus Walleij linus.walleij at linaro.org
Thu Jan 21 03:36:32 EST 2021


On Wed, Jan 20, 2021 at 1:54 PM Hailong liu <carver4lio at 163.com> wrote:

> From: Hailong Liu <liu.hailong6 at zte.com.cn>
>
> ARM has recently supported KASAN, so I think that it's time to add KASAN
> regions for PTDUMP on ARM.
>
> I have tested this patch with QEMU + vexpress-a15. Both CONFIG_ARM_LPAE
> and no CONFIG_ARM_LPAE.
>
> The result after patching looks like this:
>  ---[ Kasan shadow start ]---
>  0x6ee00000-0x7af00000         193M     RW NX SHD MEM/CACHED/WBWA
>  0x7b000000-0x7f000000          64M     ro NX SHD MEM/CACHED/WBWA
>  ---[ Kasan shadow end ]---
>  ---[ Modules ]---
>  ---[ Kernel Mapping ]---
>         ......
>  ---[ vmalloc() Area ]---
>         ......
>  ---[ vmalloc() End ]---
>  ---[ Fixmap Area ]---
>  ---[ Vectors ]---
>         ......
>  ---[ Vectors End ]---
>
> v2:
> - fix the puzzling subject and the description due to my
> carelessness.
>
> Signed-off-by: Hailong Liu <liu.hailong6 at zte.com.cn>

Looks correct!
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Please put this into Russell's patch tracker.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list