Article View: linux.kernel.netdev
Article #12793Re: [PATCH] net: cxgb4: do not leak a PTP skb when the Tx queue is busy
From: Simon Horman
Date: Sun, 08 Nov 2026 15:24
Date: Sun, 08 Nov 2026 15:24
36 lines
9260 bytes
9260 bytes
On Sat, Nov 07, 2026 at 11:03:21AM +0000, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 2 potential > issue(s) to consider. > > Critical: 0 · High: 0 (1) · Medium: 1 · Low: 1 (1) > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [Medium] The patch splits the claim on adap->ptp_tx_skb into a NULL > check at the top of cxgb4_eth_xmit() (sge.c:1526) and a store about… The central issue here is the one above. It seems to me that either this is a pre-existing problem, in which case the patch description should be updated, or it is a new problem that needs to be resolved in the context of this patch-set. And either way I think that a v2 is required. > - [Low] The commit message lists "an unsupported FCoE offload" as one of > the out_free paths that leaks the PTP reference. > > Pre-existing issues: > - [High] This problem wasn't introduced by this patch, but the consumer > side of adapter->ptp_tx_skb has no synchronization. > - [Low] This problem wasn't introduced by this patch, but > cxgb4_eth_xmit() still sets SKBTX_IN_PROGRESS (sge.c:1528) before the… ... -- pw-bot: changes-requested
Technical Details
Message-ID:
<20261108152421.GD18859@horms.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-358791-linux-kernel-netdev=dewy.ruReferences:
<20261103100530.1309928-1-vulab@iscas.ac.cn> <179404940199.994134.17549120390579622204@kernel.org>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-358791-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] net: cxgb4: do not leak a PTP skb when the Tx queue is busy Date: Sun, 8 Nov 2026 15:24:21 +0000 Organization: Usenet Network Message-ID: <20261108152421.GD18859@horms.kernel.org> References: <20261103100530.1309928-1-vulab@iscas.ac.cn> <179404940199.994134.17549120390579622204@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="150562"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:6r2zIRpDApIBmDzfyOPyFYFu3Fs= sha256:IRZ2uPYs7SLzg93Ku9NPcw6UuznUEADbe3qBJDyJb7o= sha1:wOgIkaiPicsgYM1Thi9AVMBNI2I= sha256:FR3qZZeSj2ngAah8SfFyRowFocEiOv7XuSnPusTMJGs= 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 EB4591135AD; Sun, 8 Nov 2026 18:26:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 FDcYB5cwIwpH; Sun, 8 Nov 2026 18:26:00 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358791-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 0EBC711353C; Sun, 8 Nov 2026 18:25:51 +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 8697E49D48; Sun, 8 Nov 2026 15:24:32 +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=1794151472; b=RWdTGb1KVgIJ51k9b/t+X5ReWpUDA3FLr51sRi6/Xf4mPUhW/0uoJcJfrS9AnJjxuMfF I6KI6VnvOodTTO6q7IwJn95Aqy+9bP4qInXmob3KawgvEPqBk/IDNzp+iEo8ZseIzj3wj 621p3bndBuEqRRcFYsG/kdI129CfGsCSfQJaynyXfM1a+cVdxbz9cf6ejddQjDL63+rJo hX58GFUnR33HYKoG5Ltid5ern53VpvBe+wWZjSKyTcSJSOJ/3U9jjPxZFkjUpAd5VGKQp srYJoaYCOlkpBhiQuR3m4b3+iyPHmVdwKXuMAryiK5UE5LF9yB9wO+4vBls/W2KeiIQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794151472; 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: Content-Transfer-Encoding:In-Reply-To; bh=cL5DYST1xkR3PBaZVQ0xwzE8LOx731rdskN0G11WmzQ=; b=sYNmAvMmzJQudETQdgflsXS7ZZQKKlW0WE+Nx9NGxG2IdnJNnvmQn3GCxyJhBU+4U1mf ma3Y3j/Ddw3vDqt0Mccn/1Ocoh1dH96l839Qz86YOtoMtnEsMB/M3G2fw7jHnLayzjPtk JdS5fJFGQrUTKrQaK4k34zplo9EE9KQLOWkKjPi37iYP9rDvZ8MSiHlz0RxDb/96VxTwU oDrtJR/l+/ESqNYdqiFDCE7zRQAJBa73yKkzIWLiLHkjHAS79WW45W/HMOZa0KQAt63KZ RiEYm1yV7JscjIeEEg8GSNi8JIbinm+sNwq9B3+3onoAnWnsRjFGYmTBAdUKaN2tLPQ== 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=nEdq+0fh; 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 5ECD7606A321; Sun, 8 Nov 2026 15:24:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nEdq+0fh 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=1794151466; b=3gdiUVr92Cek9iG8EECOLRrVjCfqNYYAMYL6dWqVvyCcYWfHWBA6Y/gExmv2G0TuaJt4 J7NSS2Z716FE9YnbmI38UL0aoYo6qJNRFi/GrY6r0BoeWiVZJK/1h5khFfhr8nCI1nfHk DqrVlcZdGOYMOZtiS5+3+ZlY4lOKz7h8FBJXrdYEWV9dkGaMq8xzFu7Ah7zkahUI1x36D h17Eh32fsF3TU4DywVtHpx6Qs+cFnvzBvoFnD/mCOJ66v3Xw34BkSFyPOU8LLURzMZuAa 1y02KNkrSUGQrKs02VjtBN5cbLrmZwBm9RnSqyMy+B748TNDKjCBx4PlwN7BB80gYoA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794151466; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=cL5DYST1xkR3PBaZVQ0xwzE8LOx731rdskN0G11WmzQ=; b=ezrbh4JsvBh34G7g9eroYr3uCxB/IFNSrYUTi89uhWeyOMz93Kx28A7sisIvb3tAJqjn DmtU8HV2/hNtp0eP9JlEMlEa4u91o/CYEjeEvonEB3thIejH5PoQjdRZMsWOD6g9Yy8u/ Ob2J5pagcQ4pKGZ9tRvK/HXkfNBFo4Ki4Q7CMNfToWjTcEYBMVYxDLyEHitrNlv6IHtVd ldmkA0WTvHqrZwRUdLjNYOTyxr+qxMoAlk/11KeIxF2OZJa478fuLh8iiSCVlbsR/C3qN XmFHyKACgNNnbfUQYFsl5CT9w74fFDGeYmzXVyap7UDQyRCa4FlGCG/fgK0+Rh2DyXQ== 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=nEdq+0fh; 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 338C8606A33E; Sun, 8 Nov 2026 15:24:25 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BA0F1F008A4; Sun, 8 Nov 2026 15:24:23 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794151465; bh=cL5DYST1xkR3PBaZVQ0xwzE8LOx731rdskN0G11WmzQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nEdq+0fhmZGTJuVlLBCVuyaNRGqfIwGRrFBvxr39YuRhqd/ifnt0xIwyC3mN+aWkT YQ3whL++WbjKMpa3X5WKwPfGBicn6UOCMOPpuzKqSj1OvKJ5tmetLVWJiPtATrxhhq cDMatYpKpjvcXgfQ58lHWcCq6q9NRG69X1nwftwGBLauRd6dR0saym6Ie5/cw4lZNR ad/xoRa9xohiFpG04LrFFYSrJf8+FRziusot+DDKHrvEMbdh5iSBHmJVCCnUba5yYC PopTxWlNLqPqBEZ29TCga/Q5BBhJYMFPtPDzSSpElI3kH8JzgCRj/w5PPHH8Cexks3 YLl8/0u+fyFlQ== X-Cc: vulab@iscas.ac.cn, bharat@chelsio.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.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: <179404940199.994134.17549120390579622204@kernel.org>