HomeFreeBSD

pf: don't hold a lock during copyout()

Description

pf: don't hold a lock during copyout()

copyout() can trigger page faults, so it may potentially sleep.

Reported by: avg
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 8b5f4e692b1d1585ecfc6690552650114e3e704e)

Details

Provenance
kpAuthored on Jun 14 2021, 12:04 PM
Parents
rG3a57bb60f4ad: pf: use M_WAITOK where possible
Branches
Unknown
Tags
Unknown