Re: [PATCH net v2] sctp: hold socket lock when dumping endpoints in sctp_diag
[email protected] Thu, 18 Jun 2026 00:20:58 +0000
| Newsgroups | org.kernel.vger.linux-sctp,org.kernel.vger.netdev |
|---|---|
| Message-ID | <178174205813.1875263.14770021083117878767.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: On Mon, 15 Jun 2026 15:36:30 -0400 you wrote: > SCTP_DIAG endpoint dumping was traversing endpoint address lists without > holding lock_sock(), while those lists could change concurrently via > socket operations (e.g., bindx changes). This creates a race where > nla_reserve() counts addresses under RCU protection, but the subsequent > copy may see fewer entries, potentially leaking uninitialized memory to > userspace. > > [...] Here is the summary with links: - [net,v2] sctp: hold socket lock when dumping endpoints in sctp_diag https://git.kernel.org/netdev/net/c/7d8297e26b4e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html