🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5269

Re: [PATCH net 1/2 repost3] net/sched: act_api: reject duplicate actions in a batch

#5269
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 03:00
30 lines
9180 bytes
Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 12 Oct 2026 14:09:25 -0400 you wrote:
> tca_action_gd() builds actions[] with one tcf_action_get_1() per nested
> TCA_ACT_TAB entry.  Each successful lookup takes its own reference to the
> resolved action, so repeated TCA_ACT_INDEX entries in one request yield
> the same pointer in multiple slots.
> 
> For RTM_DELACTION, tcf_action_delete() then consumes two references per
> slot: one in tcf_action_put() and one in tcf_idr_delete_index().  A
> duplicate therefore drives the refcount to zero mid-walk -- the delete
> frees the action and removes its IDR slot -- and the next slot calls
> tcf_action_put() on the freed action:
> 
> [...]

Here is the summary with links:
  - [net,1/2,repost3] net/sched: act_api: reject duplicate actions in a batch
    https://git.kernel.org/netdev/net/c/f67b3ed1308d
  - [net,2/2,repost3] selftests: tc-testing: add duplicate action delete batch test
    https://git.kernel.org/netdev/net/c/044ad3c90d9d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179246520503.3454580.1042472378869646593.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-348997-linux-kernel-netdev=dewy.ru
References: <QDISC-K1TH.v1.r3.20261012134653-1@mojatatu.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-348997-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/2 repost3] net/sched: act_api: reject duplicate
 actions
 in a batch
Date: Tue, 20 Oct 2026 03:00:05 +0000
Organization: Usenet Network
Message-ID: <179246520503.3454580.1042472378869646593.git-patchwork-notify@kernel.org>
References: <QDISC-K1TH.v1.r3.20261012134653-1@mojatatu.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3770962"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5E8g3/VE/GSQSiT2DIWOCoqlDr0= sha256:xQ2nwbSu2ePI8g+vsdJ2sGXyXqfOfqV33Lj2o36eGH4=
	sha1:FMEy2d9w7hIR3mYDELRe4gNB4jE= sha256:7e9GoMZKdka0lUDofblCeONFp7DRlRkbyLnALV5bn3E=
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 601EF110BD7; Tue, 20 Oct 2026 06:00:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 ENy4RGiSDeDl;
	Tue, 20 Oct 2026 06:00:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348997-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 D1A0C110BD2; Tue, 20 Oct 2026 06:00:28 +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 4A9F13AE8B; Tue, 20 Oct 2026 03:00:08 +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=1792465208;
	b=dlub1fjuWbBJPvtcnyv9U3hJz4zr4+l7yZDLkN3Cwc/fuLwvC+m0ADRv2RzVMvc4YSBn
	 XBgFW4fCUY5JhNr8ED8tOTRvPer+vWSUdn8bssR+j6uP41dAeA7mcvSieVJduDKYauV9q
	 wZWAKSGWgYusKCqpDKQQtx+/0Emz29r0zy9FvXEJnJoKuzaMQrXmZN1ynYOEV26HLgNxo
	 CxxeWGJ88kMt9wXKFoUgQEbd7aiVPjq4zc9UEktnECaKoryeegrvVhb8oBZx/T+88zIYr
	 G++y/nGPisXaBztoLIUHUgVpPcrhvZSUYcUODHJElENSXYwx3wr45m7+2jg8PvmyVfg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792465208;
	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=LLU3IDAkcJ517K/+XbdTzGRryYF+KBNYwub94onqkuw=;
	b=ufuFh49lrsmpzec1xyNKgfMiIvOy6EohioOZevdec5YgPdTOdP0As0sfu3bpJwipE2RB
	 iNRbcgmn2mMMSVmD6OaFB4D+jvN6Y1cpe46/W+TUS4+xd9VgkP3YdJ2ez4+NKMaYshcMg
	 LGgUflHtIsW6HLD295qCl33ZKSnjAF9nli/BzNTc3Q0A6wJxTuFMa+hpeMrlnbBZICXNu
	 ZDg/uwZpC77Lx8TgxtVzstPtfTWZYC7u4vawPmMwzS/KOIAmP6guez6jcDT8uUvpeVAFy
	 8Mjw34PyxUHN7sIeWLFMtOzukGnxLcmZjcxXVxWbbfLZ62UTD99e/F9+FSl1bLwSD1g==
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=Psfyw63l;
	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 224C6606A31C;
	Tue, 20 Oct 2026 03:00:08 +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=Psfyw63l
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=1792465207;
	b=oR94LJaMRj7zDeQwF1byR5zPHqLRNXeFDHQuLbuIKaOg2huaPkhido6AF26le6DhJkDb
	 I2F8t+r9nnM65maIkHWzfjGIaMfrX76mJL6O/Y79BGiLgoNUt/gvzRsSx82rgyT/7nWtB
	 BTpKh+dQGj2LafrBsdtGQSWtmfGg1eSFX3yAfMyY5ZjURSi9xMP/SWRiNDAoDNyauFIB8
	 d/FXLtxCbNjT3ln5zSigVI2HRHKd3ivy6WsExt3hO5885PJcrHDo22iwIcd62Hw1CHejB
	 kKoeE+lDXM4IkJroMgotM91RAHG4LnuhgrjjdE14HZdrNVYMjSeUJdf7CRLaSs+aBeA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792465207;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=LLU3IDAkcJ517K/+XbdTzGRryYF+KBNYwub94onqkuw=;
	b=WHDFbJV5JghkZ6nzeF5/idV1vdEi4w0MGMfYcT8b7M1eQGMgtMP9DV9fabihsztIUJny
	 BpXJR//BCxbGu9W65UT+mt2CXp0EnudmGSZtBuxUwAaSaZ/gv+obrH2ontRuC0YamP7Te
	 F52Gv2SGyQk7IXbkiq7wlsUNUUOJsRgXiOtMRr+rBrLpdl+S4wNktbreZwNV5u99A/FfI
	 uSz0ajHjv4BZoPFqT9i1OoAg8dEcITeFt8knriwHKbr1vlBG+39ZojhBcj5fJ+91QP/eQ
	 jpRtDD1Bz8x7lfMBKrYAZfZew7MWp0uy0kCuYdmEyjCFiDPX2LOA4zpzlrEWz0eK5ZQ==
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=Psfyw63l;
	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 00D84606A31B;
	Tue, 20 Oct 2026 03:00:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 830271F000C4;
	Tue, 20 Oct 2026 03:00:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792465206;
	bh=LLU3IDAkcJ517K/+XbdTzGRryYF+KBNYwub94onqkuw=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Psfyw63ltsfp7qgwVwL28W0xzMoJqM7M5vyR0+zlxbu6pYpueAIZ0RaWIIx+tZvWw
	 H8qFADS5ZJZkDfPbLKMA8BRLo4Z3AAZ3n38DXnCR/oXuw9ux5Tiv3AsRxP+oN2rGjL
	 id8VNig8zev47ls0LfHgry+0IA3OPvUbeRMqUgtVr3uBYnQMnoGsKclS+w7BVE5jld
	 sIIJrDN13WnjZN6MrYsIygxVk0QM2JOGhs506Rj4YYWMAR6bZ8DM7JIzIARyZHf8Qg
	 7NYqlZcbYRqLmdXlV8AsrTABrRaBwD1WcXLTiLmuDnjncdvmsLwW6wRJxx9rg4ic02
	 xzlOE2ieU8hoQ==
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 773923924A70;
	Tue, 20 Oct 2026 03:00: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: <QDISC-K1TH.v1.r3.20261012134653-1@mojatatu.com>
X-Cc: netdev@vger.kernel.org, stable@vger.kernel.org, victor@mojatatu.com,
 jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, vladbu@mellanox.com,
 marcelo.leitner@gmail.com, shuah@kernel.org, linux-kselftest@vger.kernel.org,
 sashiko-bot@kernel.org