[Devel] [PATCH 39/39] x86/kasan: Add message about KASAN being initialized
Andrey Ryabinin
aryabinin at odin.com
Mon Aug 24 03:19:29 PDT 2015
From: Andrey Ryabinin <a.ryabinin at samsung.com>
commit 8515522949951d81fe2d06c0a3292f171f2b8ec4 upstream.
Print informational message to tell user that kernel
runs with KASAN enabled.
Add a "kasan: " prefix to all messages in kasan_init_64.c.
Signed-off-by: Andrey Ryabinin <a.ryabinin at samsung.com>
Cc: Alexander Popov <alpopov at ptsecurity.com>
Cc: Alexander Potapenko <glider at google.com>
Cc: Andrey Konovalov <adech.fo at gmail.com>
Cc: Borislav Petkov <bp at alien8.de>
Cc: Dmitry Vyukov <dvyukov at google.com>
Cc: Linus Torvalds <torvalds at linux-foundation.org>
Cc: Peter Zijlstra <peterz at infradead.org>
Cc: Thomas Gleixner <tglx at linutronix.de>
Link: http://lkml.kernel.org/r/1435828178-10975-6-git-send-email-a.ryabinin@samsung.com
Signed-off-by: Ingo Molnar <mingo at kernel.org>
Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
---
arch/x86/mm/kasan_init_64.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/x86/mm/kasan_init_64.c b/arch/x86/mm/kasan_init_64.c
index ef3dea9..f9fb08e 100644
--- a/arch/x86/mm/kasan_init_64.c
+++ b/arch/x86/mm/kasan_init_64.c
@@ -1,3 +1,4 @@
+#define pr_fmt(fmt) "kasan: " fmt
#include <linux/bootmem.h>
#include <linux/kasan.h>
#include <linux/kdebug.h>
@@ -237,4 +238,6 @@ void __init kasan_init(void)
load_cr3(init_level4_pgt);
__flush_tlb_all();
init_task.kasan_depth = 0;
+
+ pr_info("Kernel address sanitizer initialized\n");
}
--
2.4.6
More information about the Devel
mailing list