On Thu, Apr 02, 2015 at 06:46:59PM +0200, Denys Vlasenko wrote: > 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. > > Signed-off-by: Denys Vlasenko <[email protected]> > CC: Linus Torvalds <[email protected]> > CC: Steven Rostedt <[email protected]> > CC: Ingo Molnar <[email protected]> > CC: Borislav Petkov <[email protected]> > CC: "H. Peter Anvin" <[email protected]> > CC: Andy Lutomirski <[email protected]> > CC: Oleg Nesterov <[email protected]> > CC: Frederic Weisbecker <[email protected]> > CC: Alexei Starovoitov <[email protected]> > CC: Will Drewry <[email protected]> > CC: Kees Cook <[email protected]> > CC: [email protected] > CC: [email protected] > --- > arch/x86/kernel/entry_64.S | 158 > ++++++++++++++++++++++++--------------------- > 1 file changed, 86 insertions(+), 72 deletions(-)
Acked-and-tested-by: Borislav Petkov <[email protected]> -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

