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)
Fri, Nov 29, 5:39 PM
Unknown Object (File)
Thu, Nov 14, 1:42 AM
Unknown Object (File)
Tue, Nov 12, 3:06 PM
Unknown Object (File)
Thu, Nov 7, 9:02 AM
Unknown Object (File)
Sep 27 2024, 6:34 AM
Unknown Object (File)
Sep 25 2024, 2:17 PM
Unknown Object (File)
Sep 9 2024, 5:16 AM
Unknown Object (File)
Sep 9 2024, 5:16 AM
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