]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2018 10:24:40 +0000 (12:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2018 10:24:40 +0000 (12:24 +0200)
added patches:
kprobes-x86-fix-p-uses-in-error-messages.patch

queue-3.18/kprobes-x86-fix-p-uses-in-error-messages.patch [new file with mode: 0644]
queue-3.18/series

diff --git a/queue-3.18/kprobes-x86-fix-p-uses-in-error-messages.patch b/queue-3.18/kprobes-x86-fix-p-uses-in-error-messages.patch
new file mode 100644 (file)
index 0000000..776a4ff
--- /dev/null
@@ -0,0 +1,60 @@
+From 0ea063306eecf300fcf06d2f5917474b580f666f Mon Sep 17 00:00:00 2001
+From: Masami Hiramatsu <mhiramat@kernel.org>
+Date: Sat, 28 Apr 2018 21:37:03 +0900
+Subject: kprobes/x86: Fix %p uses in error messages
+
+From: Masami Hiramatsu <mhiramat@kernel.org>
+
+commit 0ea063306eecf300fcf06d2f5917474b580f666f upstream.
+
+Remove all %p uses in error messages in kprobes/x86.
+
+Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
+Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
+Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
+Cc: Arnd Bergmann <arnd@arndb.de>
+Cc: David Howells <dhowells@redhat.com>
+Cc: David S . Miller <davem@davemloft.net>
+Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
+Cc: Jon Medhurst <tixy@linaro.org>
+Cc: Linus Torvalds <torvalds@linux-foundation.org>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Cc: Thomas Gleixner <tglx@linutronix.de>
+Cc: Thomas Richter <tmricht@linux.ibm.com>
+Cc: Tobin C . Harding <me@tobin.cc>
+Cc: Will Deacon <will.deacon@arm.com>
+Cc: acme@kernel.org
+Cc: akpm@linux-foundation.org
+Cc: brueckner@linux.vnet.ibm.com
+Cc: linux-arch@vger.kernel.org
+Cc: rostedt@goodmis.org
+Cc: schwidefsky@de.ibm.com
+Cc: stable@vger.kernel.org
+Link: https://lkml.kernel.org/lkml/152491902310.9916.13355297638917767319.stgit@devbox
+Signed-off-by: Ingo Molnar <mingo@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/x86/kernel/kprobes/core.c |    4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+--- a/arch/x86/kernel/kprobes/core.c
++++ b/arch/x86/kernel/kprobes/core.c
+@@ -365,7 +365,6 @@ int __copy_instruction(u8 *dest, u8 *src
+               newdisp = (u8 *) src + (s64) insn.displacement.value - (u8 *) dest;
+               if ((s64) (s32) newdisp != newdisp) {
+                       pr_err("Kprobes error: new displacement does not fit into s32 (%llx)\n", newdisp);
+-                      pr_err("\tSrc: %p, Dest: %p, old disp: %x\n", src, dest, insn.displacement.value);
+                       return 0;
+               }
+               disp = (u8 *) dest + insn_offset_displacement(&insn);
+@@ -568,8 +567,7 @@ static int reenter_kprobe(struct kprobe
+                * Raise a BUG or we'll continue in an endless reentering loop
+                * and eventually a stack overflow.
+                */
+-              printk(KERN_WARNING "Unrecoverable kprobe detected at %p.\n",
+-                     p->addr);
++              pr_err("Unrecoverable kprobe detected.\n");
+               dump_kprobe(p);
+               BUG();
+       default:
index d7304178c05c35483d9ab91c82889aa29824d69f..c9c01284993fb931a8a52442ad6c2c00596cde3b 100644 (file)
@@ -3,3 +3,4 @@ root-dentries-need-rcu-delayed-freeing.patch
 fix-mntput-mntput-race.patch
 fix-__legitimize_mnt-mntput-race.patch
 arm-dts-imx6sx-fix-irq-for-pcie-bridge.patch
+kprobes-x86-fix-p-uses-in-error-messages.patch