From: Jan Oravec <jan.oravec@6com.sk>
To: netdev@oss.sgi.com, davem@redhat.com
Subject: [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev()
Date: Sun, 5 Oct 2003 11:06:10 +0200 [thread overview]
Message-ID: <20031005090610.GA23600@wsx.ksp.sk> (raw)
Hello,
the following patch calls ipv6_mc_down(idev) to deactivate timers. If we do
not deactivate them, the following may happen:
1) remove last IPv6 address from the interface
- mld_ifc_timer may be active, thus referencing idev
- addrconf_ifdown() is called (which calls ipv6_mc_destroy_dev()),
removing all references to idev except the timer reference
- timer expires, mld_ifc_timer_expire() is called, reference to idev is
removed, but not tested (__in6_dev_put())
- idev is not removed and it is referencing dev
2) destroy interface
- idev's reference to dev never disappears
--- linux/net/ipv6/mcast.c.orig 2003-09-28 02:50:53.000000000 +0200
+++ linux/net/ipv6/mcast.c 2003-10-05 10:42:57.535993672 +0200
@@ -2029,6 +2029,9 @@
struct ifmcaddr6 *i;
struct in6_addr maddr;
+ /* Deactivate timers */
+ ipv6_mc_down(idev);
+
/* Delete all-nodes address. */
ipv6_addr_all_nodes(&maddr);
Best Regards,
--
Jan Oravec
6COM s.r.o.
http://www.6com.sk
next reply other threads:[~2003-10-05 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-05 9:06 Jan Oravec [this message]
2003-10-07 14:41 ` [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev() David S. 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=20031005090610.GA23600@wsx.ksp.sk \
--to=jan.oravec@6com.sk \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/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 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).