Re: [PATCH net] tcp: fix potential race in tcp_v6_syn_recv_sock()

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-02-19 22:29:59
Reply to
Eric Dumazet, 2026-02-17
Hello:

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

On Tue, 17 Feb 2026 16:12:05 +0000 you wrote:
Code in tcp_v6_syn_recv_sock() after the call to tcp_v4_syn_recv_sock()
is done too late.

After tcp_v4_syn_recv_sock(), the child socket is already visible
from TCP ehash table and other cpus might use it.

Since newinet->pinet6 is still pointing to the listener ipv6_pinfo
bad things can happen as syzbot found.

[...]
Here is the summary with links:
  - [net] tcp: fix potential race in tcp_v6_syn_recv_sock()
    https://git.kernel.org/netdev/net/c/858d2a4f67ff

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

Thread (3 messages) 3 messages, 3 authors, last reply 2026-02-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help