Re: [PATCH net v2] sctp: do not free a new asoc peeled off while sendmsg slept

From: patchwork-bot+netdevbpf

Date: Mon Nov 16 2026 - 18:50:27 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 12 Nov 2026 18:21:49 +0100 you wrote:
> When sctp_sendmsg() creates a new association and sending on it fails
> with anything but -ESRCH, it frees the association. The send can
> sleep in sctp_wait_for_sndbuf(), which releases the socket lock, and
> meanwhile another thread can peel the new association off to a new
> socket. The wait then returns -EPIPE, and sctp_sendmsg() frees an
> association that now belongs to the peeled-off socket, without holding
> that socket's lock.
>
> [...]

Here is the summary with links:
- [net,v2] sctp: do not free a new asoc peeled off while sendmsg slept
https://git.kernel.org/netdev/net/c/f2540da93a11

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html