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, 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
Unknown Object (File)
Sep 5 2024, 4:53 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 47923
Build 44810: arc lint + arc unit