From: tip-bot for Andrey Ryabinin <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: glider@google.com, torvalds@linux-foundation.org, hpa@zytor.com,
a.ryabinin@samsung.com, peterz@infradead.org, dvyukov@google.com,
bp@alien8.de, tglx@linutronix.de, adech.fo@gmail.com,
alpopov@ptsecurity.com, linux-kernel@vger.kernel.org,
mingo@kernel.org
Subject: [tip:x86/urgent] x86/kasan: Add message about KASAN being initialized
Date: Mon, 6 Jul 2015 08:37:46 -0700 [thread overview]
Message-ID: <tip-8515522949951d81fe2d06c0a3292f171f2b8ec4@git.kernel.org> (raw)
In-Reply-To: <1435828178-10975-6-git-send-email-a.ryabinin@samsung.com>
Commit-ID: 8515522949951d81fe2d06c0a3292f171f2b8ec4
Gitweb: http://git.kernel.org/tip/8515522949951d81fe2d06c0a3292f171f2b8ec4
Author: Andrey Ryabinin <a.ryabinin@samsung.com>
AuthorDate: Thu, 2 Jul 2015 12:09:37 +0300
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 6 Jul 2015 14:53:14 +0200
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>
---
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 9a54dbe..e1840f3 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");
}
next prev parent reply other threads:[~2015-07-06 15:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 9:09 [PATCH v2 0/6] x86_64 kasan fixes Andrey Ryabinin
2015-07-02 9:09 ` [PATCH v2 1/6] x86_64, init: clear init_level4_pgt earlier Andrey Ryabinin
2015-07-06 15:36 ` [tip:x86/urgent] x86/init: Clear 'init_level4_pgt' earlier tip-bot for Andrey Ryabinin
2015-07-02 9:09 ` [PATCH v2 2/6] x86_64: kasan: fix kasan shadow region page tables Andrey Ryabinin
2015-07-06 15:36 ` [tip:x86/urgent] x86/kasan: Fix KASAN " tip-bot for Alexander Popov
2015-07-02 9:09 ` [PATCH v2 3/6] x86_64: kasan: flush tlbs after switching cr3 Andrey Ryabinin
2015-07-06 15:37 ` [tip:x86/urgent] x86/kasan: Flush TLBs after switching CR3 tip-bot for Andrey Ryabinin
2015-07-02 9:09 ` [PATCH v2 4/6] x86_64: kasan: fix boot crash on AMD processors Andrey Ryabinin
2015-07-06 15:37 ` [tip:x86/urgent] x86/kasan: Fix " tip-bot for Andrey Ryabinin
2015-07-02 9:09 ` [PATCH v2 5/6] x86_64: kasan: add message about kasan being initialized Andrey Ryabinin
2015-07-06 15:37 ` tip-bot for Andrey Ryabinin [this message]
2015-07-02 9:09 ` [PATCH v2 6/6] x86_64: kasan: move KASAN_SHADOW_OFFSET to the arch Kconfig Andrey Ryabinin
2015-07-06 15:38 ` [tip:x86/urgent] x86/kasan: Move " tip-bot for Andrey Ryabinin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-8515522949951d81fe2d06c0a3292f171f2b8ec4@git.kernel.org \
--to=tipbot@zytor.com \
--cc=a.ryabinin@samsung.com \
--cc=adech.fo@gmail.com \
--cc=alpopov@ptsecurity.com \
--cc=bp@alien8.de \
--cc=dvyukov@google.com \
--cc=glider@google.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome