From: Andy Lutomirski Date: Thu, 27 Jun 2019 04:45:07 +0000 (-0700) Subject: x86/vsyscall: Change the default vsyscall mode to xonly X-Git-Tag: v5.4-rc1~685^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=625b7b7f79c66626fb2b7687fc1a58309a57edd5;p=platform%2Fkernel%2Flinux-rpi.git x86/vsyscall: Change the default vsyscall mode to xonly The use case for full emulation over xonly is very esoteric, e.g. magic instrumentation tools. Change the default to the safer xonly mode. Signed-off-by: Andy Lutomirski Signed-off-by: Thomas Gleixner Reviewed-by: Kees Cook Cc: Florian Weimer Cc: Jann Horn Cc: Borislav Petkov Cc: Kernel Hardening Cc: Peter Zijlstra Link: https://lkml.kernel.org/r/30539f8072d2376b9c9efcc07e6ed0d6bf20e882.1561610354.git.luto@kernel.org --- diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 0182d2c..32028ed 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2285,7 +2285,7 @@ config COMPAT_VDSO choice prompt "vsyscall table for legacy applications" depends on X86_64 - default LEGACY_VSYSCALL_EMULATE + default LEGACY_VSYSCALL_XONLY help Legacy user code that does not know how to find the vDSO expects to be able to issue three syscalls by calling fixed addresses in