summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/ptrace.c
diff options
context:
space:
mode:
authorLars Persson <lars.persson@axis.com>2015-02-03 17:08:17 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-02-04 16:40:09 +0100
commitc2d9f17757310484ab4fd65954f5f9850f6a1349 (patch)
tree93df833f0fdbddb083326d14eff6585d086e3186 /arch/mips/kernel/ptrace.c
parentMIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers. (diff)
downloadlinux-c2d9f17757310484ab4fd65954f5f9850f6a1349.tar.xz
linux-c2d9f17757310484ab4fd65954f5f9850f6a1349.zip
MIPS: Fix syscall_get_nr for the syscall exit tracing.
Register 2 is alredy overwritten by the return value when syscall_trace_leave() is called. Signed-off-by: Lars Persson <larper@axis.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9187/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
-rw-r--r--arch/mips/kernel/ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 9d1487d83293..510452812594 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -770,6 +770,8 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
long ret = 0;
user_exit();
+ current_thread_info()->syscall = syscall;
+
if (secure_computing() == -1)
return -1;