Page MenuHomeFreeBSD

Sanity check of SACK holes on retransmissions
ClosedPublic

Authored by rscheff on Jun 2 2022, 4:55 PM.
Tags
None
Referenced Files
F133662900: D35387.diff
Mon, Oct 27, 9:27 AM
Unknown Object (File)
Sun, Oct 26, 10:09 AM
Unknown Object (File)
Sat, Oct 25, 7:04 AM
Unknown Object (File)
Wed, Oct 22, 3:03 AM
Unknown Object (File)
Wed, Oct 15, 3:14 AM
Unknown Object (File)
Mon, Oct 13, 2:09 PM
Unknown Object (File)
Mon, Oct 13, 2:09 PM
Unknown Object (File)
Mon, Oct 13, 2:08 PM

Details

Summary

Adding a few KASSERT() to validate sanity of sack holes, and bail out if sack hole is inconsistent to avoid panicing non-invariant builds.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45822
Build 42710: arc lint + arc unit

Event Timeline

sys/netinet/tcp_sack.c
968

Don't you need to use the SEQ macros for this?

sys/netinet/tcp_sack.c
976

Maybe print something in non-debug case?

sys/netinet/tcp_sack.c
976

When printing them using %d, don't some of them show up as negative numbers? Would %u make more sense?

  • use SEQ_LT / GEQ macros
  • add logging

Thanks. Commiting with 1 week MFC...

This revision was not accepted when it landed; it landed in state Needs Review.Jun 7 2022, 7:41 AM
This revision was automatically updated to reflect the committed changes.