Skip to contentSkip to conversation

New: Generic netlink family bug when multicast groups are greater than 13

Bug 198353 Stephen Hemminger 1 participant 1 message Jan 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Fri, 05 Jan 2018 00:21:42 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 198353] New: Generic netlink family bug when multicast groups are greater than 13

https://bugzilla.kernel.org/show_bug.cgi?id=198353

Bug ID: 198353
Summary: Generic netlink family bug when multicast groups are
greater than 13
Product: Networking
Version: 2.5
Kernel Version: 4.4
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: blocking
Priority: P1
Component: Other
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 273405
--> https://bugzilla.kernel.org/attachment.cgi?id=273405&action=edit
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.