Page MenuHomeFreeBSD

pf: fix pagefault in pf_getstatus()
ClosedPublic

Authored by kp on Sep 23 2021, 8:42 AM.

Details

Summary

We can't copyout() while holding a lock, in case it triggers a page
fault.
Release the lock before copyout, which is safe because we've already
copied all the data into the nvlist.

PR: 258601
MFC after: 1 week
Sponsored by: Modirum MDPay

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.