Re: [PATCH net v8 1/2] genetlink: Reject joining multicast groups no family owns

From: Anil Kaushik

Date: Tue Nov 24 2026 - 22:21:37 EST


On Tue, Nov 24, 2026 at 03:56:34PM +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Can that window still leave a socket as a member of a group ID that no
> family owns? That is the state this patch is meant to prevent.

Yes, and the commit message says so. This window is not new: it is the
same for groups with GENL_MCAST_CAP_* today. Closing it was patch 2 of
v5, which was not accepted:
https://lore.kernel.org/netdev/20261110121831.01412fb9@xxxxxxxxxx/

So this patch only covers joining an ID before its family is
registered, which an unprivileged user can do at any time. The window
needs a family unregister during the join.

The selftest issue on patch 2 is right, I will send a v9 for it.

pw-bot: cr

Thanks,
Anil