]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
arm64: ptdump: add region marker for kasan shadow region
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 22 Apr 2016 16:48:04 +0000 (18:48 +0200)
committerWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 11:05:21 +0000 (12:05 +0100)
Annotate the KASAN shadow region with boundary markers, so that its
mappings stand out in the page table dumper output.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dump.c

index 493461159462149fdced97e82c80e2b0f4042fec..8404190fe2bd43cbc78fcc7f8b113bdce4213b88 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/seq_file.h>
 
 #include <asm/fixmap.h>
+#include <asm/kasan.h>
 #include <asm/memory.h>
 #include <asm/pgtable.h>
 #include <asm/pgtable-hwdef.h>
@@ -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" },