aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2015-03-19 13:17:49 -0400
committerIngo Molnar <mingo@kernel.org>2015-03-24 14:42:38 -0400
commit65c2377486c0b68f149f7d8770499a86b15786b6 (patch)
tree72cb14c5170e61b0dca9e30621bebc0a73f6ef05 /arch/x86/kernel
parenta71ffdd780760dc62c3d4cffb98eaaedaf5068b8 (diff)
x86/asm/entry/64: Get rid of int_ret_from_sys_call_fixup
With the FIXUP_TOP_OF_STACK macro removed, this intermediate jump is unnecessary. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Acked-by: Borislav Petkov <bp@suse.de> Acked-by: Andy Lutomirski <luto@kernel.org> Cc: Alexei Starovoitov <ast@plumgrid.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Will Drewry <wad@chromium.org> Link: http://lkml.kernel.org/r/1426785469-15125-5-git-send-email-dvlasenk@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/entry_64.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 3f8daba28eb0..df04ee069b1f 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -268,7 +268,7 @@ system_call_fastpath:
268 */ 268 */
269ret_from_sys_call: 269ret_from_sys_call:
270 testl $_TIF_ALLWORK_MASK,TI_flags+THREAD_INFO(%rsp,SIZEOF_PTREGS) 270 testl $_TIF_ALLWORK_MASK,TI_flags+THREAD_INFO(%rsp,SIZEOF_PTREGS)
271 jnz int_ret_from_sys_call_fixup /* Go the the slow path */ 271 jnz int_ret_from_sys_call /* Go the slow path */
272 272
273 LOCKDEP_SYS_EXIT 273 LOCKDEP_SYS_EXIT
274 DISABLE_INTERRUPTS(CLBR_NONE) 274 DISABLE_INTERRUPTS(CLBR_NONE)
@@ -293,9 +293,6 @@ ret_from_sys_call:
293 293
294 CFI_RESTORE_STATE 294 CFI_RESTORE_STATE
295 295
296int_ret_from_sys_call_fixup:
297 jmp int_ret_from_sys_call
298
299 /* Do syscall entry tracing */ 296 /* Do syscall entry tracing */
300tracesys: 297tracesys:
301 movq %rsp, %rdi 298 movq %rsp, %rdi