HomeFreeBSD

tcp: inp_socket is valid through the lifetime of a TCP inpcb

Description

tcp: inp_socket is valid through the lifetime of a TCP inpcb

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.

Reviewed by: tuexen
Differential revision: https://reviews.freebsd.org/D37062

Details

Provenance
glebiusAuthored on Nov 8 2022, 6:24 PM
Reviewer
tuexen
Differential Revision
D37062: tcp: inp_socket is valid through the lifetime of a TCP inpcb
Parents
rGada90cb978e1: tcp: remove INP_DROPPED check from notify functions
Branches
Unknown
Tags
Unknown