Article View: linux.kernel.netdev
Article #8821Re: [PATCH net] net: bridge: mcast: release the EHT host budget for zero-address hosts
From: Nikolay Aleksandrov
Date: Fri, 30 Oct 2026 08:22
Date: Fri, 30 Oct 2026 08:22
59 lines
14250 bytes
14250 bytes
On 29/10/2026 16:12, Cheng Yongkang wrote:
> __eht_del_set_entry() decrements eht_host->num_entries only when the set
> entry's host address is non-zero. A report sent from the unspecified
> source address 0.0.0.0 (or in6addr_any for MLDv2) creates an EHT host
> with h_addr == 0, while the set entries created for its sources have
> non-zero source addresses and are counted against PG_SRC_ENT_LIMIT.
> Deleting those sources never releases the host's budget; after 32 counted
> sources the host stays at num_entries == 32 and every later counted set
> entry is refused. The same sequence with a non-zero report source
> releases the budget normally:
>
> host 0.0.0.0: IS_EXC/ALLOW1/BLOCK/ALLOW2 = 32/0/32/32
> host 10.9.9.9: IS_EXC/ALLOW1/BLOCK/ALLOW2 = 32/0/32/0
>
> Only set entries created for a non-zero source address are counted:
> br_multicast_create_eht_set_entry() rejects a zero source when
> allow_zero_src is false, and __eht_lookup_create_set_entry() increments
> num_entries only for those entries. The auto-created wildcard entry for
> a zero host uses allow_zero_src == true and is not counted. Release the
> budget based on eht_set->src_addr instead of h_addr, so counted entries
> decrement for zero-address hosts as well. The uncounted wildcard entry
> no longer decrements the counter, which also removes the converse
> mismatch for non-zero hosts.
>
> Fixes: baa74d39ca39 ("net: bridge: multicast: add EHT source set handling functions")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Cheng Yongkang <teel4res@gmail.com>
> ---
> net/bridge/br_multicast_eht.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/net/bridge/br_multicast_eht.c b/net/bridge/br_multicast_eht.c
> index 18eaf9c..548ad78 100644
> --- a/net/bridge/br_multicast_eht.c
> +++ b/net/bridge/br_multicast_eht.c
> @@ -167,7 +167,14 @@ static void __eht_del_set_entry(struct net_bridge_group_eht_set_entry *set_h)
> RB_CLEAR_NODE(&set_h->rb_node);
> hlist_del_init(&set_h->host_list);
> memset(&zero_addr, 0, sizeof(zero_addr));
> - if (memcmp(&set_h->h_addr, &zero_addr, sizeof(zero_addr)))
> + /* Only set entries created for a non-zero source address are counted
> + * towards the host's budget, the auto-created zero source entry is
> + * not (see __eht_lookup_create_set_entry()). Check the set's source
> + * address and not the host address: the host address can be zero as
> + * well (IGMPv3/MLDv2 allow an unspecified report source address), but
> + * its real source entries are still counted.
> + */
> + if (memcmp(&set_h->eht_set->src_addr, &zero_addr, sizeof(zero_addr)))
> eht_host->num_entries--;
> hlist_add_head(&set_h->mcast_gc.gc_node, &set_h->br->mcast_gc_list);
> queue_work(system_long_wq, &set_h->br->mcast_gc_work);
I don't think this is a -net fix, it can target net-next when it opens up.
You can also trim the comment, it is way too verbose for something so simple.
Thanks,
Nik
Technical Details
Message-ID:
<788c84fa-12a4-4282-9afc-438d3206f21c@blackwall.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-353653-linux-kernel-netdev=dewy.ruReferences:
<179328314076.648427.17991367257682028617@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-353653-linux-kernel-netdev=dewy.ru
From: razor@blackwall.org (Nikolay Aleksandrov)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: bridge: mcast: release the EHT host budget for
zero-address hosts
Date: Fri, 30 Oct 2026 10:22:35 +0200
Organization: Usenet Network
Message-ID: <788c84fa-12a4-4282-9afc-438d3206f21c@blackwall.org>
References: <179328314076.648427.17991367257682028617@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2189893"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oQujr4ce9evl2fElCcPyqSd1xmY= sha256:TsgKIeqkOVVem4tSncwcOoJ+CdR5JIaROD/3FycNFTI=
sha1:Ix4QCYHUQ3iy1XA6SmJfeV5bXYw= sha256:9CFvZaKv2D2+aN1YY7X0+NHRqZNUov19JsDpUmyPHKo=
Content-Language: en-US, bg
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 D6FEC125C8A; Fri, 30 Oct 2026 11:23:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=blackwall.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 w8rQfudpWEWy;
Fri, 30 Oct 2026 11:23:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353653-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=blackwall.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id DF37C125C89; Fri, 30 Oct 2026 11:23:04 +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 078F728C3C; Fri, 30 Oct 2026 08:22:46 +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=1793348565;
b=y8uZKLXx9wUuuSkpWBguSxPilr8kxHuxxgYQzJ+nCEoEBYjKx8wCim+SNokWCFZpwzWp
aan/XfTKTIMdWViuYC8Oc4RwNO34xUqyGKsfX5gXMAq0YkpugWHMysrFMxw49ihVbjT6m
+OC6H2YN2yMOXJpahMCmjp5LRdqOVN6ZutN3z3IF362LAuQxfNx9EufI7udkmwzcS2hon
engzpGiaHZLS+jI94zTgWHpg5SUiw8pgUS+i3J2Bi0ldrKuyZ1/J9/56xu0m1jRGXwqH4
uCUUzrXUpH3/H52M7f177k4Q4GY0uXdJAOJBsibkdPtrIMgph6vYkkZ9Vg5Lr+4jwXw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793348565;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:User-Agent:Subject:Content-Language:To:Cc:
References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding;
bh=v92GAJjZbomnBYNnJfUXzhExe9lvts+O0oV7sTd25Fc=;
b=iSs04uy5AocvatgYRksWEi1rm5ZGtgFqMYEj4TEbmXpqz1GYBPHpSY3aGuAKWtceoCwA
1CnD/3OP8UM5jS6iklWQ3ZO6TginRiztgklxABLKcqT/QA3y8iEm/oVaWVwvKTSVrncee
JXH+BLM8RMWJd10c8ipsCAvZq2BWury3XI+UkF2d4J/cNnON9ry1UhemC+eKI+o/spAok
jOovq6b3qBElAVI3xDnEbzY3GVQA+iOYWsYWzqqd3xq7Jl87GjwVbCOCynSC5igbGf5Gg
3U2HY8QP0Sla47j86RYZIroGyyvdLMjgxCNBdP8rHFqBW8ilcizoMfZtlNbiiK9ocBA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=blackwall.org header.i=@blackwall.org header.a=rsa-sha256 header.s=google header.b=CqKLbhic;
dmarc=none header.from=blackwall.org;
spf=none smtp.mailfrom=blackwall.org;
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 34DC3606A32C;
Fri, 30 Oct 2026 08:22:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=blackwall.org header.i=@blackwall.org header.a=rsa-sha256 header.s=google header.b=CqKLbhic
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793348559;
b=Rh/DzXJXd5sxLd4adxLSG2s/Pegu2nL97WQrcmojGHAvnUzGM2n3RAHSlnb3a+GLPKYY
xXJPxZuHrp0W6m31ZvmBNeM+Too+/Jw43EsiVcFWlz6hwnwM/CDqQdGTGrAc+K1ohK5uy
oN9FROvA4EHNrAE+ZYWdfaSG0SukaF6MCVkCPcN13nq0FHbOygLovVbkJUkXp9wYuRj2/
b0H1YBQLW+Fl8QIH1y+6pyg6IwRKPje034Jk62UzTlva9mcMRgCAdtEBsvDeVUXWc0AUT
acF/gF3+qiedYU4PWFcKzKk9Ej33GS90d7eQLT0DOFbTWqssobpOxhp0lgQ+UkpAFAQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793348559;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language:To:
Cc:References:From:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=v92GAJjZbomnBYNnJfUXzhExe9lvts+O0oV7sTd25Fc=;
b=l4QFxXbL4uvkawgiZ7AMLwDILQvDMpL6CQYizazVUH3xIOcoS5dfZctBQt0HqNUXDJ04
3Hs4glhRaderT0QLyQSxMVJtxngQiKekCdMaERIK0gdZhsRmtIid1vlEuK/J/MjheYCUR
OIFEHmiU4jdmMNGru5K1SxxGMLTzHdHfm2DF7Px9U1OHwEY7MI+zRMnY6NktpzjEPgVG4
qcL3UekyyRb5HVXpLYzCTNGsZM5Glm0k73epb85weDuFTpd62GDUwusQ7Qr74yzrHc26F
RgJj9lFc8MKpJ7NwTcJQZ3xbvJtpdBqYVzuw1Kew+jn/vDSLIHWKk71wg7Ck/jMkZsA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=blackwall.org;
spf=none smtp.mailfrom=blackwall.org;
dkim=pass header.d=blackwall.org header.i=@blackwall.org header.a=rsa-sha256 header.s=google header.b=CqKLbhic;
arc=none smtp.remote-ip=209.85.221.51
X-Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEBA5606A322
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 08:22:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DEBA5606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=blackwall.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=blackwall.org
X-Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-48df8fe8513so376207f8f.0
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 01:22:38 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=blackwall.org; s=google; t=1793348557; x=1793953357; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:from:references
:cc:to:content-language:subject:user-agent:mime-version:date
:message-id:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=v92GAJjZbomnBYNnJfUXzhExe9lvts+O0oV7sTd25Fc=;
b=CqKLbhicYDHaXCZRwL3p04ldrDIvLGZvyz8To7GnYLehyD1KBe48fJ5J8okkQuweg1
xq6TRrsSXnOkToaOr5M/TaxfEX52N3jFJ3/F9ZxsiwGFa3lASuQPS+RkOhOKneDtbaLE
LCAkvHRIkB4QtWolLc2RuHzeTOc+2fvGdY3mrfGFhEjQ3PvmMhoer40y+zfWC69lKhpp
y/uYCkyabqWd9k82czHpVqvtlMy8lG78ScTRmaSpBDtZ79Vmr4Jc1P53PCkHIQVOc5ZB
OFP9CoSCDKu+fmTvDfDeGOopMl6suY9bl6LBfyMPRG4InFqp/qAuPqwsF0DSYjBINDUs
KFIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793348557; x=1793953357;
h=content-transfer-encoding:content-type:in-reply-to:from:references
:cc:to:content-language:subject:user-agent:mime-version:date
:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=v92GAJjZbomnBYNnJfUXzhExe9lvts+O0oV7sTd25Fc=;
b=KgjPcf/gyKDIIchXfGxZNaE6fqci5UwuDlKK/qKk+heL5iYD/avoRGraBGgZhPQc6x
MjPpGrXnf7xyKVGzoUGDMD+q6m7aDrx6QnskvFzc4yInQdU2jVek/abdkch9K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dBjrW/6RarP+tCJXOD4TfNgBKkGS2Csd9JYgy6eG7hJZUlj5dI83E=
X-Received: by 2002:a5d:5d09:0:b0:48e:64e2:4883 with SMTP id ffacd0b85a97d-48e6e2dbb76mr3748074f8f.8.1793348556634;
Fri, 30 Oct 2026 01:22:36 -0700 (PDT)
X-Received: from [192.168.0.161] (78-154-14-127.ip.btc-net.bg. [78.154.14.127])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71b80306sm2116937f8f.33.2026.10.30.01.22.35
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 30 Oct 2026 01:22:36 -0700 (PDT)
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-User-Agent: Mozilla Thunderbird
X-Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
bridge@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <179328314076.648427.17991367257682028617@gmail.com>