From: Tony Wu <tung7970@gmail.com>
To: ralf@linux-mips.org
Cc: Lars Persson <larper@axis.com>, linux-mips@linux-mips.org
Subject: [PATCH] MIPS: Fix syscall_trace_enter compilation error
Date: Fri, 6 Feb 2015 00:43:08 +0800 [thread overview]
Message-ID: <20150206004026-tung7970@googlemail.com> (raw)
Commit cf6ce084 (MIPS: Fix syscall_get_nr for the syscall exit
tracing.) broke 3.13 and 3.14 stable tree due to the missing syscall
argument. So, get the syscall from regs[2] before it's trashed.
This patch should go to the 3.13 and 3.14 stable tree.
Signed-off-by: Tony Wu <tung7970@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Lars Persson <larper@axis.com>
Cc: linux-mips@linux-mips.org
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 64e18f9..01f1413 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -799,7 +799,7 @@ asmlinkage void syscall_trace_enter(struct pt_regs *regs)
long ret = 0;
user_exit();
- current_thread_info()->syscall = syscall;
+ current_thread_info()->syscall = regs->regs[2];
/* do the secure computing check first */
secure_computing_strict(regs->regs[2]);
next reply other threads:[~2015-02-05 16:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 16:43 Tony Wu [this message]
2015-02-12 13:45 ` [PATCH] MIPS: Fix syscall_trace_enter compilation error Markos Chandras
2015-02-12 13:45 ` Markos Chandras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150206004026-tung7970@googlemail.com \
--to=tung7970@gmail.com \
--cc=larper@axis.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox