Thread (2 messages) flat view 2 messages, 2 authors, 2d ago

Re: [PATCH net] sctp: clear control chunk transport if it is being removed

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-06 16:51:10
Also in: linux-sctp

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  5 Aug 2026 11:18:40 -0400 you wrote:
sctp_make_heartbeat_ack() caches the destination transport in
chunk->transport without taking a reference. When src_out_of_asoc_ok is
enabled, the HEARTBEAT ACK may remain queued on control_chunk_list instead
of being transmitted immediately.

If the peer transport is removed while the chunk is still queued,
sctp_assoc_rm_peer() drops the transport and schedules it for RCU freeing,
but only clears cached transport pointers in out_chunk_list.  The queued
control chunk therefore retains a dangling transport pointer.

[...]
Here is the summary with links:
  - [net] sctp: clear control chunk transport if it is being removed
    https://git.kernel.org/netdev/net/c/c9158ceaf277

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help