🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4931

Re: [PATCH net v4] bnxt_en: don't leave an XDP program installed when the open fails

#4931
From: patchwork-bot+netdevbpf
Date: Mon, 19 Oct 2026 13:20
24 lines
6600 bytes
Hello:

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

On Mon, 12 Oct 2026 12:58:02 +0530 you wrote:
> bnxt_xdp_set() stores the new program and drops the reference on the old
> one before reopening the NIC.  If bnxt_open_nic() then fails, ndo_bpf()
> returns an error with the new program still in bp->xdp_prog.  The caller
> treats the error as "nothing was installed" and drops its own reference,
> so bp->xdp_prog is left pointing at a freed program and the next XDP
> update dereferences it:
> 
> [...]

Here is the summary with links:
  - [net,v4] bnxt_en: don't leave an XDP program installed when the open fails
    https://git.kernel.org/netdev/net/c/78731b46967e

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179241600658.2633077.17979665169071396850.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-348526-linux-kernel-netdev=dewy.ru
References: <20261012072802.2153706-1-vnagare@redhat.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-348526-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4] bnxt_en: don't leave an XDP program installed when
 the
 open fails
Date: Mon, 19 Oct 2026 13:20:06 +0000
Organization: Usenet Network
Message-ID: <179241600658.2633077.17979665169071396850.git-patchwork-notify@kernel.org>
References: <20261012072802.2153706-1-vnagare@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3615401"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2Dhtl67ZCguI9BmKl1x7u3q9bSI= sha256:gzyGFovvplcqmyLRnjBiUv+oxQeQ5rqXiRec0Jtaimw=
	sha1:H8nQWhdySOzEAVxHK2vQZk3ijrQ= sha256:0qL+0J6N3MKF7v9Wrs2cjT/cbznXI6+sfzwttxYRNKg=
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 0C6A2110A02; Mon, 19 Oct 2026 16:42:12 +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 2Trvw368wHE7;
	Mon, 19 Oct 2026 16:42:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348526-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 DA29C1109F0; Mon, 19 Oct 2026 16:42:00 +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 042BC2FBE5; Mon, 19 Oct 2026 13:20:09 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C8E646C851;
	Mon, 19 Oct 2026 13:20:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IoWzeM8z"
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 6B0904A0C;
	Mon, 19 Oct 2026 13:20:08 +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=1792416009; cv=none; b=SWNhe9BlsTTfE1QO1QNtKOxcVFwlG9Dl2Wo0RyxRlnPoI9XTNqR1iXU09qIgzFjLcxPhBzJHcloObWbcMEK0uqrdXZs2Ie+dd8aD34XrjQSVbmAsPqSNveDdKiDdKhLxyZYHCWeP8TjgCPtmjrfu6xdMeadGvlNDjzpWHVmHmpo=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792416009; c=relaxed/simple;
	bh=DXHiM1bMOCWpWX0JIcypM7COkCu8XMumDVKn4IWb/48=;
	h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc; b=qv08YUs5mmHL/CrHpPHvXmeg5apldAnin3bH0BR2zPgMO7J6gjFjk1MfPK0E9L2lu58X/RkPlkbwLXD+fog5UkvmRWD0VNKQQ4PjfZG9WWQ2EENbjF9gOk2PdMlWZTJ96+/1S+BelOcNBzki0ILzV1wB7uwqSXCSPcB8krlGXTI=
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=IoWzeM8z; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B40C1F000C4;
	Mon, 19 Oct 2026 13:20:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792416008;
	bh=+XXDrQJUpY2PpAGKrMkLS61VUDcwfbBBNUpmADVAu2w=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=IoWzeM8z1c8rJHkQPVPY9n+m4E0no7E+sMcHA7HxN0KzGfsDnK3OLsbEDvps5mzXN
	 JCcT5NI8Uf8LACks/epLOJCFUzozkpHZgXVU11sPmCauMr0ISOueR6LuId71RRmn/K
	 pMlNvX0sp/3oznA5j5O9kvFL2+48RJQ1hjl40pu0dvkfz7LlqY0I8ZN5r7ILCRpVKZ
	 XNISWIpkExEOOFr1UvgOSFXeKYYaxmEWFKVyESysVaRcwgBvDdyMWDx7LBupQWDmZZ
	 PDXwA/FB29jZckY6foHTZmXtfvz8aiXW1AIhPwXS9XWO5un8hU1Uobrg3q0FYcVHqO
	 9gGozJ7LKvQ9Q==
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 F15073811A5C;
	Mon, 19 Oct 2026 13:20:07 +0000 (UTC)
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>
X-In-Reply-To: <20261012072802.2153706-1-vnagare@redhat.com>
X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
 edumazet@google.com, michael.chan@broadcom.com, pavan.chebbi@broadcom.com,
 ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
 john.fastabend@gmail.com, sdf@fomichev.me, andrew+netdev@lunn.ch,
 netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
 nagarevaibhav@gmail.com, stable@vger.kernel.org