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

From: Linus Walleij
Date: Thu Jan 21 2021 - 03:38:44 EST


On Wed, Jan 20, 2021 at 1:54 PM Hailong liu <carver4lio@xxxxxxx> wrote:

> From: Hailong Liu <liu.hailong6@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>

Looks correct!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Please put this into Russell's patch tracker.

Yours,
Linus Walleij