diff options
author | Andy Lutomirski <luto@kernel.org> | 2017-11-02 00:59:00 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-11-02 11:04:38 +0100 |
commit | 8a055d7f411d41755ce30db5bb65b154777c4b78 (patch) | |
tree | e4ccf57a6d2d08d18c96c7a5703be93c5cea09d4 /arch/x86/entry/entry_64_compat.S | |
parent | 26c4ef9c49d8a0341f6d97ce2cfdd55d1236ed29 (diff) | |
download | op-kernel-dev-8a055d7f411d41755ce30db5bb65b154777c4b78.zip op-kernel-dev-8a055d7f411d41755ce30db5bb65b154777c4b78.tar.gz |
x86/entry/64: Move SWAPGS into the common IRET-to-usermode path
All of the code paths that ended up doing IRET to usermode did
SWAPGS immediately beforehand. Move the SWAPGS into the common
code.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/27fd6f45b7cd640de38fb9066fd0349bcd11f8e1.1509609304.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/entry/entry_64_compat.S')
-rw-r--r-- | arch/x86/entry/entry_64_compat.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/entry/entry_64_compat.S b/arch/x86/entry/entry_64_compat.S index 9ca014a..932b96c 100644 --- a/arch/x86/entry/entry_64_compat.S +++ b/arch/x86/entry/entry_64_compat.S @@ -336,8 +336,7 @@ ENTRY(entry_INT80_compat) /* Go back to user mode. */ TRACE_IRQS_ON - SWAPGS - jmp restore_regs_and_return_to_usermode + jmp swapgs_restore_regs_and_return_to_usermode END(entry_INT80_compat) ENTRY(stub32_clone) |