Re: [PATCH net] net/smc: hash socket only after full initialisation in smc_sk_init()
| Newsgroups | org.kernel.vger.linux-s390,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178704780864.2000568.4734388817870408144.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>: On Thu, 13 Aug 2026 09:43:15 +0200 you wrote: > smc_sk_init() calls sk->sk_prot->hash(sk) before several fields are > fully initialised: clcsock_release_lock, the saved clcsk_* callbacks, > use_fallback/fallback_rsn, and conn.close_work. Once hash() returns the > socket is visible to concurrent hash walkers, which can then observe > uninitialised state. > > Move hash(sk) to the end of smc_sk_init() so the socket is published > only after it is fully constructed. > > [...] Here is the summary with links: - [net] net/smc: hash socket only after full initialisation in smc_sk_init() https://git.kernel.org/netdev/net/c/8acf691d8017 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html