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
F132407348: D12267.id32766.diff
Thu, Oct 16, 4:30 PM
Unknown Object (File)
Fri, Oct 10, 8:50 PM
Unknown Object (File)
Wed, Oct 8, 10:21 AM
Unknown Object (File)
Mon, Oct 6, 9:38 PM
Unknown Object (File)
Tue, Sep 30, 2:08 AM
Unknown Object (File)
Sep 13 2025, 4:06 PM
Unknown Object (File)
Sep 11 2025, 10:36 PM
Unknown Object (File)
Sep 10 2025, 5:57 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable