Page MenuHomeFreeBSD

tcp: clear SACK state when scoreboard is forcefully freed
ClosedPublic

Authored by rscheff on Oct 11 2023, 8:02 PM.
Tags
None
Referenced Files
F150376927: D42162.id.diff
Tue, Mar 31, 4:49 PM
F150319447: D42162.id128613.diff
Tue, Mar 31, 4:06 AM
F150310995: D42162.id.diff
Tue, Mar 31, 2:49 AM
Unknown Object (File)
Mon, Mar 30, 3:40 AM
Unknown Object (File)
Tue, Mar 17, 1:03 PM
Unknown Object (File)
Feb 27 2026, 2:22 AM
Unknown Object (File)
Feb 12 2026, 6:21 AM
Unknown Object (File)
Jan 14 2026, 1:41 AM
Subscribers

Details

Summary

When a RTO happens during an on-going SACK loss recovery
episode, the internal summary accounting is not cleared.
This may lead to subsequent errors in calculations
(e.g. IsLost()).

PR: 274406
Reported by: pho

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 11 2023, 8:06 PM
sys/netinet/tcp_sack.c
891

Better keep the fields in order like in the struct sackhint definition.

tp->sackhint.delivered_data = 0;
tp->sackhint.sacked_bytes = 0;
tp->sackhint.hole_bytes = 0;
tp->sackhint.lost_bytes = 0;

This change fixes the panic I saw.

rscheff edited the test plan for this revision. (Show Details)
rscheff added inline comments.
sys/netinet/tcp_sack.c
891

I trust gcc to do simple reorders like this for more effective data access. Already committed to fix an ongoing panic.