All of lore.kernel.org
 help / color / mirror / Atom feed
* + ipv6-anycast-refcnt-fix.patch added to -mm tree
@ 2007-02-27 20:48 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-27 20:48 UTC (permalink / raw)
  To: mm-commits; +Cc: xmxwx


The patch titled
     IPv6 anycast refcnt fix
has been added to the -mm tree.  Its filename is
     ipv6-anycast-refcnt-fix.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: IPv6 anycast refcnt fix
From: Michal Wrobel <xmxwx@asn.pl>

Fix 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.

Signed-off-by: Michal Wrobel <xmxwx@asn.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 net/ipv6/addrconf.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN net/ipv6/addrconf.c~ipv6-anycast-refcnt-fix net/ipv6/addrconf.c
--- a/net/ipv6/addrconf.c~ipv6-anycast-refcnt-fix
+++ a/net/ipv6/addrconf.c
@@ -468,6 +468,8 @@ static void dev_forward_change(struct in
 			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
_

Patches currently in -mm which might be from xmxwx@asn.pl are

ipv6-anycast-refcnt-fix.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-27 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 20:48 + ipv6-anycast-refcnt-fix.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.