]> Git Repo - linux.git/commit
x86/asm/entry/64: Move opportunistic sysret code to syscall code path
authorDenys Vlasenko <[email protected]>
Thu, 2 Apr 2015 16:46:59 +0000 (18:46 +0200)
committerIngo Molnar <[email protected]>
Wed, 8 Apr 2015 07:02:12 +0000 (09:02 +0200)
commitfffbb5dcfd29f8831e41b4dd2ab938bd36d35283
tree2125f2510b43c95b1d7c86e41b20bec790c1cec2
parent4bcc7827b02feea2c762fa6d46a1bffb300d7403
x86/asm/entry/64: Move opportunistic sysret code to syscall code path

This change does two things:

Copy-pastes "retint_swapgs:" code into syscall handling code,
the copy is under "syscall_return:" label. The code is unchanged
apart from some label renames.

Removes "opportunistic sysret" code from "retint_swapgs:" code
block, since now it won't be reached by syscall return. This in
fact removes most of the code in question.

   text    data     bss     dec     hex filename
  12530       0       0   12530    30f2 entry_64.o.before
  12562       0       0   12562    3112 entry_64.o

Run-tested.

Acked-and-Tested-by: Borislav Petkov <[email protected]>
Signed-off-by: Denys Vlasenko <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Will Drewry <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/entry_64.S
This page took 0.054819 seconds and 4 git commands to generate.