]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.12-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2017 06:32:10 +0000 (08:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2017 06:32:10 +0000 (08:32 +0200)
added patches:
ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch

queue-4.12/ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch [new file with mode: 0644]
queue-4.12/series

diff --git a/queue-4.12/ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch b/queue-4.12/ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch
new file mode 100644 (file)
index 0000000..030f485
--- /dev/null
@@ -0,0 +1,33 @@
+From 3614364527daa870264f6dde77f02853cdecd02c Mon Sep 17 00:00:00 2001
+From: Steffen Klassert <steffen.klassert@secunet.com>
+Date: Fri, 25 Aug 2017 09:05:42 +0200
+Subject: ipv6: Fix may be used uninitialized warning in rt6_check
+
+From: Steffen Klassert <steffen.klassert@secunet.com>
+
+commit 3614364527daa870264f6dde77f02853cdecd02c upstream.
+
+rt_cookie might be used uninitialized, fix this by
+initializing it.
+
+Fixes: c5cff8561d2d ("ipv6: add rcu grace period before freeing fib6_node")
+Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Cc: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/ipv6/route.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/net/ipv6/route.c
++++ b/net/ipv6/route.c
+@@ -1290,7 +1290,7 @@ static void rt6_dst_from_metrics_check(s
+ static struct dst_entry *rt6_check(struct rt6_info *rt, u32 cookie)
+ {
+-      u32 rt_cookie;
++      u32 rt_cookie = 0;
+       if (!rt6_get_cookie_safe(rt, &rt_cookie) || rt_cookie != cookie)
+               return NULL;
index edecb2ba0ac863146017f74d8873fcd494b0af26..7923c5031ea6237c2cdf9494219e1fb762c0f65f 100644 (file)
@@ -50,3 +50,4 @@ fuse-allow-server-to-run-in-different-pid_ns.patch
 idr-remove-warn_on_once-when-trying-to-replace-negative-id.patch
 md-raid1-10-reset-bio-allocated-from-mempool.patch
 md-raid5-release-flush-io-in-raid5_do_work.patch
+ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch