]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Jun 2017 15:05:12 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Jun 2017 15:05:12 +0000 (17:05 +0200)
added patches:
sparc64-make-string-buffers-large-enough.patch

queue-4.4/series
queue-4.4/sparc64-make-string-buffers-large-enough.patch [new file with mode: 0644]

index d2aa1331304a4d10de7798b656594721160268fc..8b1abd498bc220c0d729454a481ef6e1adb152db 100644 (file)
@@ -43,3 +43,4 @@ proc-add-a-schedule-point-in-proc_pid_readdir.patch
 tipc-ignore-requests-when-the-connection-state-is-not-connected.patch
 xtensa-don-t-use-linux-irq-0.patch
 s390-kvm-do-not-rely-on-the-ilc-on-kvm-host-protection-fauls.patch
+sparc64-make-string-buffers-large-enough.patch
diff --git a/queue-4.4/sparc64-make-string-buffers-large-enough.patch b/queue-4.4/sparc64-make-string-buffers-large-enough.patch
new file mode 100644 (file)
index 0000000..85a86dd
--- /dev/null
@@ -0,0 +1,42 @@
+From b5c3206190f1fddd100b3060eb15f0d775ffeab8 Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Fri, 25 Nov 2016 14:03:55 +0300
+Subject: sparc64: make string buffers large enough
+
+From: Dan Carpenter <dan.carpenter@oracle.com>
+
+commit b5c3206190f1fddd100b3060eb15f0d775ffeab8 upstream.
+
+My static checker complains that if "lvl" is ULONG_MAX (this is 64 bit)
+then some of the strings will overflow.  I don't know if that's possible
+but it seems simple enough to make the buffers slightly larger.
+
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Cc: Waldemar Brodkorb <wbx@openadk.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/sparc/kernel/traps_64.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/sparc/kernel/traps_64.c
++++ b/arch/sparc/kernel/traps_64.c
+@@ -85,7 +85,7 @@ static void dump_tl1_traplog(struct tl1_
+ void bad_trap(struct pt_regs *regs, long lvl)
+ {
+-      char buffer[32];
++      char buffer[36];
+       siginfo_t info;
+       if (notify_die(DIE_TRAP, "bad trap", regs,
+@@ -116,7 +116,7 @@ void bad_trap(struct pt_regs *regs, long
+ void bad_trap_tl1(struct pt_regs *regs, long lvl)
+ {
+-      char buffer[32];
++      char buffer[36];
+       
+       if (notify_die(DIE_TRAP_TL1, "bad trap tl1", regs,
+                      0, lvl, SIGTRAP) == NOTIFY_STOP)