diff options
author | Sergey Matyukevich <sergey.matyukevich@synopsys.com> | 2022-04-14 11:17:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-27 13:53:55 +0200 |
commit | 5580b974a84b30f6da90a3a562ea0dbfb0038110 (patch) | |
tree | fd195b0a1e1e6713f619c571546ee9501fd656b1 | |
parent | 7082650eb8265b583d0aea0515bcc6f65b0e8755 (diff) | |
download | linux-stable-5580b974a84b30f6da90a3a562ea0dbfb0038110.tar.gz linux-stable-5580b974a84b30f6da90a3a562ea0dbfb0038110.tar.bz2 linux-stable-5580b974a84b30f6da90a3a562ea0dbfb0038110.zip |
ARC: entry: fix syscall_trace_exit argument
commit b1c6ecfdd06907554518ec384ce8e99889d15193 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>
-rw-r--r-- | arch/arc/kernel/entry.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index ae656bfc31c3..301ade4d0b94 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kernel/entry.S @@ -199,6 +199,7 @@ tracesys_exit: st r0, [sp, PT_r0] ; sys call return value in pt_regs ;POST Sys Call Ptrace Hook + mov r0, sp ; pt_regs needed bl @syscall_trace_exit b ret_from_exception ; NOT ret_from_system_call at is saves r0 which ; we'd done before calling post hook above |