🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11616

Re: [PATCH net v3] net: bridge: disable MRP ports before the FDB flush in del_nbp()

#11616
From: patchwork-bot+netdevbpf
Date: Thu, 05 Nov 2026 11:20
32 lines
9174 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Sat, 31 Oct 2026 21:48:40 -0700 you wrote:
> From: Cheng Yongkang <teel4res@gmail.com>
> 
> del_nbp() flushes the port's FDB entries before it unregisters the RX
> handler. For a normal port, br_stp_disable_port() moves the port to
> BR_STATE_DISABLED before this cleanup.
> 
> That does not hold for an MRP ring port. br_set_state() ignores state
> changes while BR_MRP_AWARE_BIT is set, so br_stp_disable_port() leaves
> the port state alone. br_mrp_port_del() then restores forwarding when
> the bridge is up before clearing the bit. A frame received between
> br_fdb_cleanup_by_dst() and netdev_rx_handler_unregister() can therefore
> create a new FDB entry referencing the dying port. Nothing removes that
> entry before destroy_nbp_rcu() frees the port, so a later frame to the
> learned MAC can be forwarded through the freed port.
> 
> [...]

Here is the summary with links:
  - [net,v3] net: bridge: disable MRP ports before the FDB flush in del_nbp()
    https://git.kernel.org/netdev/net/c/37dfd0efbfff

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179387760556.3608225.7629650989179782563.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-357248-linux-kernel-netdev=dewy.ru
References: <20261101044840.1595584-1-1020691186@qq.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-357248-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] net: bridge: disable MRP ports before the FDB
 flush in
 del_nbp()
Date: Thu, 05 Nov 2026 11:20:05 +0000
Organization: Usenet Network
Message-ID: <179387760556.3608225.7629650989179782563.git-patchwork-notify@kernel.org>
References: <20261101044840.1595584-1-1020691186@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3622499"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xsMrRoqJPoAgvS8BBd6WvSsb1Fs= sha256:hP7tVgu8lfPDZKfIzJcaNyOioXKtKwhi3F02X2BMm8Y=
	sha1:oLbkrHIx5T+l2H6ActuZ8HfsOdM= sha256:EiIw7IH01oELLL5CgM3sIB9sdqwUllS/D/R+cGjPkPM=
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 B8C60112F33; Thu,  5 Nov 2026 14:28:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 7LR-XV52fIP5;
	Thu,  5 Nov 2026 14:28: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-357248-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 9EA48112F10; Thu,  5 Nov 2026 14:28: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 EF31A34AA6; Thu,  5 Nov 2026 11:20:29 +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=1793877628;
	b=pFVDUtw6neTfsKjbs9bgvVIxcUm6dKAd0U/X2fixPHoL/B+pAWHnhfOPsCNzImG/vcAx
	 RIYpUPA/oKuq5+ZA+lhuswNz55+mg2pNyaEUbyPAGOD1EGx4op7uFW/ZJ1gjh5i63RdRx
	 95SljeP5pDX/OL6pVPcmxMbDwjHP7NzkhVzcjMJy3jrazWeXdNMFXKgN8DzZBPckw2Yf6
	 mdnjQ+hBO1e0y4tZRIedtPTQloB42EM5jZpzHWfumv3qkeOdRKiq4Gcj4yOkNh27rS7I5
	 kFie0Wbgk+7wgjocJoIqVKnhWS+Q/8qcAEJFlu2kTJ4C/0h+MjHqSQHBm2TR3qPTfDQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793877628;
	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=fbwKP6oKm59DXiDgiVS6j7DYr4fQoPbEbnIQIw0kOz4=;
	b=Tkb6xvJemkphUiVmMo8xi+0vZoF4ycFuh+K/iQDYlNNnI8BAbWRwfYOZ88sljPxg7963
	 lfReJ8klsd1vyIU7x2EWGoyq+V8skdIVzTQLUYBUxkhJXNRrR+XzAT48ry5LoDZB1/reH
	 4sM+sSKxc3mJsjLE/0jRAsakEZAWxnk/ArdCvAWUBz04uKIw9Y++zsp1JehftO88NmPsU
	 39owsJ+XBVZEm1lbNM0/68i8DI9t0KAOZBPNcc+RYrcKKN856cMhShH7Y4IwlLlfUGXw2
	 muF11Div63pdV2TNp86cRx/GNndYa8IGWBlckkKu+3/AAltE9DNut5cTTjFA1tDjsGg==
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=ZqTvHxDb;
	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 8D24C606A32D;
	Thu,  5 Nov 2026 11:20:28 +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=ZqTvHxDb
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=1793877607;
	b=Vt6Cu02MyWP5Yx3q6ES+S2QpecnGJ4Ht1UjeNDyPc3kzkkXelR7TrL10WizrIs7PCGwH
	 Gpin3yjvCOTlztTuX/B/LPqijocGzlPU/vJBxhSf+QVORqE8AKPnDgNu5hEuAkI9xRO64
	 rPtPCv9qEDeyPaROmVY/hIh9cv6IOR24qh42jAobYr0gmfh3QpYffu/7N3h7gqy2LTrOh
	 2aO3hwFVaNQJRHW3oR0WvFnlyF/9oORdETbmPLqbpm4bsajKRku8VxCOwlVVKeWrvCYDC
	 yH05BKIwzLuuvEi/Bq17krHKbHTiDKyaHPi5dLF/ccaU3JuOnS5u02jcXS9KWpB+iSw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793877607;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=fbwKP6oKm59DXiDgiVS6j7DYr4fQoPbEbnIQIw0kOz4=;
	b=5a4GyjNC16GYPTBVWQMNXW8AiD/nY7yn8iEvHMQInsyOmZ9Y6BZ7teZp93QX1hkXvIgs
	 TTP7r1eByqjLSPjzSjpjo2M+r8RovB5TJyaE20gb2aGcoPyqyUQ9G4VE6P0BlHF03hcZu
	 tBgYXTn1gDijHqfj19cOmgd50fY7NEl2w+7Zj2Yjf3BO6t1kEw1SZV+eR7mR6z0KwKO/3
	 7JVAEWbNH4zSfMDnHnp8hzCHlakxS3pWw4V3Nv8CJaUoe0kqIQe6a7/Joio0xZmn70HVn
	 Y75Nbs9DKkvroJlxvClcQ6dpe+gTw5Qbzyi13PhuzqUdxDQpbAYiYmSAqskNU1YaWiw==
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=ZqTvHxDb;
	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 3C32A606A326;
	Thu,  5 Nov 2026 11:20:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C323B1F00919;
	Thu,  5 Nov 2026 11:20:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793877606;
	bh=fbwKP6oKm59DXiDgiVS6j7DYr4fQoPbEbnIQIw0kOz4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=ZqTvHxDbZEmeWh9Q84+rTflIIgUb4IovuegtaHIVwCriVa+9z1WpZvDF9OM7rwJD0
	 8O1dt6QiLTtkqXhL9HS4waS37qNp/uRc8oDzx1iuawCABlH3auYfHJYPcqwNcth67L
	 qp8YrIy6Ee+GAT4rwBkFgnToL2//ypInm+oAzPYKJI4QGqcrKp0DtjFdo+/UvEyL+m
	 k/VAJPvgoqR4BRv0K80NMYM/3J4HD2RZFwBt4BU0Pbk7pvpLRb9HGcT+alxIeT3e+w
	 c82pr/MiRowV64uQct83sHMhRjSOPY4r1DhlJ6prCZj0jlnaMiJkWsd/OHH3IzILZx
	 grwHiB+RLfJeA==
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 BA4A6391AFCF;
	Thu,  5 Nov 2026 11: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: <20261101044840.1595584-1-1020691186@qq.com>
X-Cc: idosch@nvidia.com, razor@blackwall.org, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 horatiu.vultur@microchip.com, bridge@lists.linux.dev, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org