Bug 198353 - Generic netlink family bug when multicast groups are greater than 13
Summary: Generic netlink family bug when multicast groups are greater than 13
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-05 00:21 UTC by jaipal.katkuri
Modified: 2018-01-05 00:21 UTC (History)
0 users

See Also:
Kernel Version: 4.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
linux-4.4-netlink-genlmcgroup.patch (742 bytes, patch)
2018-01-05 00:21 UTC, jaipal.katkuri
Details | Diff

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.

Note You need to log in before you can comment on or make changes to this bug.