🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4052

Re: [PATCH net 0/2] bridge: mcast: Fix MDB exhaustion by rejected entries

#4052
From: Gabriel Goller
Date: Fri, 16 Oct 2026 15:51
31 lines
6026 bytes
On 16.10.2026 13:14, Ido Schimmel wrote:
> When the bridge fails to create a port group for a new MDB entry, the
> entry is left behind with no ports and is never deleted, but it is still
> counted towards mcast_hash_max. Since the introduction of
> mcast_max_groups, a host behind a port that reached its maximum can use
> this to exhaust the MDB and disable multicast snooping.
> 
> Patch #1 fixes the problem by deleting the entry upon failure.
> 
> Patch #2 adds a selftest.
> 
> Ido Schimmel (2):
>   bridge: mcast: Delete empty MDB entry when port group creation fails
>   selftests: forwarding: bridge_mdb_max: Add a test for rejected MDB
>     entries
> 
>  net/bridge/br_mdb.c                           |  16 +-
>  net/bridge/br_multicast.c                     |   9 ++
>  net/bridge/br_private.h                       |   1 +
>  .../net/forwarding/bridge_mdb_max.sh          | 138 ++++++++++++++++++
>  4 files changed, 161 insertions(+), 3 deletions(-)
> 
> -- 
> 2.56.0

Thanks,
Consider:

Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Technical Details
Message-ID: <atJH5h69c6jAuXg5@luna.proxmox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347442-linux-kernel-netdev=dewy.ru
References: <20261016101407.2030133-1-idosch@nvidia.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-347442-linux-kernel-netdev=dewy.ru
From: g.goller@proxmox.com (Gabriel Goller)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 0/2] bridge: mcast: Fix MDB exhaustion by rejected
 entries
Date: Fri, 16 Oct 2026 17:51:38 +0200
Organization: Usenet Network
Message-ID: <atJH5h69c6jAuXg5@luna.proxmox.com>
References: <20261016101407.2030133-1-idosch@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="2809386"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QCP5EjJFfNBYgOT0fELAk2GVPR8= sha256:2/cfO6g9uTB9pfmSNjr2HBdZhO+hEftjEtCuTur8t3E=
	sha1:gE94ub7cIf2J4zSETT/D6I+ndEU= sha256:FFg4c70Es1m6TZqbZ/cycM8DDc13HgwqbrqRkhVuHrE=
Content-Disposition: inline
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 336D111057C; Fri, 16 Oct 2026 19:05:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.95
X-Spam-Status: No, score=-2.95 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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-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 OiRvlyIBiOsH;
	Fri, 16 Oct 2026 19:05:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347442-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=proxmox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id B57D511057A; Fri, 16 Oct 2026 19:05:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 32ADB63C21; Fri, 16 Oct 2026 15:51:51 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F006B3EDE7A;
	Fri, 16 Oct 2026 15:51:50 +0000 (UTC)
X-Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C1EA3BC687
	for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 15:51:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.136.29.106
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792165910; cv=none; b=ABNSzqRA/bZMGZgPEGzg3FuCaGshxwznaZ/W8eLqNhp65YQSgn3G+YeIXeoxnoZzuueu0mb600n9rgYT4LonvqHUgYvHC58K64jheL+cBx/gOzUS4UbiRmLurzswux1U+6BUlBhWLrx6NqD876z332Q8qYqLC5yXRAA4UflHsPY=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792165910; c=relaxed/simple;
	bh=dEV7hzEa6Vta9NCBnSztXL8acglcKteH4D2HOXHWrro=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=g1YK0OiVKPwju9SU+Y2hrvrd+bCc0Qf7Fe55fMAypisZidktRFWq/Vet5+6sHpkqKCfz6mYdzao5RqyZi3fY0ErdyhEDGYv8pDTCVti9uM1Z7GnGMpQUCy6rNzJktCe7f/tuLaiYiVGguym3iKBhmbDY1rzxy34rLk730lpyti0=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=proxmox.com; spf=pass smtp.mailfrom=proxmox.com; arc=none smtp.client-ip=94.136.29.106
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=proxmox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proxmox.com
X-Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
	by proxmox-new.maurer-it.com (Proxmox) with ESMTP id B02DE489FA;
	Fri, 16 Oct 2026 17:51:39 +0200 (CEST)
X-Cc: netdev@vger.kernel.org, bridge@lists.linux.dev, davem@davemloft.net, 
	kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, razor@blackwall.org, 
	horms@kernel.org, petrm@nvidia.com, yunlong_ma@buaa.edu.cn
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261016101407.2030133-1-idosch@nvidia.com>
X-User-Agent: NeoMutt/20260504
X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2
X-Bm-Transport-Timestamp: 1792165899147