HomeFreeBSD

ipdivert: check that PCB is still valid after taking INPCB_RLOCK.

Description

ipdivert: check that PCB is still valid after taking INPCB_RLOCK.

We are inspecting PCBs of divert sockets under NET_EPOCH section,
but PCB could be already detached and we should check INP_FREED flag
when we took INP_RLOCK.

PR: 254478
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29420

Details

Provenance
aeAuthored on Mar 30 2021, 9:31 AM
Differential Revision
D29420: ip_divert: check that PCB is still valid after INP_RLOCK taking
Parents
rGb013912772ec: bhyve: change vq_getchain to return iovecs in both directions
Branches
Unknown
Tags
Unknown