aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2017-11-17 11:40:16 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-09 05:21:22 -0400
commit0dac8f6bc3699f28d807ad3a5ec575e18da8ba62 (patch)
treecf15ac0c193aebdc167a9d0cdeabcd7625f79055
parentb6cbe3e8bdff6f21f1b58b08a55f479cdcf98282 (diff)
s390/mm: add kasan shadow to the debugfs pgtable dump
This change adds address space markers for kasan shadow memory. Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/mm/dump_pagetables.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/s390/mm/dump_pagetables.c b/arch/s390/mm/dump_pagetables.c
index 7cdea2ec51e9..5139c24111bc 100644
--- a/arch/s390/mm/dump_pagetables.c
+++ b/arch/s390/mm/dump_pagetables.c
@@ -3,6 +3,7 @@
3#include <linux/debugfs.h> 3#include <linux/debugfs.h>
4#include <linux/sched.h> 4#include <linux/sched.h>
5#include <linux/mm.h> 5#include <linux/mm.h>
6#include <asm/kasan.h>
6#include <asm/sections.h> 7#include <asm/sections.h>
7#include <asm/pgtable.h> 8#include <asm/pgtable.h>
8 9
@@ -17,18 +18,26 @@ enum address_markers_idx {
17 IDENTITY_NR = 0, 18 IDENTITY_NR = 0,
18 KERNEL_START_NR, 19 KERNEL_START_NR,
19 KERNEL_END_NR, 20 KERNEL_END_NR,
21#ifdef CONFIG_KASAN
22 KASAN_SHADOW_START_NR,
23 KASAN_SHADOW_END_NR,
24#endif
20 VMEMMAP_NR, 25 VMEMMAP_NR,
21 VMALLOC_NR, 26 VMALLOC_NR,
22 MODULES_NR, 27 MODULES_NR,
23}; 28};
24 29
25static struct addr_marker address_markers[] = { 30static struct addr_marker address_markers[] = {
26 [IDENTITY_NR] = {0, "Identity Mapping"}, 31 [IDENTITY_NR] = {0, "Identity Mapping"},
27 [KERNEL_START_NR] = {(unsigned long)_stext, "Kernel Image Start"}, 32 [KERNEL_START_NR] = {(unsigned long)_stext, "Kernel Image Start"},
28 [KERNEL_END_NR] = {(unsigned long)_end, "Kernel Image End"}, 33 [KERNEL_END_NR] = {(unsigned long)_end, "Kernel Image End"},
29 [VMEMMAP_NR] = {0, "vmemmap Area"}, 34#ifdef CONFIG_KASAN
30 [VMALLOC_NR] = {0, "vmalloc Area"}, 35 [KASAN_SHADOW_START_NR] = {KASAN_SHADOW_START, "Kasan Shadow Start"},
31 [MODULES_NR] = {0, "Modules Area"}, 36 [KASAN_SHADOW_END_NR] = {KASAN_SHADOW_END, "Kasan Shadow End"},
37#endif
38 [VMEMMAP_NR] = {0, "vmemmap Area"},
39 [VMALLOC_NR] = {0, "vmalloc Area"},
40 [MODULES_NR] = {0, "Modules Area"},
32 { -1, NULL } 41 { -1, NULL }
33}; 42};
34 43