x86/entry/64: Remove the SYSCALL64 fast path
authorAndy Lutomirski <[email protected]>
Sun, 28 Jan 2018 18:38:49 +0000 (10:38 -0800)
committerThomas Gleixner <[email protected]>
Tue, 30 Jan 2018 14:30:36 +0000 (15:30 +0100)
commit21d375b6b34ff511a507de27bf316b3dde6938d9
treeb2b77e5b404afb963a62f51e456a2885022cc164
parent9471eee9186a46893726e22ebb54cade3f9bc043
x86/entry/64: Remove the SYSCALL64 fast path

The SYCALLL64 fast path was a nice, if small, optimization back in the good
old days when syscalls were actually reasonably fast.  Now there is PTI to
slow everything down, and indirect branches are verboten, making everything
messier.  The retpoline code in the fast path is particularly nasty.

Just get rid of the fast path. The slow path is barely slower.

[ tglx: Split out the 'push all extra regs' part ]

Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Kernel Hardening <[email protected]>
Link: https://lkml.kernel.org/r/462dff8d4d64dfbfc851fbf3130641809d980ecd.1517164461.git.luto@kernel.org
arch/x86/entry/entry_64.S
arch/x86/entry/syscall_64.c