Received: from mailapp01.imgtec.com ([195.59.15.196]:28141 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27013304AbbBLNpPFa9gg (ORCPT ); Thu, 12 Feb 2015 14:45:15 +0100 Message-ID: <54DCAE64.5050901@imgtec.com> Date: Thu, 12 Feb 2015 13:45:08 +0000 From: Markos Chandras MIME-Version: 1.0 Subject: Re: [PATCH] MIPS: Fix syscall_trace_enter compilation error References: <20150206004026-tung7970@googlemail.com> In-Reply-To: <20150206004026-tung7970@googlemail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Tony Wu , ralf@linux-mips.org Cc: Lars Persson , linux-mips@linux-mips.org Message-ID: <20150212134508.irtKOQirgZ4YArRGEY7PUTGYtRzYfCZ1zGFsdFCwqJk@z> On 02/05/2015 04:43 PM, Tony Wu wrote: > 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 > Cc: Ralf Baechle > Cc: Lars Persson > 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]); > Hi, Commit cf6ce084 (MIPS: Fix syscall_get_nr for the syscall exit..) is not in the stable branches. How did it brake the 3.13 and 3.14 build? -- markos