]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix oops in x86-64 strace path
authorAndi Kleen <ak@muc.de>
Sat, 8 Nov 2003 05:59:32 +0000 (21:59 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 8 Nov 2003 05:59:32 +0000 (21:59 -0800)
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

index fcfa1af913c721107df2c16c5fa3379a3fac3db4..cfed9f612081507010346ca2be805e07d5977cba 100644 (file)
@@ -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