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
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D53540

Details

Provenance
tuexenAuthored on Nov 3 2025, 10:50 AM
Reviewer
nick
Differential Revision
D53540: tcp: drop SYN ACK segment for listening sockets
Parents
rG40d216183821: cron: Use reallocarray() to prevent integer overflow
Branches
Unknown
Tags
Unknown