ARM: 9053/1: arm/mm/ptdump:Add address markers for KASAN regions
authorHailong Liu <carver4lio@163.com>
Mon, 25 Jan 2021 13:56:16 +0000 (14:56 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 1 Feb 2021 19:48:06 +0000 (19:48 +0000)
commitb53a9edcde37bb9f9e0b1176ef4b3fd7305813b6
tree767fc3b9f20feba349023351280027a3a39955bb
parentc9c5c23b7737e08bf1ccb2fef82c5d23894734ec
ARM: 9053/1: arm/mm/ptdump:Add address markers for KASAN regions

ARM has recently supported KASAN, so I think that it's time to add
KASAN regions for PTDUMP on ARM.

This patch has been tested 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 ]---

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hailong liu <liu.hailong6@zte.com.cn>
Signed-off-by: Hailong liu <carver4lio@163.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/dump.c