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

Merge tag 'x86_vdso_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 vdso update from Borislav Petkov:

- Get rid of CONFIG_LEGACY_VSYSCALL_EMULATE as nothing should be using
it anymore

* tag 'x86_vdso_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/vsyscall: Remove CONFIG_LEGACY_VSYSCALL_EMULATE

+4 -16
+3 -15
arch/x86/Kconfig
··· 2330 2330 it can be used to assist security vulnerability exploitation. 2331 2331 2332 2332 This setting can be changed at boot time via the kernel command 2333 - line parameter vsyscall=[emulate|xonly|none]. 2333 + line parameter vsyscall=[emulate|xonly|none]. Emulate mode 2334 + is deprecated and can only be enabled using the kernel command 2335 + line. 2334 2336 2335 2337 On a system with recent enough glibc (2.14 or newer) and no 2336 2338 static binaries, you can say None without a performance penalty 2337 2339 to improve security. 2338 2340 2339 2341 If unsure, select "Emulate execution only". 2340 - 2341 - config LEGACY_VSYSCALL_EMULATE 2342 - bool "Full emulation" 2343 - help 2344 - The kernel traps and emulates calls into the fixed vsyscall 2345 - address mapping. This makes the mapping non-executable, but 2346 - it still contains readable known contents, which could be 2347 - used in certain rare security vulnerability exploits. This 2348 - configuration is recommended when using legacy userspace 2349 - that still uses vsyscalls along with legacy binary 2350 - instrumentation tools that require code to be readable. 2351 - 2352 - An example of this type of legacy userspace is running 2353 - Pin on an old binary that still uses vsyscalls. 2354 2342 2355 2343 config LEGACY_VSYSCALL_XONLY 2356 2344 bool "Emulate execution only"
+1 -1
arch/x86/entry/vsyscall/vsyscall_64.c
··· 48 48 #elif defined(CONFIG_LEGACY_VSYSCALL_XONLY) 49 49 XONLY; 50 50 #else 51 - EMULATE; 51 + #error VSYSCALL config is broken 52 52 #endif 53 53 54 54 static int __init vsyscall_setup(char *str)