Skip to content

Commit d8fc68a

Browse files
Ard Biesheuvelwildea01
authored andcommitted
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>
1 parent c8f8cca commit d8fc68a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/mm/dump.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/seq_file.h>
2424

2525
#include <asm/fixmap.h>
26+
#include <asm/kasan.h>
2627
#include <asm/memory.h>
2728
#include <asm/pgtable.h>
2829
#include <asm/pgtable-hwdef.h>
@@ -33,6 +34,10 @@ struct addr_marker {
3334
};
3435

3536
static const struct addr_marker address_markers[] = {
37+
#ifdef CONFIG_KASAN
38+
{ KASAN_SHADOW_START, "Kasan shadow start" },
39+
{ KASAN_SHADOW_END, "Kasan shadow end" },
40+
#endif
3641
{ MODULES_VADDR, "Modules start" },
3742
{ MODULES_END, "Modules end" },
3843
{ VMALLOC_START, "vmalloc() Area" },

0 commit comments

Comments
 (0)