diff mbox

[2/3] arm64: ptdump: add region marker for kasan shadow region

Message ID 1456135239-3607-3-git-send-email-ard.biesheuvel@linaro.org
State Superseded
Headers show

Commit Message

Ard Biesheuvel Feb. 22, 2016, 10 a.m. UTC
Annotate the KASAN shadow region with boundary markers, so that its
mappings stand out in the page table dumper output.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 arch/arm64/mm/dump.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.5.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Comments

Mark Rutland Feb. 22, 2016, 11:33 a.m. UTC | #1
On Mon, Feb 22, 2016 at 11:00:38AM +0100, Ard Biesheuvel wrote:
> Annotate the KASAN shadow region with boundary markers, so that its

> mappings stand out in the page table dumper output.

> 

> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>


Acked-by: Mark Rutland <mark.rutland@arm.com>


Mark.

> ---

>  arch/arm64/mm/dump.c | 5 +++++

>  1 file changed, 5 insertions(+)

> 

> diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c

> index eadcb70e733c..12e4b1732303 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>

> @@ -35,6 +36,10 @@ struct addr_marker {

>  };

>  

>  static 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" },

> -- 

> 2.5.0

> 

> 

> _______________________________________________

> linux-arm-kernel mailing list

> linux-arm-kernel@lists.infradead.org

> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

> 


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c
index eadcb70e733c..12e4b1732303 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>
@@ -35,6 +36,10 @@  struct addr_marker {
 };
 
 static 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" },