Bug 198353

Summary: Generic netlink family bug when multicast groups are greater than 13
Product: Networking Reporter: jaipal.katkuri
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: blocking    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.4 Subsystem:
Regression: No Bisected commit-id:
Attachments: linux-4.4-netlink-genlmcgroup.patch

Description jaipal.katkuri 2018-01-05 00:21:42 UTC
Created attachment 273405 [details]
linux-4.4-netlink-genlmcgroup.patch

Kernel Version: 4.4
File: netlink/genetlink.c

While reserving multicast groups for a netlink family in the kernel, if the request has more than 13 groups the code allocates only 13 groups and returns success.

In the function "genl_allocate_reserve_groups" the variable "id" is returned with the first available multicast group slot but it doesn't check if the request "n_groups" is more than 13.

Attached patch fixes the problem.