diff options
author | Andrey Ryabinin <a.ryabinin@samsung.com> | 2015-07-02 05:09:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-07-06 08:53:14 -0400 |
commit | 8515522949951d81fe2d06c0a3292f171f2b8ec4 (patch) | |
tree | 968a48460659b704825d5acfdfecd339a5176b46 | |
parent | d4f86beacc21d538dc41e1fc75a22e084f547edf (diff) |
x86/kasan: Add message about KASAN being initialized
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@samsung.com>
Cc: Alexander Popov <alpopov@ptsecurity.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <adech.fo@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1435828178-10975-6-git-send-email-a.ryabinin@samsung.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/mm/kasan_init_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/mm/kasan_init_64.c b/arch/x86/mm/kasan_init_64.c index 9a54dbe98064..e1840f3db5b5 100644 --- a/arch/x86/mm/kasan_init_64.c +++ b/arch/x86/mm/kasan_init_64.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #define pr_fmt(fmt) "kasan: " fmt | ||
1 | #include <linux/bootmem.h> | 2 | #include <linux/bootmem.h> |
2 | #include <linux/kasan.h> | 3 | #include <linux/kasan.h> |
3 | #include <linux/kdebug.h> | 4 | #include <linux/kdebug.h> |
@@ -237,4 +238,6 @@ void __init kasan_init(void) | |||
237 | load_cr3(init_level4_pgt); | 238 | load_cr3(init_level4_pgt); |
238 | __flush_tlb_all(); | 239 | __flush_tlb_all(); |
239 | init_task.kasan_depth = 0; | 240 | init_task.kasan_depth = 0; |
241 | |||
242 | pr_info("Kernel address sanitizer initialized\n"); | ||
240 | } | 243 | } |