From: Ard Biesheuvel Date: Fri, 22 Apr 2016 16:48:04 +0000 (+0200) Subject: arm64: ptdump: add region marker for kasan shadow region X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8fc68a04d2ffa7327a5fd89d4cd9f2fe24659d3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arm64: ptdump: add region marker for kasan shadow region Annotate the KASAN shadow region with boundary markers, so that its mappings stand out in the page table dumper output. Acked-by: Mark Rutland Signed-off-by: Ard Biesheuvel Signed-off-by: Will Deacon --- diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 493461159462..8404190fe2bd 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -33,6 +34,10 @@ struct addr_marker { }; static const struct addr_marker address_markers[] = { +#ifdef CONFIG_KASAN + { KASAN_SHADOW_START, "Kasan shadow start" }, + { KASAN_SHADOW_END, "Kasan shadow end" }, +#endif { MODULES_VADDR, "Modules start" }, { MODULES_END, "Modules end" }, { VMALLOC_START, "vmalloc() Area" },