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)
Nov 3 2023, 6:50 PM
Unknown Object (File)
Oct 28 2023, 11:43 PM
Unknown Object (File)
Oct 17 2023, 10:16 AM
Unknown Object (File)
Oct 13 2023, 7:14 PM
Unknown Object (File)
Sep 5 2023, 10:32 AM
Unknown Object (File)
Aug 27 2023, 1:57 PM
Unknown Object (File)
Aug 8 2023, 12:37 AM
Unknown Object (File)
Aug 8 2023, 12:33 AM

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