HomeFreeBSD

tcp: fix the test that a duplicate ACK has no data

Description

tcp: fix the test that a duplicate ACK has no data

When processing a TCP segment, data is removed from the head or
the tail. The test whether a segment has no data on it should
depend on the TCP segment before the removal. Without this,
received segments might trigger a fast retransmit even when they
should not.

Reported by: syzbot+fc97a2b5a0f7ea161161@syzkaller.appspotmail.com
Reviewed by: Peter Lei
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51425

Details

Provenance
tuexenAuthored on Jul 19 2025, 1:03 PM
Reviewer
peter
Differential Revision
D51425: tcp: fix the test that a duplicate ACK has no data
Parents
rG4be9c6f38e78: clnt_rc.c: Fix the case where a TLS handshake fails
Branches
Unknown
Tags
Unknown