Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabe…@redhat.com>:
On Tue, 24 Nov 2026 18:06:00 +0000 you wrote:
> When inet_csk_listen_start() is called on a socket that has not been
> explicitly bound, sk->sk_prot->get_port() allocates an ephemeral port
> and links the socket into bhash and bhash2 without setting
> SOCK_BINDPORT_LOCK. If sk->sk_prot->hash() then fails (for example, when
> a prior failed connect() left icsk->unhashed_state set to TCP_SYN_SENT
> so inet_hash() returns -EINVAL), inet_csk_listen_start() resets sk_state
> to TCP_CLOSE and returns the error without releasing the newly acquired
> port.
>
> [...]
Here is the summary with links:
- [net,v2] inet: release newly acquired port on inet_csk_listen_start() hash error
https://git.kernel.org/netdev/net/c/7c13d5d5afb4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html