Re: [PATCH net] tcp: fix CA module refcount underflow in tcp_v4_syn_recv_sock()

From: patchwork-bot+netdevbpf

Date: Mon Nov 30 2026 - 11:10:38 EST


Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:

On Tue, 24 Nov 2026 14:26:24 +0800 you wrote:
> Issue found by sashiko [1].
>
> tcp_v4_syn_recv_sock() creates the child with tcp_create_openreq_child(),
> which inherits icsk->icsk_ca_ops from the listener without taking a
> reference. The reference is only taken later in tcp_ca_openreq_child().
> If inet_csk_route_child_sock() fails in between, we go to put_and_exit
> and tcp_done() ends up in tcp_cleanup_congestion_control(), which puts
> the reference unconditionally. The one dropped belongs to the listener.
>
> [...]

Here is the summary with links:
- [net] tcp: fix CA module refcount underflow in tcp_v4_syn_recv_sock()
https://git.kernel.org/netdev/net/c/431f957cb67c

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