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
rG719f6456fbde: dummynet: free(NULL, M_DUMMYNET); is safe
Branches
Unknown
Tags
Unknown