Skip to contentSkip to conversation

IPv6 anycast refcnt fix

PATCH In review Michal Wrobel 2 participants 2 messages Feb 25, 2007 – Feb 26, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IPv6 anycast refcnt fix

This patch fixes a bug in Linux IPv6 stack which caused anycast address to be added to a device prior DAD has been completed. This led to incorrect reference count which resulted in infinite wait for unregister_netdevice completion on interface removal.

net/ipv6/addrconf.c +2 -0
@@ -456,6 +456,8 @@
 			ipv6_dev_mc_dec(dev, &addr);
 	}
 	for (ifa=idev->addr_list; ifa; ifa=ifa->if_next) {
+		if (ifa->flags&IFA_F_TENTATIVE)
+			continue;
 		if (idev->cnf.forwarding)
 			addrconf_join_anycast(ifa);
 		else
maintainer
#1 lore raw

From: Michal Wrobel <[email protected]>
Date: Sun, 25 Feb 2007 13:04:21 +0100

Quoted 6 lines

This patch fixes a bug in Linux IPv6 stack which caused anycast address to be added to a device prior DAD has been completed. This led to incorrect reference count which resulted in infinite wait for unregister_netdevice completion on interface removal.

Patch applied, thank you.