Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753021AbbF3JCP (ORCPT ); Tue, 30 Jun 2015 05:02:15 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36577 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbbF3JAa (ORCPT ); Tue, 30 Jun 2015 05:00:30 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-1c-55925aa56a23 From: Andrey Ryabinin To: Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , x86@kernel.org Cc: Andrey Konovalov , Andrew Morton , Borislav Petkov , Alexander Popov , Dmitry Vyukov , Alexander Potapenko , linux-kernel@vger.kernel.org, Andrey Ryabinin , Paul Bolle Subject: [PATCH 5/5] x86_64: kasan: move KASAN_SHADOW_OFFSET to the arch Kconfig Date: Tue, 30 Jun 2015 12:00:11 +0300 Message-id: <1435654811-8915-6-git-send-email-a.ryabinin@samsung.com> X-Mailer: git-send-email 2.4.4 In-reply-to: <1435654811-8915-1-git-send-email-a.ryabinin@samsung.com> References: <1435654466-8714-1-git-send-email-a.ryabinin@samsung.com> <1435654811-8915-1-git-send-email-a.ryabinin@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t/xy7pLoyaFGryZYmyx7dcjNovfe2ey WsxZv4bNYvqOPnaLzxv+sVlMeNjGbtH+cS+zxbSN4haXd81hs7h0YAGTxaJbZ5gtNm+aymzx Y8NjVgdej++tfSweO2fdZfdYsKnUY9OqTjaPd+fOsXucmPGbxWP7o6ksHu/3XWXz6NuyitFj 4/YnTB6fN8l5nGj5whrAE8Vlk5Kak1mWWqRvl8CVMWtDScFXjopr/TINjCvYuxg5OSQETCT2 H17ECmGLSVy4t56ti5GLQ0hgKaPE/SP7GSGcJiaJzQ/Xs4BUsQnoSfybtZ0NxBYRqJHoaO1m BiliFrjDJDHx4k4mkISwQIBEw99jjCA2i4CqxPkHJ8HivAKuEnv2LWGEWCcnceX6dLBBnAJu EstfHWOB2NbIKPHr9h32CYy8CxgZVjGKppYmFxQnpeca6hUn5haX5qXrJefnbmKEBPWXHYyL j1kdYhTgYFTi4d3xfGKoEGtiWXFl7iFGCQ5mJRHeOslJoUK8KYmVValF+fFFpTmpxYcYpTlY lMR55+56HyIkkJ5YkpqdmlqQWgSTZeLglGpgDK6fzlNwYO+HyRUf/git29D/Wys0co/i1IUr 3l29zLuz9ubD9NWSuzXfc7xtvbLU06fCOGnXD1a2hOYT7Y83TNC+H/Py03vfUIl9DNrVveEl 0yzqnX54nfn2Qjgzaq2bte38lWdavjT/WOF8QeWMrE0iv+JpVsWwK/FzVx184LB3he6uZsWS eUosxRmJhlrMRcWJAJwyObtmAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1342 Lines: 49 KASAN_SHADOW_OFFSET is purely arch specific setting, so it should be in arch's Kconfig file. Signed-off-by: Andrey Ryabinin Cc: Paul Bolle --- 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.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/