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)
Thu, Oct 9, 11:27 PM
Unknown Object (File)
Thu, Oct 9, 11:27 PM
Unknown Object (File)
Thu, Oct 9, 11:27 PM
Unknown Object (File)
Thu, Oct 9, 7:41 PM
Unknown Object (File)
Sat, Sep 27, 1:21 AM
Unknown Object (File)
Sep 5 2025, 8:22 AM
Unknown Object (File)
Aug 31 2025, 10:29 AM
Unknown Object (File)
Aug 31 2025, 8:28 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