HomeFreeBSD

tcp: drop SYN ACK segment for listening sockets

Description

tcp: drop SYN ACK segment for listening sockets

When a SYN ACK is received for a listening socket, just drop it
instead of killing the SYN-cache entry and send a RST.
This closes the possibility to kill a TCP connection during its
handling in the SYN-cache.

Reviewed by: Nick Banks, Peter Lei
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D53540

(cherry picked from commit 239464e99321ede07664782426ec4e54cd8a618d)

Details

Provenance
tuexenAuthored on Nov 3 2025, 10:50 AM
Reviewer
nick
Differential Revision
D53540: tcp: drop SYN ACK segment for listening sockets
Parents
rG44305e736871: ddb: use %b when showing flags for an inp
Branches
Unknown
Tags
Unknown