Re: [PATCH net] igmp: use the joined device when leaving a multicast group

From: patchwork-bot+netdevbpf

Date: Thu Nov 12 2026 - 09:51:42 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Mon, 9 Nov 2026 21:53:11 +0900 you wrote:
> ip_mc_leave_group() resolves in_dev from the leave request before
> matching the request against the socket's multicast membership list.
> This lookup can return NULL even while the interface recorded in the
> matched membership (iml->multi.imr_ifindex) is still alive:
>
> 1. An application joins a group using a local IPv4 address, that
> secondary address is later removed while the interface stays up,
> and the application leaves using the same 8-byte ip_mreq.
> 2. An unprivileged user joins a group with a 12-byte ip_mreqn
> specifying a valid imr_ifindex and a nonlocal imr_address, then
> leaves with an 8-byte ip_mreq containing that nonlocal address
> and no ifindex.
>
> [...]

Here is the summary with links:
- [net] igmp: use the joined device when leaving a multicast group
https://git.kernel.org/netdev/net/c/19ec8416a76c

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html