diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2015-03-25 13:18:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-27 04:57:06 -0400 |
commit | 47eb582e702880c302036d17341c7ea1a7dc2a53 (patch) | |
tree | c352a279091b6aa20988f5c681f375cdafe39a7b /arch/x86/kernel/entry_64.S | |
parent | 146b2b097d7a322b64b88a927fc5d870fc79a60b (diff) |
x86/asm/entry/64: Use smaller instructions
The $AUDIT_ARCH_X86_64 parameter to syscall_trace_enter_phase1/2
is a 32-bit constant, loading it with 32-bit MOV produces 5-byte
insn instead of 10-byte MOVABS one.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
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/1427303896-24023-3-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/entry_64.S')
-rw-r--r-- | arch/x86/kernel/entry_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index 9988c4b2de33..f85d2ccec6d2 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S | |||
@@ -305,7 +305,7 @@ system_call_fastpath: | |||
305 | /* Do syscall entry tracing */ | 305 | /* Do syscall entry tracing */ |
306 | tracesys: | 306 | tracesys: |
307 | movq %rsp, %rdi | 307 | movq %rsp, %rdi |
308 | movq $AUDIT_ARCH_X86_64, %rsi | 308 | movl $AUDIT_ARCH_X86_64, %esi |
309 | call syscall_trace_enter_phase1 | 309 | call syscall_trace_enter_phase1 |
310 | test %rax, %rax | 310 | test %rax, %rax |
311 | jnz tracesys_phase2 /* if needed, run the slow path */ | 311 | jnz tracesys_phase2 /* if needed, run the slow path */ |
@@ -316,7 +316,7 @@ tracesys: | |||
316 | tracesys_phase2: | 316 | tracesys_phase2: |
317 | SAVE_EXTRA_REGS | 317 | SAVE_EXTRA_REGS |
318 | movq %rsp, %rdi | 318 | movq %rsp, %rdi |
319 | movq $AUDIT_ARCH_X86_64, %rsi | 319 | movl $AUDIT_ARCH_X86_64, %esi |
320 | movq %rax,%rdx | 320 | movq %rax,%rdx |
321 | call syscall_trace_enter_phase2 | 321 | call syscall_trace_enter_phase2 |
322 | 322 | ||