From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Fw: [Bug 198353] New: Generic netlink family bug when multicast groups are greater than 13 Date: Thu, 4 Jan 2018 16:30:45 -0800 Message-ID: <20180104163045.2dfee077@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Return-path: Received: from mail-pl0-f54.google.com ([209.85.160.54]:43796 "EHLO mail-pl0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbeAEAas (ORCPT ); Thu, 4 Jan 2018 19:30:48 -0500 Received: by mail-pl0-f54.google.com with SMTP id z5so2052877plo.10 for ; Thu, 04 Jan 2018 16:30:48 -0800 (PST) Received: from xeon-e3 (204-195-18-133.wavecable.com. [204.195.18.133]) by smtp.gmail.com with ESMTPSA id b63sm7899492pga.24.2018.01.04.16.30.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jan 2018 16:30:47 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Begin forwarded message: Date: Fri, 05 Jan 2018 00:21:42 +0000 From: bugzilla-daemon@bugzilla.kernel.org To: stephen@networkplumber.org 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: stephen@networkplumber.org Reporter: jaipal.katkuri@itron.com 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. -- You are receiving this mail because: You are the assignee for the bug.