Re: [PATCH] netlink: Do not subscribe to non-existent groups

From: David Miller
Date: Sun Jul 29 2018 - 15:51:11 EST


From: Dmitry Safonov <dima@xxxxxxxxxx>
Date: Fri, 27 Jul 2018 16:54:44 +0100

> Make ABI more strict about subscribing to group > ngroups.
> Code doesn't check for that and it looks bogus.
> (one can subscribe to non-existing group)
> Still, it's possible to bind() to all possible groups with (-1)
>
> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> Cc: Steffen Klassert <steffen.klassert@xxxxxxxxxxx>
> Cc: netdev@xxxxxxxxxxxxxxx
> Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>

Applied and queued up for -stable, thanks.