Skip to content

Commit d6ecaa0

Browse files
committed
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
2 parents 88699f8 + bf00745 commit d6ecaa0

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

arch/x86/Kconfig

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,28 +2330,16 @@ choice
23302330
it can be used to assist security vulnerability exploitation.
23312331

23322332
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.
23342336

23352337
On a system with recent enough glibc (2.14 or newer) and no
23362338
static binaries, you can say None without a performance penalty
23372339
to improve security.
23382340

23392341
If unsure, select "Emulate execution only".
23402342

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-
23552343
config LEGACY_VSYSCALL_XONLY
23562344
bool "Emulate execution only"
23572345
help

arch/x86/entry/vsyscall/vsyscall_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static enum { EMULATE, XONLY, NONE } vsyscall_mode __ro_after_init =
4848
#elif defined(CONFIG_LEGACY_VSYSCALL_XONLY)
4949
XONLY;
5050
#else
51-
EMULATE;
51+
#error VSYSCALL config is broken
5252
#endif
5353

5454
static int __init vsyscall_setup(char *str)

0 commit comments

Comments
 (0)