Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753926AbbGBJMa (ORCPT ); Thu, 2 Jul 2015 05:12:30 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:14625 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbbGBJJy (ORCPT ); Thu, 2 Jul 2015 05:09:54 -0400 X-AuditID: cbfec7f5-f794b6d000001495-38-5594ffdf271f 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 v2 6/6] x86_64: kasan: move KASAN_SHADOW_OFFSET to the arch Kconfig Date: Thu, 02 Jul 2015 12:09:38 +0300 Message-id: <1435828178-10975-7-git-send-email-a.ryabinin@samsung.com> X-Mailer: git-send-email 2.4.5 In-reply-to: <1435828178-10975-1-git-send-email-a.ryabinin@samsung.com> References: <1435828178-10975-1-git-send-email-a.ryabinin@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t/xa7r3/08JNTj8U81i269HbBa/985k tZizfg2bxfQdfewWnzf8Y7OY8LCN3aL9415mi2kbxS0u75rDZnHpwAImi0W3zjBbbN40ldni x4bHrA68Ht9b+1g8ds66y+6xYFOpx6ZVnWwe786dY/c4MeM3i8f2R1NZPN7vu8rm0bdlFaPH xu1PmDw+b5LzONHyhTWAJ4rLJiU1J7MstUjfLoErY/G5vYwFXzkqfmw6wt7AuIK9i5GTQ0LA ROLmm0WMELaYxIV769m6GLk4hASWMkrs/P+YHcJpYpI4c2geM0gVm4CexL9Z29lAbBGBGomO 1m5mkCJmgTtMEhMv7mQCSQgLhEpsf9UONpZFQFXiwvT1YM28Am4SFxv+s3QxcgCtk5NY2lwL EuYUcJfobHoDdpEQUMm15rtMExh5FzAyrGIUTS1NLihOSs810itOzC0uzUvXS87P3cQICeqv OxiXHrM6xCjAwajEw7uiZkqoEGtiWXFl7iFGCQ5mJRHe9S+BQrwpiZVVqUX58UWlOanFhxil OViUxHln7nofIiSQnliSmp2aWpBaBJNl4uCUamCMXbVWa4XTjbSdzbuXZHq1qes+UNXq1tLt W/ykVvBJT7rlqtJ0/13hLEfNtNqPzTc7cELqWPr2RMnOpPC0Y5fUe2LqN8ks31Fz8kZe5IOe CJF29+hm+8Q20+7HVdfMTSbUC551X6W2+8apXpajyvfcRO1zRco6O+NOye58+HjRws9dpycm /FViKc5INNRiLipOBACrzndiZgIAAA== 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.5 -- 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/