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
F107076257: D37062.diff
Thu, Jan 9, 6:11 PM
Unknown Object (File)
Thu, Dec 12, 8:53 PM
Unknown Object (File)
Dec 1 2024, 11:33 PM
Unknown Object (File)
Nov 29 2024, 5:39 PM
Unknown Object (File)
Nov 14 2024, 1:42 AM
Unknown Object (File)
Nov 12 2024, 3:06 PM
Unknown Object (File)
Nov 7 2024, 9:02 AM
Unknown Object (File)
Sep 27 2024, 6:34 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 47923
Build 44810: arc lint + arc unit