diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-14 00:54:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-14 00:54:56 -0400 |
commit | 2ad53110d654c7c9a80dcea341f4117246c1b6f9 (patch) | |
tree | 90dac284bd4e08d408a0730fc507389779677b10 | |
parent | 153b19a3b9fd8b9478495b9ee1f93f6a77c564f9 (diff) | |
parent | 2b666859ec323403ac9a3a441d16eab30945404b (diff) |
Merge branch 'x86-urgent-for-linus' of git://tesla.tglx.de/git/linux-2.6-tip
* 'x86-urgent-for-linus' of git://tesla.tglx.de/git/linux-2.6-tip:
x86: Default to vsyscall=native for now
-rw-r--r-- | Documentation/kernel-parameters.txt | 7 | ||||
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 854ed5ca7e3f..d6e6724446c8 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -2706,10 +2706,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
2706 | functions are at fixed addresses, they make nice | 2706 | functions are at fixed addresses, they make nice |
2707 | targets for exploits that can control RIP. | 2707 | targets for exploits that can control RIP. |
2708 | 2708 | ||
2709 | emulate [default] Vsyscalls turn into traps and are | 2709 | emulate Vsyscalls turn into traps and are emulated |
2710 | emulated reasonably safely. | 2710 | reasonably safely. |
2711 | 2711 | ||
2712 | native Vsyscalls are native syscall instructions. | 2712 | native [default] Vsyscalls are native syscall |
2713 | instructions. | ||
2713 | This is a little bit faster than trapping | 2714 | This is a little bit faster than trapping |
2714 | and makes a few dynamic recompilers work | 2715 | and makes a few dynamic recompilers work |
2715 | better than they would in emulation mode. | 2716 | better than they would in emulation mode. |
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index 18ae83dd1cd7..b56c65de384d 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -56,7 +56,7 @@ DEFINE_VVAR(struct vsyscall_gtod_data, vsyscall_gtod_data) = | |||
56 | .lock = __SEQLOCK_UNLOCKED(__vsyscall_gtod_data.lock), | 56 | .lock = __SEQLOCK_UNLOCKED(__vsyscall_gtod_data.lock), |
57 | }; | 57 | }; |
58 | 58 | ||
59 | static enum { EMULATE, NATIVE, NONE } vsyscall_mode = EMULATE; | 59 | static enum { EMULATE, NATIVE, NONE } vsyscall_mode = NATIVE; |
60 | 60 | ||
61 | static int __init vsyscall_setup(char *str) | 61 | static int __init vsyscall_setup(char *str) |
62 | { | 62 | { |