Skip to contentSkip to conversation

Patch "ipv6: Fix may be used uninitialized warning in rt6_check" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Sep 18, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

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 <[email protected]> know about it.

Quoted 1 line

From 3614364527daa870264f6dde77f02853cdecd02c Mon Sep 17 00:00:00 2001

From: Steffen Klassert <[email protected]>
Date: Fri, 25 Aug 2017 09:05:42 +0200
Subject: ipv6: Fix may be used uninitialized warning in rt6_check

From: Steffen Klassert <[email protected]>

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")
Cc Arnd Bergmann <[email protected]>
---
 net/ipv6/route.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/route.c +1 -1
@@ -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 [email protected] are

queue-4.9/ipv6-fix-may-be-used-uninitialized-warning-in-rt6_check.patch