Re: [PATCH] net: ipv6: ensure we call ipv6_mc_down() at most once
From: patchwork-bot+netdevbpf
Date: Mon Feb 28 2022 - 06:14:30 EST
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:
On Thu, 24 Feb 2022 10:06:49 +0100 you wrote:
> There are two reasons for addrconf_notify() to be called with NETDEV_DOWN:
> either the network device is actually going down, or IPv6 was disabled
> on the interface.
>
> If either of them stays down while the other is toggled, we repeatedly
> call the code for NETDEV_DOWN, including ipv6_mc_down(), while never
> calling the corresponding ipv6_mc_up() in between. This will cause a
> new entry in idev->mc_tomb to be allocated for each multicast group
> the interface is subscribed to, which in turn leaks one struct ifmcaddr6
> per nontrivial multicast group the interface is subscribed to.
>
> [...]
Here is the summary with links:
- net: ipv6: ensure we call ipv6_mc_down() at most once
https://git.kernel.org/netdev/net/c/9995b408f17f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html