🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12125

Re: [PATCH net] net/mlx5e: TC, Fix double free of branch in failure

#12125
From: patchwork-bot+netdevbpf
Date: Fri, 06 Nov 2026 10:00
25 lines
8760 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:

On Wed, 28 Oct 2026 15:57:02 +0100 you wrote:
> When allocating the false branch fails in parse_branch_ctrl(), the
> already allocated true branch is freed but attr->branch_true is left
> pointing to it. The caller parse_tc_actions() fails the flow, and
> free_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again
> free_branch_attr() on attr->branch_true.
> 
> Clear the pointer after freeing it.
> 
> [...]

Here is the summary with links:
  - [net] net/mlx5e: TC, Fix double free of branch in failure
    https://git.kernel.org/netdev/net/c/31f9b43a3bb3

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179395920518.502049.12133598827190916497.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-357913-linux-kernel-netdev=dewy.ru
References: <20261028145805.54595-3-fourier.thomas@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-357913-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/mlx5e: TC, Fix double free of branch in failure
Date: Fri, 06 Nov 2026 10:00:05 +0000
Organization: Usenet Network
Message-ID: <179395920518.502049.12133598827190916497.git-patchwork-notify@kernel.org>
References: <20261028145805.54595-3-fourier.thomas@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3842289"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qke1ceg/b+wI7VmMZBrYFCDdpkU= sha256:CcdsNsHN4gbNAhkdtEEj/UZLwwkm4lnM01/NYe/CfJ8=
	sha1:Lg5gn0tnPYq/hUUbWHGfYNrCu7o= sha256:dt9z1FqUyPwAsgHgXdl/wgsO0bCDnXc6wgjqSkVuFLM=
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 8A29E1131EC; Fri,  6 Nov 2026 13:02:47 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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 bWTf7sXtoEzX;
	Fri,  6 Nov 2026 13:02:39 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-357913-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 2907A11316E; Fri,  6 Nov 2026 13:02:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id AD9D6604A64; Fri,  6 Nov 2026 10:00:11 +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=1793959209;
	b=FWaSE48SKixIO7ieDT0z9xkUrhJOq4r5vb0REBZ5WVDAulLc51H7fQwylS5U0hh3NVgG
	 B56ypfNPBBrh1KZpgzZd+QTCM3s3KhSfKcpKfFLfgxBhrTeLNmqcwqWQNCTA0pkel1xA/
	 FCnCiJ4+IQrGkdIK5F4IqrVwbEx2M7fgxQ1nbiDWhFWhGmlrLk7NUPgeGtw2x3EFpokhg
	 0VJstcVc1Dp4I8kCEIL+BuPPM2vd1nNa07i7hBlK39BS4z3BmUeL2HL9Uv4zkI5wOugQJ
	 cCvNh2WAZ38g+C07M/45zlYYn0GWRoQkvaIOSV+ycjjcu9iVz0LWG5s8GMewdtHqp8Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793959209;
	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=vow2vG/QGUSa3sk+BL7ipbjd78B1wl5dopE1viaxuxk=;
	b=TGue1a6lzmdPwhGp+NxzWfh3cGDGQryIGCax6+fWUlXDHYgNBVdbiyCL6TFZ51HCFXoC
	 tClfGAm4yP8X5pChzZWIhum1JHc9SfDVEV16RBpMY38T8UgMAOnUZGkuZeHVAX/kksBvq
	 qOLtQwCgml9Q6U3l2kGaGROue0iP7s2C3Zp63LHTu4h8tI1AtcMhdyGyjxJX1w4X7VPg/
	 71I0eZj0GbknFtqgZ0e5k+Kmd4g9C6y1TjIZIRdZsVRahN+CFnm5pC8EsBYgvAfiJwhTh
	 FPGXp9NeksFEgOvghBxHZMJ+AEWhYd8vz1ae3DjHQICk9kevb8teGeGC+jKun+7s0Ww==
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=C3y6yKXt;
	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 45C63606A33E;
	Fri,  6 Nov 2026 10:00:09 +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=C3y6yKXt
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=1793959207;
	b=jaAQKr2OKGutwog3s9WOriZl+tPdv7a3LtDO3bv1yYH0lrau81Xi/nAf9Ivx1jt6dm64
	 oUS545QBvvvoQawNpv5aiQ/4H4ifOVb3qklVvDxxmCt3myqF7LQdUggG9OnGuZJm5DvS5
	 Ug9qGg0dcS3LOdykFHzPBbAH6HUcSzWUeAfAamUZx9FTn/P4wUxexFARxS4hGNSnRFMUt
	 DkBbBeNrru8CUpQGQJuYIwgcsPX/RTO6oOKUOvYygSPIVPvBgZbdw6lizJb7EeAEQlCmm
	 SDsXOY/+SP+ugxUVBu1RM8dhTfMiSsj6le+a9tg2VS7VvJixEePF/d/dDQIeVkiWZYg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793959207;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=vow2vG/QGUSa3sk+BL7ipbjd78B1wl5dopE1viaxuxk=;
	b=C29qQ15iuGuCtC3wGrg5tPjnPrxFcpvac6CtnuvgUv7Yg7P0KnyhIZJU842hezVkORq1
	 FUuumEAQhRAC8k6pNqeYBt6SYcxhCcWap0it6IKtJluhwJD9gmpwXjzAtH6g5aHpEJP4F
	 5Z8MmBhGK4i1F2Y9Sz32dUC2e5lIHHSDhMV+/ZD77WXm0ut0lJuRdmee4RL3i37V9nVO/
	 5M+P1WBcSLh0FUv9RwnWGW75zI9UdMCl68ME79kGQxtQYVdsNTF4386mutaknsytU8W+p
	 4kjObGzOqdHsZX+mJp6tOV/5uTmpW5LdOwzS2twTc7wFDNGJ7b3kfXf5S7SU681WeKw==
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=C3y6yKXt;
	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 2D274606A330;
	Fri,  6 Nov 2026 10:00:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABFE51F008A6;
	Fri,  6 Nov 2026 10:00:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793959206;
	bh=vow2vG/QGUSa3sk+BL7ipbjd78B1wl5dopE1viaxuxk=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=C3y6yKXttY1eJt3ps23frI/HFf3gHrtxrjSADU30An6bqmW2kBdWbvHFyo03zOCyu
	 +JyjjxVTEJgEQHAKjWexdHMzVkNMp47xBYyd0/BwtjGnFFlp2NsojgQTeyYxvf3jeW
	 xMbGXhlr9XduU0ZzQzfdGIKkBoeLiZURk+o3p2nAoJ24LGW+ngHh6B/Z442ENATnJX
	 9N7BPWMBO47v/Wbn1dw6S1DrLc9T/Hn4vdr+35IMp4+IGXj8lCkzOJABePO7c4CZve
	 xqDyq/I3MSh13A++3HUFinSW/H8zxnaCN8aeaONd1ph0abENDiAT1e6FxUFt7x0heB
	 0UNy3jXIanX2w==
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 9B088392447D;
	Fri,  6 Nov 2026 10: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: <20261028145805.54595-3-fourier.thomas@gmail.com>
X-Cc: saeedm@nvidia.com, tariqt@nvidia.com, mbloch@nvidia.com, leon@kernel.org,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, ozsh@nvidia.com, roid@nvidia.com,
 netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
 linux-kernel@vger.kernel.org