stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree
@ 2017-07-25  4:03 gregkh
  2017-07-25  4:10 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2017-07-25  4:03 UTC (permalink / raw)
  To: macro, james.hogan, ralf; +Cc: stable


The patch below does not apply to the 3.18-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

>From 1f4edde422961397cf4470b347958c13c6a740bb Mon Sep 17 00:00:00 2001
From: "Maciej W. Rozycki" <macro@imgtec.com>
Date: Fri, 16 Jun 2017 00:09:23 +0100
Subject: [PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in
 `__compute_return_epc_for_insn'

Use the more accurate `sigill_r2r6' name for the label used in the case
of sending SIGILL in the absence of the instruction emulator for an
earlier ISA level instruction that has been removed as from the R6 ISA,
so that the `sigill_r6' name is freed for the situation where an R6
instruction is not supposed to be interpreted, because the executing
processor does not support the R6 ISA.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org # 3.19+
Patchwork: https://patchwork.linux-mips.org/patch/16397/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

diff --git a/arch/mips/kernel/branch.c b/arch/mips/kernel/branch.c
index 81b5608acd5c..df5c32b38408 100644
--- a/arch/mips/kernel/branch.c
+++ b/arch/mips/kernel/branch.c
@@ -431,7 +431,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 			/* Fall through */
 		case jr_op:
 			if (NO_R6EMU && insn.r_format.func == jr_op)
-				goto sigill_r6;
+				goto sigill_r2r6;
 			regs->cp0_epc = regs->regs[insn.r_format.rs];
 			break;
 		}
@@ -446,7 +446,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 		switch (insn.i_format.rt) {
 		case bltzl_op:
 			if (NO_R6EMU)
-				goto sigill_r6;
+				goto sigill_r2r6;
 		case bltz_op:
 			if ((long)regs->regs[insn.i_format.rs] < 0) {
 				epc = epc + 4 + (insn.i_format.simmediate << 2);
@@ -459,7 +459,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 
 		case bgezl_op:
 			if (NO_R6EMU)
-				goto sigill_r6;
+				goto sigill_r2r6;
 		case bgez_op:
 			if ((long)regs->regs[insn.i_format.rs] >= 0) {
 				epc = epc + 4 + (insn.i_format.simmediate << 2);
@@ -574,7 +574,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 	 */
 	case beql_op:
 		if (NO_R6EMU)
-			goto sigill_r6;
+			goto sigill_r2r6;
 	case beq_op:
 		if (regs->regs[insn.i_format.rs] ==
 		    regs->regs[insn.i_format.rt]) {
@@ -588,7 +588,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 
 	case bnel_op:
 		if (NO_R6EMU)
-			goto sigill_r6;
+			goto sigill_r2r6;
 	case bne_op:
 		if (regs->regs[insn.i_format.rs] !=
 		    regs->regs[insn.i_format.rt]) {
@@ -602,7 +602,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 
 	case blezl_op: /* not really i_format */
 		if (!insn.i_format.rt && NO_R6EMU)
-			goto sigill_r6;
+			goto sigill_r2r6;
 	case blez_op:
 		/*
 		 * Compact branches for R6 for the
@@ -637,7 +637,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 
 	case bgtzl_op:
 		if (!insn.i_format.rt && NO_R6EMU)
-			goto sigill_r6;
+			goto sigill_r2r6;
 	case bgtz_op:
 		/*
 		 * Compact branches for R6 for the
@@ -836,7 +836,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
 		current->comm);
 	force_sig(SIGILL, current);
 	return -EFAULT;
-sigill_r6:
+sigill_r2r6:
 	pr_info("%s: R2 branch but r2-to-r6 emulator is not preset - sending SIGILL.\n",
 		current->comm);
 	force_sig(SIGILL, current);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree
  2017-07-25  4:03 FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree gregkh
@ 2017-07-25  4:10 ` Greg KH
  2017-07-25 10:31   ` Maciej W. Rozycki
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2017-07-25  4:10 UTC (permalink / raw)
  To: macro, james.hogan, ralf; +Cc: stable

On Mon, Jul 24, 2017 at 09:03:23PM -0700, gregkh@linuxfoundation.org wrote:
> 
> The patch below does not apply to the 3.18-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.

Sorry, no, this doesn't belong in 3.18, as you said in the patch itself,
sorry for the noise.

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree
  2017-07-25  4:10 ` Greg KH
@ 2017-07-25 10:31   ` Maciej W. Rozycki
  2017-07-25 14:05     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Maciej W. Rozycki @ 2017-07-25 10:31 UTC (permalink / raw)
  To: Greg KH; +Cc: James Hogan, Ralf Baechle, stable

Hi Greg,

> > The patch below does not apply to the 3.18-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> 
> Sorry, no, this doesn't belong in 3.18, as you said in the patch itself,
> sorry for the noise.

 One of the rejected patches does belong though, so how do I mark the 
backport up correctly for you with the original commit ID and any other 
information necessary for seamless processing?

  Maciej

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree
  2017-07-25 10:31   ` Maciej W. Rozycki
@ 2017-07-25 14:05     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2017-07-25 14:05 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: James Hogan, Ralf Baechle, stable

On Tue, Jul 25, 2017 at 11:31:31AM +0100, Maciej W. Rozycki wrote:
> Hi Greg,
> 
> > > The patch below does not apply to the 3.18-stable tree.
> > > If someone wants it applied there, or to any other stable or longterm
> > > tree, then please email the backport, including the original git commit
> > > id to <stable@vger.kernel.org>.
> > 
> > Sorry, no, this doesn't belong in 3.18, as you said in the patch itself,
> > sorry for the noise.
> 
>  One of the rejected patches does belong though, so how do I mark the 
> backport up correctly for you with the original commit ID and any other 
> information necessary for seamless processing?

Just send it and say "this is commit id XXXX and needs to go to tree
X.XX please" or something like that. The mailing list has tons of
examples of this happening every day.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-25 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-25  4:03 FAILED: patch "[PATCH] MIPS: Rename `sigill_r6' to `sigill_r2r6' in" failed to apply to 3.18-stable tree gregkh
2017-07-25  4:10 ` Greg KH
2017-07-25 10:31   ` Maciej W. Rozycki
2017-07-25 14:05     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).