Article View: linux.kernel.netdev
Article #13214Re: [PATCH] mlxsw: spectrum_ptp: release parsing depth on MTPPPC write failure
From: Simon Horman
Date: Mon, 09 Nov 2026 13:22
Date: Mon, 09 Nov 2026 13:22
34 lines
9222 bytes
9222 bytes
On Sat, Nov 07, 2026 at 12:07:17PM +0000, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue(s) to consider. > > Critical: 0 · High: 1 (1) · Medium: 0 · Low: 0 (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). > > - [High] The patch fixes the enable-path leak but adds the same leak on > the port-removal path. I believe the issue flagged here is pre-existing. While it does affect this patch, the patch is still an improvement in its own right. I would therefore ask for follow-up on the concurrency concern raised here, but I do not think it should block progress of this patch. And while the separate bot email, requesting information on how the problem was found, should be answered, overall this looks good to me. Reviewed-by: Simon Horman <horms@kernel.org> > > Pre-existing issues: > - [High] This problem wasn't introduced by this patch, but > mlxsw_sp1_ptp_mtpppc_update() has no serialization between its two… > - [Low] The new rollback in mlxsw_sp1_ptp_mtpppc_update() > (spectrum_ptp.c:1223-1226) calls mlxsw_sp_parsing_depth_dec(). ...
Technical Details
Message-ID:
<20261109132226.GL18859@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-359327-linux-kernel-netdev=dewy.ruReferences:
<20261103102851.1340480-1-vulab@iscas.ac.cn> <179405323723.994134.11947248661617076904@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-359327-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] mlxsw: spectrum_ptp: release parsing depth on MTPPPC write failure Date: Mon, 9 Nov 2026 13:22:26 +0000 Organization: Usenet Network Message-ID: <20261109132226.GL18859@horms.kernel.org> References: <20261103102851.1340480-1-vulab@iscas.ac.cn> <179405323723.994134.11947248661617076904@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="364942"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:EG+yZe1tdpyL1q+/RRoqjatc7zg= sha256:2oEM4Rt7KhbrOWz4cevhdquRErtT/Whd0DlWFjvGlWU= sha1:tAZaMdzTtJ/jzB6WGPeFuM37IhQ= sha256:rFNO6JYfTJscs8d9/0WuqWS8OtP52fBkwOrqPV/QQtQ= 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 B0934113801; Mon, 9 Nov 2026 16:26:14 +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 tW21eVUtKUPd; Mon, 9 Nov 2026 16:26:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359327-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 6AA5C113780; Mon, 9 Nov 2026 16:26:03 +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 D460D61DCD7; Mon, 9 Nov 2026 13:22:39 +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=1794230557; b=Qxcvd4ElfoXlSXQKZ5sdVh85IphHnbUozTYpL9g+AHlNl9GP1oGNxA7I05OfYEdNuBGd YdffpUlnKR7bIMIAHH9USWPmc8dOH33x3CUl+22cKQZ/CB338eleJ2XWYPI4MV4F36ave MTEYMDL45OpNwKI2m7ILD7JAxpwOhhw3HVaInaFfH/Zdv97ea7IEpm9bbwAzxMiZo4+kP KG8wuLVMnww2hDDSdjTDIFoeE9Yhp6Tyu9jS2fLinqYD5sn8PTqu9wTvD4lqDdlj9LPYz eC+/lwrpagnnruy1wpsCw3i/6/isN9m4Nq0RDKlrZkXvZM9j02KJPzYQixvU7WUzRWA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794230557; 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=kA2godbZnBHxyz71XZOEW+H2DRSk3CIDmt0/jBvvJU4=; b=r4D33XYWLClozYscu0OzRe1e6Mnu0MZtUKZOKbmMPI96Drdv9H2U6MhHUfvyIHrVNN/d +vhK1o+bmLbXubBuT5pBRjVD+GmN69vnbdfzSQVcl3d6oOhDOYPMtQ9qWz9MHNF6gefLb 7fPYXKUkPL2Ux+4eXGGOT/LQgQJWwfNGyADce+jk9UP14KClb+cIhwrfkdL8oxXIXG1yu wxeSmnf1IJlhz6aSZc0B1TsidZyxNIOhpEXY/ho8KcmLSK/k544ZhVU2G+XdEP4c+mC9O k4Brik0/ZWlaq55g9ZVAJrVLGOl1ThH2pB7uw70FZkHx6ht3sZtnRBMURjfuuubbujA== 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=G4rTHREd; 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 A2FC3606A334; Mon, 9 Nov 2026 13:22:37 +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=G4rTHREd 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=1794230551; b=3P3EBtg1X8B6F1oryHtgov2eQoeUNAmbkrgLAOhJQBVBWWF10FrQwulbVV3xq7srkSbS 0NyMLUv0TOfzF4ibYKvX3JVExaaZ48KJBEz00BbjO2UfEbO+OAoAuynp/+QzYyY1YU0Gz YdLc+1sVS/T72VxQM1zPnMo1JflUpQ7JSytx9LoBftXmasuNUbjtYiAxAqIDytpnNfhI4 yz0rLmB6akqZiOPOq/JKEK7MRxX92hU8CPdGV+JtIZiNWH1g4kVqqGDhoBUI6eNbo7o5V G3iW59nGtifBOhRBxGwBcO764DbKfydmJ/EqVpMdASZ+T3NwssgOw7O0mP+3/Xm1nlQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794230551; 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=kA2godbZnBHxyz71XZOEW+H2DRSk3CIDmt0/jBvvJU4=; b=biHvQbrH6zmfB2bxSzGfqVpzyqGIuQVhY5Oah81yFJbufjHEKXCNabfeJNLVJ4bRyLz0 H4ecEiITXBFxVYguBDz+mhVV+FicWC/NN8kt/oVBeV+UPpVTTcEy4Kysn3+eWBAQLJ046 uoo5nJIjno2lG/8RXTAxdUUxIwmrKIWRlr8SP8f9BCVYjtgZya0LcDoptrBVMFLg1043O vxkZlnO72JPWotfT3c90ZHc6S6+/Sli1wMxbOJMRHX4ryX/a6AerwtpQCKAnQXd+gZweQ 7Wm+dmWJ7+DAYB9S57LEmSFPb66vNh4cGAHxjrleI3+uhdTxX5Nfiqcf+1Y78IUF6pQ== 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=G4rTHREd; 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 84F60606A321; Mon, 9 Nov 2026 13:22:31 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2249F1F008BF; Mon, 9 Nov 2026 13:22:28 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794230551; bh=kA2godbZnBHxyz71XZOEW+H2DRSk3CIDmt0/jBvvJU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=G4rTHREdwR0I+nKNYEBwCJqYr/+YU/uakCfflvjUoZ1IKVaSmgE7HBHoTQqEHoT1i Bmh0WdnTR9YXJYcHVoN7FeTFFAe/A6b66Dw+q8lTZ93B/Z/S7NExNQO79DHLPWzcr4 DbXy2i2Y+87zuahqSSK/9Fe0AqZXj//KA8DtwkMH0Dpf8qXCgHwrYR0CzItm6aFdG1 M9BEGONmuLdcUUJclzb1oh1FnL7EG7RkvKrSdktfIEGYLAamcKqNdeTOSI+O4KrY18 3FUqKafFOMIlGCU3bXECa9PRaqXQDwbSM6+QlQa0DivutJfwD+tX6EeK/7NLo+rRBe lxIR02ANX54wA== X-Cc: vulab@iscas.ac.cn, idosch@nvidia.com, petrm@nvidia.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: <179405323723.994134.11947248661617076904@kernel.org>