🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10212

Re: [PATCH] net: cxgb4: do not leak a PTP skb when the Tx queue is busy

#10212
From: Krzysztof Kozlowski
Date: Tue, 03 Nov 2026 10:26
63 lines
10351 bytes
On Tue, 03 Nov 2026 10:05:30 +0000, Wentao Liang wrote:
> cxgb4_eth_xmit() stores the PTP skb in adap->ptp_tx_skb with an extra
> reference before the descriptor credits are checked.  When the PTP
> queue is full the function returns NETDEV_TX_BUSY, and later failures
> such as an unsupported FCoE offload or a failed DMA mapping jump to
> out_free.  None of those paths transmit the packet, so no transmit
> timestamp ever arrives and the extra reference is never released.
> 
> Only take the extra reference once the packet is certain to be queued,
> just before it is handed to the hardware.  The initial check for an
> outstanding PTP skb is kept, and PTP transmits are serialized by
> adap->ptp_lock, so only one PTP packet can be in flight.
> 
> Fixes: a456950445a0 ("cxgb4: time stamping interface for PTP")
> Cc: stable@vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
> ---
>  drivers/net/ethernet/chelsio/cxgb4/sge.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 



Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.

2. You use multiple identities with this email address, thus I doubt that we
   speak with an actual person.

3. Your bot does not even bother running checkpatch, right?

4. Nothing of this was reproduced nor tested.

5. Finally, the same feedback:
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.

More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.

This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down.  Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.

Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.

Best regards,
Krzysztof
Technical Details
Message-ID: <20261103-astute-literate-malkoha-251bce@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355424-linux-kernel-netdev=dewy.ru
References: <20261103100530.1309928-1-vulab@iscas.ac.cn>

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-355424-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: cxgb4: do not leak a PTP skb when the Tx queue is
 busy
Date: Tue, 3 Nov 2026 11:26:08 +0100
Organization: Usenet Network
Message-ID: <20261103-astute-literate-malkoha-251bce@quoll>
References: <20261103100530.1309928-1-vulab@iscas.ac.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3143932"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:NR7U3jucWneNTAzNcbJbw7b/h4M= sha256:HxCZdghkngoPwn/YpShR0sVIK4dMjXzCKsMPOMNIc00=
	sha1:0EhsTBQyoCNnvSrQ3iirkOU2hIE= sha256:yU0Su58zjZJy9FYkW47/d7OEMO1mrZu2dlSnCyQznB8=
Content-Disposition: inline
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 817241127F0; Tue,  3 Nov 2026 13:39:19 +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 7aNa00i4gol5;
	Tue,  3 Nov 2026 13:39:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355424-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 AA5261127CC; Tue,  3 Nov 2026 13:39:08 +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 0F7CD6116FD; Tue,  3 Nov 2026 10:31:36 +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=1793701582;
	b=lTMZaeVJX8AUvGkS8434iiOCSNWF3IBHpTEVjUOMmrZ79iiQO400sHcpOZ6x+1Xg7iZq
	 7+vmjctisGUScANjNMv5iFaa90W3sYg9VVN8Glm7b7UrR1s5rI8sXg5yRRtwEXH4ZVlT/
	 mNjhlD+99EAbd2/sOJ7oOXuud/rvfTSNfDK4+3I8OjqIavnItB/aEEV3V0ocDaRFxexWQ
	 2ogIVIZS7gKBxgZIQfTMCZQK3jxQ3XKx1gYK0aFquweUbJQqO4BUPFsL5zHztiLWrSkt9
	 zp9L5NgfKkSj9WtXhNaDI1AZHfT82c7bNpARMpXfb0pdFjG0YEqGsUu98ntRb0mCZzA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793701582;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=+tVXS2qXFnFcTdFlcoUpcMZROLwvP5rjxvPBVj72EVo=;
	b=cRXXtbOh2nAVzbOkHS8rkfkZ2YBruxyp2DMlMafoGGFC+orWFtz7kgNFnCVlOBt9/1Sd
	 3xUb5p1sR6a6z5SoejcfddV602kFKFnFQtS5ZkWBdNZbIOml78h+Hjo/j5myuYlKqZqMW
	 EaD3HKZif4nw9/kXI8rZASWT8/URL+Es0Zqd4SFNLII+gH1PiVkPWIyfjsjSNytCjsOY1
	 Ke25uBcs6Y9n1Nz4imQyCcCqh7M4Y8eTnLgsTcvhxBffsVIf1KfjRjN7L1XtLebpnfHT+
	 fLkkEqntp4VQmyvzVNRiGK7oLeYNPTg3AOAeGyXhiTj8jPID+Os1RiJlj+YWs8QlamA==
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=V96M6+aW;
	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 77047608362D;
	Tue,  3 Nov 2026 10:26:22 +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=V96M6+aW
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=1793701571;
	b=TZBBtsA9NZRsv3Nvx5EJBnIt9RzwlAwrhkOsyihkVkflCysUIko4geIQXJSPMtovLoSC
	 xAh+HK8OauQD3rQTThFQ4Xzrv69EtDruCnmluj6z+5GtEWYfjbKets9c54eNPO0Xgl2+w
	 nhdvpa0u2Wcdmk0qQAbrtfbksaNwW9MwRqZy8vNwKa+c5qlndRhRT83jWXhgpjRLEL83h
	 ZLTGYopvAyQ7rUBwtuhQlWPBzerNzv8fsjr5vaBWKU9QbaClhwuwgbQv1Ao5atrjINhMP
	 3NQI3bm/ZyFSCc7blrrGlqs+Zh0ngCDP/ODbCfqjV/iQ9yLq6i69XyFw0Ve9EQhXtGQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793701571;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=+tVXS2qXFnFcTdFlcoUpcMZROLwvP5rjxvPBVj72EVo=;
	b=mQKRLpBvEc3NkURKf/gkt3F0njI3hOgSbdOwbDev3zP9HFZONmubD65d6dvZSJCwBI1I
	 xnKHOl9rhVEGo0WodvqOyE8n07A/nMl16Aw5oDDgqcrziW1/nZ5mEBA9QLtL/KxxPIh3s
	 zyBekJzqR5VVfpock2i4NTvyNxtVLZsGq313lHIauBsTXuO6LQ9/BZumLgfVUbym/6q4/
	 2P4R/+EQ5Thmr7UzLfeJDITKzTraMbPHvXmmyqkpBsttKe+JtSDEnhYqcXq/FTYQfaAi8
	 FQIiOU7+reZR9nPKUarmpVGxziC+pHaPTIFvJtuTKs3oM6ggudCSB+D8CxdAl296zfA==
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=V96M6+aW;
	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 5797E606B13A;
	Tue,  3 Nov 2026 10:26:11 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B2141F00A1E;
	Tue,  3 Nov 2026 10:26:10 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793701571;
	bh=+tVXS2qXFnFcTdFlcoUpcMZROLwvP5rjxvPBVj72EVo=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=V96M6+aWiTTHVj6EbJcdFT+MAlD9HNzEDEOOfCOKlXGFDP6zXRe6tkbF3v7ACN0r7
	 k+uFpQjxwLofHgDmGv3P2OtzI0xREeFM34cKMgZ9Bw4WmtgQ2Tn59o1R+Qfs82y6ih
	 DvHAKn2o3h3XKQy9pAbxQLgPzxtvHsU9sso4ngt3/vRR9OF40hhVuSzNHm+V3Oj/C9
	 zJmJ7+g7zjgveisL8ZhYoYuoR/alUTsef9VNo2TPK4BHDnikvnTPe9/wy+fkEA81UE
	 PHfSc/Pvw2oSzCLx6cIM9sjCMKqY8XxUMkSzScA0hM/amQQZpmoSzVlnOzsVBxPlpF
	 75ldcgmtL4uZQ==
X-Cc: Eric Dumazet <edumazet@kernel.org>, netdev@vger.kernel.org, 
	"David S. Miller" <davem@davemloft.net>, linux-kernel@vger.kernel.org, 
	Potnuri Bharat Teja <bharat@chelsio.com>, Paolo Abeni <pabeni@redhat.com>, stable@vger.kernel.org, 
	Andrew Lunn <andrew+netdev@lunn.ch>, Jakub Kicinski <kuba@kernel.org>
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: <20261103100530.1309928-1-vulab@iscas.ac.cn>