mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Ryabinin <a.ryabinin@samsung.com>
To: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	x86@kernel.org
Cc: Andrey Konovalov <adech.fo@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Borislav Petkov <bp@alien8.de>,
	Alexander Popov <alpopov@ptsecurity.com>,
	Dmitry Vyukov <dvyukov@google.com>,
	Alexander Potapenko <glider@google.com>,
	linux-kernel@vger.kernel.org,
	Andrey Ryabinin <a.ryabinin@samsung.com>,
	Paul Bolle <pebolle@tiscali.nl>
Subject: [PATCH v2 6/6] x86_64: kasan: move KASAN_SHADOW_OFFSET to the arch Kconfig
Date: Thu, 02 Jul 2015 12:09:38 +0300	[thread overview]
Message-ID: <1435828178-10975-7-git-send-email-a.ryabinin@samsung.com> (raw)
In-Reply-To: <1435828178-10975-1-git-send-email-a.ryabinin@samsung.com>

KASAN_SHADOW_OFFSET is purely arch specific setting,
so it should be in arch's Kconfig file.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: Paul Bolle <pebolle@tiscali.nl>
---
 arch/x86/Kconfig  | 5 +++++
 lib/Kconfig.kasan | 4 ----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 226d569..8bd35ad 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -248,6 +248,11 @@ config ARCH_SUPPORTS_OPTIMIZED_INLINING
 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
 	def_bool y
 
+config KASAN_SHADOW_OFFSET
+	hex
+	depends on KASAN
+	default 0xdffffc0000000000
+
 config HAVE_INTEL_TXT
 	def_bool y
 	depends on INTEL_IOMMU && ACPI
diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan
index 777eda7..39f24d6 100644
--- a/lib/Kconfig.kasan
+++ b/lib/Kconfig.kasan
@@ -18,10 +18,6 @@ config KASAN
 	  For better error detection enable CONFIG_STACKTRACE,
 	  and add slub_debug=U to boot cmdline.
 
-config KASAN_SHADOW_OFFSET
-	hex
-	default 0xdffffc0000000000 if X86_64
-
 choice
 	prompt "Instrumentation type"
 	depends on KASAN
-- 
2.4.5


  parent reply	other threads:[~2015-07-02  9:12 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:x86/urgent] x86/kasan: Add message about KASAN " tip-bot for Andrey Ryabinin
2015-07-02  9:09 ` Andrey Ryabinin [this message]
2015-07-06 15:38   ` [tip:x86/urgent] x86/kasan: Move KASAN_SHADOW_OFFSET to the arch Kconfig 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=1435828178-10975-7-git-send-email-a.ryabinin@samsung.com \
    --to=a.ryabinin@samsung.com \
    --cc=adech.fo@gmail.com \
    --cc=akpm@linux-foundation.org \
    --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=mingo@redhat.com \
    --cc=pebolle@tiscali.nl \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.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

all inboxes | Powered by JetHome®