Page MenuHomeFreeBSD

Fix an infinite loop in tcp_tw_2msl_scan() when an INP_TIMEWAIT inp has been destroyed before its tcptw with INVARIANTS undefined.
ClosedPublic

Authored by jch on Sep 7 2017, 3:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 4:59 PM
Unknown Object (File)
Mon, Dec 9, 6:09 AM
Unknown Object (File)
Thu, Dec 5, 6:21 PM
Unknown Object (File)
Fri, Nov 29, 11:14 PM
Unknown Object (File)
Sat, Nov 23, 8:34 PM
Unknown Object (File)
Oct 19 2024, 4:21 PM
Unknown Object (File)
Oct 18 2024, 12:35 AM
Unknown Object (File)
Oct 6 2024, 12:01 PM

Details

Summary

Fix an infinite loop in tcp_tw_2msl_scan() when an INP_TIMEWAIT inp has been destroyed before its tcptw wint INVARIANTS undefined.

This is a symmetric change of r307551:

A INP_TIMEWAIT inp should not be destroyed before its tcptw, and INVARIANTS
will catch this case. If INVARIANTS is undefined it will emit a log(LOG_ERR)
and avoid a hard to debug infinite loop in tcp_tw_2msl_scan().

Reported by: Ben Rubson, hselasky
Submitted by: hselasky
Tested by: Ben Rubson, jch
MFC after: 1 week
Sponsored by: Verisign, inc

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 11413
Build 11773: arc lint + arc unit