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
F154384670: D37062.id.diff
Tue, Apr 28, 6:29 AM
F154372745: D37062.id112785.diff
Tue, Apr 28, 4:40 AM
Unknown Object (File)
Fri, Apr 24, 2:05 PM
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
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