Page MenuHomeFreeBSD

tcp: inp_socket is valid through the lifetime of a TCP inpcb
ClosedPublic

Authored by glebius on Oct 19 2022, 10:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 1:47 PM
Unknown Object (File)
Tue, Apr 21, 4:37 AM
Unknown Object (File)
Mon, Apr 20, 5:02 PM
Unknown Object (File)
Sat, Apr 18, 9:51 PM
Unknown Object (File)
Sat, Apr 11, 8:30 PM
Unknown Object (File)
Sat, Apr 11, 8:27 PM
Unknown Object (File)
Thu, Apr 9, 7:34 PM
Unknown Object (File)
Sun, Apr 5, 2:44 PM
Subscribers

Details

Summary

The inp_socket is cleared only in in_pcbdetach(), which for TCP is
always accompanied with inp_pcbfree(). An inpcb that went through
in_pcbfree() shall never be returned by any kind of pcb lookup.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable