🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7368

Re: [PATCH net v4] netlink: fix out-of-bounds bitmap access clearing stale mc groups

#7368
From: patchwork-bot+netdevbpf
Date: Mon, 26 Oct 2026 08:20
28 lines
9009 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:

On Mon, 26 Oct 2026 11:09:28 +0800 you wrote:
> netlink_realloc_groups() sizes nlk->groups to the number of groups
> that exist at bind/ADD_MEMBERSHIP time.  When more multicast groups
> are registered later (e.g. a new genl family), existing sockets keep
> their smaller bitmap.
> 
> When clearing a multicast group of a departing family,
> __netlink_clear_multicast_users() runs netlink_update_socket_mc() on
> each socket on mc_list, which does test_bit()/__assign_bit() on
> group - 1 with no regard to nlk->ngroups.  Skip sockets whose bitmap
> predates the group: such a socket can never have joined it.
> 
> [...]

Here is the summary with links:
  - [net,v4] netlink: fix out-of-bounds bitmap access clearing stale mc groups
    https://git.kernel.org/netdev/net/c/6430fb7f1cc4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179300280507.2542292.1871399042278528060.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351743-linux-kernel-netdev=dewy.ru
References: <20261026030928.719276-1-bsdhenrymartin@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351743-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4] netlink: fix out-of-bounds bitmap access clearing
 stale mc groups
Date: Mon, 26 Oct 2026 08:20:05 +0000
Organization: Usenet Network
Message-ID: <179300280507.2542292.1871399042278528060.git-patchwork-notify@kernel.org>
References: <20261026030928.719276-1-bsdhenrymartin@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1259213"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:c5Uq3Lo+0Bh7blmraX2vpP2gbuo= sha256:6gC0bboQwHItnaaDRuMd9YUAqFoyh7zHf9kaIuMyn6A=
	sha1:hafTqXowvas6gTWmZTs80+blHg8= sha256:xoIEa0Bot0jBTzYPvbcmr2wpCuH/v8+T7LIYzk2QqXA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 90090125B8E; Mon, 26 Oct 2026 11:21:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g-0Bl4v6NuNK;
	Mon, 26 Oct 2026 11:21:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351743-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EC4DF125B8C; Mon, 26 Oct 2026 11:21:18 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id F1B213CC44; Mon, 26 Oct 2026 08:20:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793002812;
	b=ogsm0nK0fdhy1L3sVZxdMZ5jvXl8ylqF2DERoXNPgdbfxteqarClFwxE21s4vnhCOJcH
	 gVb2I6qxfkvTzivIS8ByKeJvumzOlL8QQz4OWPiiDb4igq0XfL7EUOD2LcbPPjDDp7ByJ
	 02MzB/tKVE0hem1sJLO8BAzEZgp8WGql3QQnDxC5+AF10kB+vZu6pMr36qYorAUp9O1Mp
	 /Xway+CMGNyG9tMAPSGXu+xsGtUHmnOzzEtrrbbykzq87t4ZUPv37sz8x/kqeMple7Xnk
	 L7sMYn5JBm8511rFUq5Coo7Dy+S6QPRXqBlV+u+P1NOUvJPRBIOVi68moV9KVld0Z6g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793002812;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=MhvlEhTDyF7JYLAlw6P/1Iqydl9GWjW4Dy2s0ZwEJk8=;
	b=gkQdQw2KmDSYyO53JZmic43vqpQ8h2jSnl5W6HjSJ8PQmeqNHLuvFEQkn1w8Cmp0pUmG
	 nr0YWWnWZVDt9T8dqf7ppEulbiwGmpYhAiD2dE/jye7WpJWltV/fLFFTw06U3IavPV8wu
	 pj5Hb6kjJUF+cv09DJFQnuMF22YJ27cLbHQGb0o48hWY/pH7NWZJal8pMXJGghky65Vm/
	 IRWKL2DyX2jTbMf0SsrgMdYAfPLEBOBQDfYW03DuaNG78XHsYivcId0ujfgOoBT+0VPy4
	 rouOlqlwgK757InGdH152Sv6MK34PDZw5IE54zAZxAPK68rF8VQeR0BnJucrVEbX5IA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kgWjdxjt;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C91CE606A323;
	Mon, 26 Oct 2026 08:20:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kgWjdxjt
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793002807;
	b=iqinAboBhvKHJWoPrJWCYhfeayu6SYqu19sQyXY5BogVAPGLj2u4bwGmpQF8Z0PkiDDc
	 tojVdzaQ5Flmnu1pfbQT1/orefHjeHr6ZzaDlSdIWjjWCq27Kd0nInHbWMRl31aUvPvu/
	 D6kDXzl3a8Oq9fusCTPLm/jjmHYcw8ihTFJ9yNyuN8QDZzTP0b2bz+VVYaH4xwDlLrL8a
	 L+INwRlxYFvMV8OoEg90NAdlQUoT5PR45luC+EaugnNcac9NTxmyGDrs5EHiz5I8X9PcO
	 QjVwaFULX/D342LlNSszqsqsOV3dh9M9kErZuZCKfwdkLMdrHIqR88Yo1Dr4sQ/JFCg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793002807;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=MhvlEhTDyF7JYLAlw6P/1Iqydl9GWjW4Dy2s0ZwEJk8=;
	b=5qaby54J7aEya5eHm0i6bJlZqGdFF1F65QFRqu/yd4miKD8lVb7GhJxGrEgw114B51YX
	 AARe72Lvq2MJOHia1SHd1/WCxt7ohYFPJZmrYNrKb/R/UGTbXyI2Y87gtQkmvgUvmhxhO
	 hCJ7p1ET7W4jhwEIZwdXzIa9y1aZHgpGt1I3Qwe0qVaB+WgQ+nZ7PNob9fWsQbIRLnMe7
	 szfIT0LXhoXPAPyLm/xmQmtYw+GdwatnDLTiYxwQxT7gQU6zfiCeURoyIi+FEevIHRLsk
	 XxTCZOOh8lvvznNWQL7id8bwjnQWnPWyLccZ/xo277hwMsxNtz79QM8CLZPEHol5B0Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kgWjdxjt;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACD5F606A31B;
	Mon, 26 Oct 2026 08:20:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F6391F01825;
	Mon, 26 Oct 2026 08:20:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793002806;
	bh=MhvlEhTDyF7JYLAlw6P/1Iqydl9GWjW4Dy2s0ZwEJk8=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=kgWjdxjtIYYAuRgwPz4YKtpdIlx3HD911IUelfp84DO4vRuB9zz2OTLe45q/ntuVo
	 J2DPrSnfhGo6qFNqE71TSWgdR4PMPbJYEch85sQ1+fbuSUhT1BTykScKmTEjl/234s
	 8Gf5w7CdLTwxSRtzri9GHICbXfqqJaAdM1dlRigUNRjJlbwus1VPs19VSbQsRxQSSz
	 9oer54ws0BOAKhAIrFsdQAnHrzYCPnJbRQzGgMgS3bP9eJZssULhz79u+VWqh5ei9g
	 sCTE7LSBDr419PJq1KOGvlcpbheoGgkYdzvDU6afsgeVgOcedW/ojbOuZtmau8N9Dj
	 DFNOMK9UdqwdQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 444E639F2019;
	Mon, 26 Oct 2026 08:20:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261026030928.719276-1-bsdhenrymartin@gmail.com>
X-Cc: edumazet@kernel.org, davem@davemloft.net, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, nicolas.dichtel@6wind.com,
 kees@kernel.org, i.maximets@ovn.org, leitao@debian.org, jlayton@kernel.org,
 kexinsun@smail.nju.edu.cn, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org