* [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev()
@ 2003-10-05 9:06 Jan Oravec
2003-10-07 14:41 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jan Oravec @ 2003-10-05 9:06 UTC (permalink / raw)
To: netdev, davem
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev()
2003-10-05 9:06 [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev() Jan Oravec
@ 2003-10-07 14:41 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-10-07 14:41 UTC (permalink / raw)
To: Jan Oravec; +Cc: netdev
On Sun, 5 Oct 2003 11:06:10 +0200
Jan Oravec <jan.oravec@6com.sk> wrote:
> the following patch calls ipv6_mc_down(idev) to deactivate timers. If we do
> not deactivate them, the following may happen:
Applied, thanks a lot Jan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-07 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-05 9:06 [PATCH] IPv6, mcast: deactivate timers before ipv6_mc_destroy_dev() Jan Oravec
2003-10-07 14:41 ` David S. Miller
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).