Commit ae40e4b5 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[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.
parent 954caecd
...@@ -219,8 +219,8 @@ tracesys: ...@@ -219,8 +219,8 @@ tracesys:
movq %r10,%rcx /* fixup for C */ movq %r10,%rcx /* fixup for C */
call *sys_call_table(,%rax,8) call *sys_call_table(,%rax,8)
movq %rax,RAX-ARGOFFSET(%rsp) movq %rax,RAX-ARGOFFSET(%rsp)
SAVE_REST 1: SAVE_REST
1: movq %rsp,%rdi movq %rsp,%rdi
call syscall_trace call syscall_trace
RESTORE_TOP_OF_STACK %rbx RESTORE_TOP_OF_STACK %rbx
RESTORE_REST RESTORE_REST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment