Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/kasan: Move KASAN_SHADOW_OFFSET to the arch Kconfig

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: 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: Paul Bolle <pebolle@tiscali.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1435828178-10975-7-git-send-email-a.ryabinin@samsung.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Andrey Ryabinin and committed by
Ingo Molnar
d6f2d75a 85155229

+5 -4
+5
arch/x86/Kconfig
··· 254 254 config ARCH_SUPPORTS_DEBUG_PAGEALLOC 255 255 def_bool y 256 256 257 + config KASAN_SHADOW_OFFSET 258 + hex 259 + depends on KASAN 260 + default 0xdffffc0000000000 261 + 257 262 config HAVE_INTEL_TXT 258 263 def_bool y 259 264 depends on INTEL_IOMMU && ACPI
-4
lib/Kconfig.kasan
··· 18 18 For better error detection enable CONFIG_STACKTRACE, 19 19 and add slub_debug=U to boot cmdline. 20 20 21 - config KASAN_SHADOW_OFFSET 22 - hex 23 - default 0xdffffc0000000000 if X86_64 24 - 25 21 choice 26 22 prompt "Instrumentation type" 27 23 depends on KASAN