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)
Sun, Jun 16, 8:36 PM
Unknown Object (File)
May 13 2024, 8:23 AM
Unknown Object (File)
May 8 2024, 5:24 PM
Unknown Object (File)
May 7 2024, 10:05 PM
Unknown Object (File)
Apr 28 2024, 12:44 AM
Unknown Object (File)
Apr 27 2024, 7:38 PM
Unknown Object (File)
Jan 13 2024, 2:11 AM
Unknown Object (File)
Dec 26 2023, 5:15 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