mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
ARC: entry: fix syscall_trace_exit argument
commit b1c6ecfdd0
upstream.
Function syscall_trace_exit expects pointer to pt_regs. However
r0 is also used to keep syscall return value. Restore pointer
to pt_regs before calling syscall_trace_exit.
Cc: <stable@vger.kernel.org>
Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7b69c07beb
commit
4d98fbb266
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ tracesys_exit:
|
||||||
st r0, [sp, PT_r0] ; sys call return value in pt_regs
|
st r0, [sp, PT_r0] ; sys call return value in pt_regs
|
||||||
|
|
||||||
;POST Sys Call Ptrace Hook
|
;POST Sys Call Ptrace Hook
|
||||||
|
mov r0, sp ; pt_regs needed
|
||||||
bl @syscall_trace_exit
|
bl @syscall_trace_exit
|
||||||
b ret_from_exception ; NOT ret_from_system_call at is saves r0 which
|
b ret_from_exception ; NOT ret_from_system_call at is saves r0 which
|
||||||
; we'd done before calling post hook above
|
; we'd done before calling post hook above
|
||||||
|
|
Loading…
Reference in a new issue