diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-22 19:48:04 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-25 14:05:21 +0300 |
commit | d8fc68a04d2ffa7327a5fd89d4cd9f2fe24659d3 (patch) | |
tree | 43457daefaf9b70a208c2e7442e87f56efcce28d /arch/arm64/mm | |
parent | c8f8cca483aa3ec1beb63ee8633de9c76bb3fe6f (diff) | |
download | linux-d8fc68a04d2ffa7327a5fd89d4cd9f2fe24659d3.tar.xz |
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 <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/dump.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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" }, |