From ae40e4b541d19cf508e6d438c094dc781247b865 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Fri, 7 Nov 2003 21:59:32 -0800 Subject: [PATCH] [PATCH] Fix oops in x86-64 strace path Fix a nasty typo found by Albert Cahalan. This lead to an oops when a invalid syscall was called under strace in 2.6. --- arch/x86_64/kernel/entry.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S index fcfa1af913c72..cfed9f6120815 100644 --- a/arch/x86_64/kernel/entry.S +++ b/arch/x86_64/kernel/entry.S @@ -219,8 +219,8 @@ tracesys: movq %r10,%rcx /* fixup for C */ call *sys_call_table(,%rax,8) movq %rax,RAX-ARGOFFSET(%rsp) - SAVE_REST -1: movq %rsp,%rdi +1: SAVE_REST + movq %rsp,%rdi call syscall_trace RESTORE_TOP_OF_STACK %rbx RESTORE_REST -- 2.53.0