From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796198343; b=rrEUwswG0A5wuJYFcnXGB39+U8PEI1hvY4aVJcRA5gIjj0p6tsYsWMR/AhprwXJHsoUl IDqVrDK85/JSSVFjz/sR5QSuk2+ttRX9eaIKn+vsZQd2RaeNzKxKJOe0XHyhxoXI30OYL jdlfc48jISIOcUlF+E2RrJiiY9erpfHLpVD6F/K7FELc+FpMiHGu1nmS85d9+7ARUaEIY XQpB5wuBXBWhUFEH06si/hvIcM2tFIGq1H3s85pfWwuDiKbxWYZ+tJ/Fmm5EBJNaWP2Fe bjJLXRZYqHqrbLrR3tqLBZKwvyhcICsWNhNYDEPbp3cHyScw+Q6/yX+DIkcpES7KtEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796198343; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=PEDn1N7gwDS5MvNZEqejB7lwqV0HzsteWe2JVDxV4SE=; b=v0iibD/ZFe6OqwnR2JXbEOQMzvm+mILorABgLK0M1Wfq1M3Y+6Pu0cQKvAjKUVcQwMOw DWY2PftgV/vRu1eNqtGB49svwT9LOVwjjkC3ejCzDsS76jBJXOkO2Dt31kqHi4S6mEAd+ 6Zb9IqTHuRuhHF4rFM36jfaFx3xRUq4ETesH4Jn1E+mqWkC83Fd2V0If+JX/Yp8B9T31d KcMPURBO5zBLbFiDU6Ep+kIINi9bg8lVpDKg/siXuhG112eV1NN6hx0sWu6WmFaJZ1yLc zUxpeRkKChr9Vxd3zmkV6Bb2RJ2abSXdDH5iq8i0e+mvWdI/MuV/4jxxWS5BEsJIsNA== 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=nR19kX3e; arc=none smtp.remote-ip=100.103.45.18 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 BA407606A32D; Wed, 2 Dec 2026 07:59:03 +0000 (UTC) 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=nR19kX3e Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAD711F0092F; Wed, 2 Dec 2026 07:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796198343; bh=PEDn1N7gwDS5MvNZEqejB7lwqV0HzsteWe2JVDxV4SE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nR19kX3eYCq11M5Soyd8DoMeumSP2HAMoY/NAKE1uYKj/zbVmxAA3IO1DIfuZ3qtn YLcJ0stZowNGnIXuSY1OMdF9MMaNxQee2p7ubEQQ2rSVpCtoug8LzUjej1c2MRu3dX NQV+IaWlmOgVAVUQAlHjw1E6QewH7kqQBO7iKnPRA27WgK9ZXAA65AIGb5TnCJ68Sp wdPOHfEHHtPBv8EP6CoM6XcRoMai0lRjEHkrgSY7ra6hUbfYLHMEvhblRm2AImHwCa d1AZsrHYOUNedlc7nvGS/J49j0ZDebvvEsYt/IcdaYNZunnxMv36duIGUadYuhktS/ elNYY3cCPd95g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v3 1/3] net/smc: keep clcsock until socket release Reply-To: sashiko-reviews@lists.linux.dev To: "Mahanta Jambigi" Cc: linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261201075815.2159547-2-mjambigi@linux.ibm.com> References: <20261201075815.2159547-1-mjambigi@linux.ibm.com> <20261201075815.2159547-2-mjambigi@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 07:59:02 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net/smc: missing Fixes trailers for clcsock asynchronous release fix -- commit 08763129cf10acd72cc917830436afbc4ff7796a Author: Mahanta Jambigi > net/smc: keep clcsock until socket release > > The clcsock of an SMC socket can be freed from asynchronous contexts: > link group termination reaches smc_close_active_abort() and peer close > reaches smc_close_passive_work(), and both can run while the socket is > referenced by an open file. A task that uses the fd then operates on a > released socket; this was found by code inspection, not from a reported > regression. > > Free the clcsock only when no socket file can reference it: from the > release paths, and from the abnormal close paths only once the socket > has no file left. __smc_release() now tears the connection down before > releasing the clcsock, which is safe because smc_conn_kill() and > smc_close_passive_work() return early once conn->freed is set, so a > clcsock can stay allocated until the application closes the socket. > > Signed-off-by: Mahanta Jambigi [Severity: Low] This fixes premature asynchronous release of smc->clcsock in __smc_release(), smc_close_passive_work(), and smc_close_active_abort(). Should this include: Fixes: b03faa1fafc8 ("net/smc: postpone release of clcsock") Fixes: 81cf4f4707af ("net/smc: remove close abort worker") Fixes: 42bfba9eaa33 ("net/smc: immediate termination for SMCD link groups= ") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201075815.2159= 547-1-mjambigi@linux.ibm.com?part=3D1