All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wrobel <xmxwx@asn.pl>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] IPv6 anycast refcnt fix
Date: Sun, 25 Feb 2007 01:13:59 +0100	[thread overview]
Message-ID: <erqkc9$9sb$1@sea.gmane.org> (raw)

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.

Signed-off-by: Michal Wrobel <xmxwx@asn.pl>

--- linux/net/ipv6/addrconf.c	2007-02-22 19:46:27.000000000 +0100
+++ linux/net/ipv6/addrconf.c	2007-02-25 00:22:37.000000000 +0100
@@ -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


             reply	other threads:[~2007-02-25  0:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-25  0:13 Michal Wrobel [this message]
2007-02-25  0:57 ` [PATCH] IPv6 anycast refcnt fix David Miller
  -- strict thread matches above, loose matches on Subject: below --
2007-02-25 12:04 Michal Wrobel
2007-02-26 23:36 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='erqkc9$9sb$1@sea.gmane.org' \
    --to=xmxwx@asn.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.