Page MenuHomeFreeBSD

pf: fix pagefault in pf_getstatus()
ClosedPublic

Authored by kp on Sep 23 2021, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 25, 4:20 AM
Unknown Object (File)
Fri, Apr 24, 11:26 PM
Unknown Object (File)
Fri, Apr 24, 1:23 AM
Unknown Object (File)
Sun, Apr 19, 8:26 PM
Unknown Object (File)
Wed, Apr 8, 3:49 PM
Unknown Object (File)
Sat, Apr 4, 10:09 AM
Unknown Object (File)
Mar 13 2026, 8:45 AM
Unknown Object (File)
Mar 6 2026, 4:33 PM

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable