🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #804

Re: [PATCH net] net/sched: fix use-after-free in __tcf_action_put()

#804
From: Jakub Kicinski
Date: Thu, 08 Oct 2026 17:12
7 lines
5609 bytes
On Thu, 08 Oct 2026 11:03:42 +0200 Jérémy Jean wrote:
> Indeed, you are right: there was no specific reason for the inversion.
> Below is a new fix suggestion.
> If you agree with it, I could send it as a v2.

LGTM, please send
Technical Details
Message-ID: <20261008101218.18b0a4fe@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-343147-linux-kernel-netdev=dewy.ru
References: <20260930211839.620410-2-Jeremy.Jean@oss.cyber.gouv.fr> <20261007173503.588b9c7f@kernel.org> <776ed0c422ace98fd907468f78ea9cb0@oss.cyber.gouv.fr>

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-343147-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/sched: fix use-after-free in __tcf_action_put()
Date: Thu, 8 Oct 2026 10:12:18 -0700
Organization: Usenet Network
Message-ID: <20261008101218.18b0a4fe@kernel.org>
References: <20260930211839.620410-2-Jeremy.Jean@oss.cyber.gouv.fr>
	<20261007173503.588b9c7f@kernel.org>
	<776ed0c422ace98fd907468f78ea9cb0@oss.cyber.gouv.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="925987"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8PR1f0C0SkISfaTOdBEposJ5Dig= sha256:H2mdi4sLtU3iPdKqUv/LN6XYG0uTvX2dZAFiaBR3DNM=
	sha1:gUTpMMTD/+KAKhwI9uMNAsY05WU= sha256:KLuWYfFolAKDbu2kOvypnQjDPCaR0wHbD9Vg7EIxqVo=
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 DC97310F491; Thu,  8 Oct 2026 20:12:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.341
X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, 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 fzRDX9J1lFaW;
	Thu,  8 Oct 2026 20:12: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-343147-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 66F1610F47C; Thu,  8 Oct 2026 20:12:24 +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 73BE13D705; Thu,  8 Oct 2026 17:12:21 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6389F3B058F;
	Thu,  8 Oct 2026 17:12:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aiIpYK6R"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(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 6F07B364EAA;
	Thu,  8 Oct 2026 17:12:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791479540; cv=none; b=fBIdMQodoXQOXkwbufKjA9bf5JC4KB0wJe2JQTrmJup3Z8/jojpwf15eAphlB0kvBQXwebjBNHSeSznEM5ga7c9kPGh645Xvxv3X6r+KLaJ5sn9+vajg+he8FCv2SAUSRvwokYkePbQT8hqZ7O1yB78lSytoIja1PPZAyQJlW/s=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791479540; c=relaxed/simple;
	bh=QCAItNjgWKT1ojmHEfdoUX+wEOXTJpjstvc96v0viYo=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	 MIME-Version:Content-Type; b=Qlm50xHS3l1fpHsdaxH68SgBsfOovsGwl0nqTO29IWI9OEIBFerVQ+H+S/4brNNQ1404HRPYPSdf6JEzZZwJXfXOKLRVcI+9xQ1wypoup6yKVW5t6CxplQ/5H1SZY8CDJEYDsYDsAoz4cz3W3ZH6wOMYMNbZVYZlQECbZv+F2fg=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aiIpYK6R; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA8F81F000FF;
	Thu,  8 Oct 2026 17:12:18 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791479539;
	bh=QCAItNjgWKT1ojmHEfdoUX+wEOXTJpjstvc96v0viYo=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=aiIpYK6RzIPr/nh1CRUn39qNoMcengfZaapNPup8327L0RHLEHEdJIDHhoMMJjRu8
	 uDKZ+Dtxspvq1XJsNSnFzJ6lwgpYKZPeNT2eD8g0FXfxLXV2+2yg5fu/faWJuVyBPH
	 jzDgxOX5NG/iBojABktjLUNU56EltAtsyGXCdVvso4TnEPvfZYjEEKKS6BUEL/m5wO
	 /FK+65O6AYcXGsI6r6BkpYsk4r6hRHX1dQN5gS4CyD3KVRW0DYAbiGMd0MxJ/Kw6iq
	 Tqj8El0nIbyGH9kcZiVtaR4B8N5e5E7vSoiif3+syZ1K1gCRLOiq23fOBirplbjnvP
	 h8ZmC6oIyAu/Q==
X-Cc: Jamal Hadi Salim <jhs@mojatatu.com>, Jiri Pirko <jiri@resnulli.us>,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 stable@vger.kernel.org
X-In-Reply-To: <776ed0c422ace98fd907468f78ea9cb0@oss.cyber.gouv.fr>
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>