* Patch "ipv6: Fix may be used uninitialized warning in rt6_check" has been added to the 4.9-stable tree
@ 2017-09-18 14:23 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-09-18 14:23 UTC (permalink / raw)
To: steffen.klassert, arnd, davem, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
ipv6: Fix may be used uninitialized warning in rt6_check
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>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
@@ -1267,7 +1267,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;
Patches currently in stable-queue which might be from steffen.klassert@secunet.com are
queue-4.9/ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-18 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 14:23 Patch "ipv6: Fix may be used uninitialized warning in rt6_check" has been added to the 4.9-stable tree gregkh
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).