Article View: linux.kernel.netdev
Article #870Re: [PATCH net v3] net/smc: protect clcsock lifetime in smc_getname
From: patchwork-bot+netdevbpf
Date: Thu, 08 Oct 2026 18:50
Date: Thu, 08 Oct 2026 18:50
29 lines
6822 bytes
6822 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 8 Oct 2026 16:44:44 +0800 you wrote:
> smc_getname() dereferences smc->clcsock without holding
> clcsock_release_lock. Link-group termination can release the CLC socket
> through smc_close_active_abort() while the SMC socket is still open,
> for example after shutdown(SHUT_WR).
>
> A getsockname() caller can load smc->clcsock, then the termination worker
> can clear the pointer and call sock_release() before the caller accesses
> clcsock->ops or invokes getname(). This causes a use-after-free; if the
> worker clears the pointer before the load, it causes a NULL dereference.
> The syscall's file reference keeps the SMC socket alive but does not
> prevent asynchronous release of its CLC socket.
>
> [...]
Here is the summary with links:
- [net,v3] net/smc: protect clcsock lifetime in smc_getname
https://git.kernel.org/netdev/net/c/64a6b36b0e18
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179148541452.391001.7821092438083356989.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-343221-linux-kernel-netdev=dewy.ruReferences:
<20261008084444.787449-1-nicoyip.dev@gmail.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-343221-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] net/smc: protect clcsock lifetime in smc_getname Date: Thu, 08 Oct 2026 18:50:14 +0000 Organization: Usenet Network Message-ID: <179148541452.391001.7821092438083356989.git-patchwork-notify@kernel.org> References: <20261008084444.787449-1-nicoyip.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="946578"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:GYw+MFrWAnpVlU0xh+t1HzZnZZ0= sha256:DEnKJ5I5TRk2vmLwP+NIIdQRbZWS+2+YqyhWQJMcbhk= sha1:tK6/TI2Pgnj5Mu7v+HXi6rLPefQ= sha256:b2eN6PzuiHY0zqRm4JL2ERvuRmna6B55iwjnaI03PHY= 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 00B2810F4DB; Thu, 8 Oct 2026 21:53:33 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.341 X-Spam-Status: No, score=-1.341 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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 Q4maOwlcfYM4; Thu, 8 Oct 2026 21:53:29 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343221-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 256A810F4B8; Thu, 8 Oct 2026 21:53:26 +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 C567A457DC; Thu, 8 Oct 2026 18:50:21 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7588C4F5DF6; Thu, 8 Oct 2026 18:50:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BFfpGFzs" 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 5EF784F55D2; Thu, 8 Oct 2026 18:50:16 +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=1791485417; cv=none; b=O1Q+5YwP2cygTkKgytFFTg6FbqquHt6TrPWskY+kxDhRyC9J2O2N2d2uN1PPlmqvx+FoCVhuHHPZyjo/9QQEHgvDMjwDWpaKFVKKE/xGVLpRcV5uARTFyZCSIiONF6ASukeHEBzMF7kNgybiBshhZsbuuQd8JPLmfI3siJFd1uM= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791485417; c=relaxed/simple; bh=TWauTdYi7aFdx//up6fGxPh6MopKTH1dGtHVw6qEgUk=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=GarLNPZbNYvrBzJv/pxvRt36sdSn7dYtNCnUHW88avioXql2U/0M6v4+40sniGM298LlLA04Ndc82sT5obis2YMq1KVMKE/Tk8CmnepeIfn+9SD4qhDa9KdeEqQ3ynj9zIpL97x0fTm/Pu5umKhHsyGFrgfIjhUn12Pvub/i43E= 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=BFfpGFzs; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0751D1F000FF; Thu, 8 Oct 2026 18:50:16 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791485416; bh=YVEM8wubkfgoO6VY6b9IYQ8KVp9Yd8n0IdmY+rRBGSc=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=BFfpGFzsiieIAVfuXPfu/MURAqPT0JE2yLer61po92pKP7i5yaaMpXbWBd5S77Y+/ 2exjrNWIE8Yz5ZrGmdCoH2uGs4EZ5cg8fP9s+7AQF3KSXzObfzUBSl8/TdycypNhZs ClNeepubg5wUDpjKmBUVURKJRlskvSzKnQxnC375oHnI/1Kc5rtshrUkf/JTqxR+HO ensfrtFiK3ZP6igWqCSzE6hievyqC4VENFYWLsPxdlqpHibdK8ghzelMoCYtNMT9tO wLSQldLmJ2LzbMuvUhxQib9EysdTUB9aPFrzs8wIQ0hiHMlAGV9z23x1fz/PGeOcqh e5VNqT9huCP/g== 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 F14CC380CEC8; Thu, 8 Oct 2026 18:50:15 +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: <20261008084444.787449-1-nicoyip.dev@gmail.com> X-Cc: alibuda@linux.alibaba.com, dust.li@linux.alibaba.com, sidraya@linux.ibm.com, mjambigi@linux.ibm.com, tonylu@linux.alibaba.com, guwen@linux.alibaba.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org