91874ecf32
It's legal to have 64 groups for netlink_sock.
As user-supplied nladdr->nl_groups is __u32, it's possible to subscribe
only to first 32 groups.
The check for correctness of .bind() userspace supplied parameter
is done by applying mask made from ngroups shift. Which broke Android
as they have 64 groups and the shift for mask resulted in an overflow.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
af_netlink.c | ||
af_netlink.h | ||
diag.c | ||
genetlink.c |