HomeFreeBSD

inpcb: use locked variant of prison_check_ip*()

Description

inpcb: use locked variant of prison_check_ip*()

The pcb lookup always happens in the network epoch and in SMR section.
We can't block on a mutex due to the latter. Right now this patch opens
up a race. But soon that will be addressed by D33339.

Reviewed by: markj, jamie
Differential revision: https://reviews.freebsd.org/D33340
Fixes: de2d47842e8

Details

Provenance
glebiusAuthored on Dec 14 2021, 5:38 PM
Reviewer
markj
Differential Revision
D33340: inpcb: use epoch protection when doing prison checks
Parents
rG0e6b06d5c871: x86: add a comment providing source for numbers in legacy XSAVE area layout
Branches
Unknown
Tags
Unknown