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, Sep 12, 5:22 AM
Unknown Object (File)
Sep 8 2026, 6:33 PM
Unknown Object (File)
Sep 5 2026, 10:27 PM
Unknown Object (File)
Sep 5 2026, 3:43 PM
Unknown Object (File)
Sep 5 2026, 3:43 AM
Unknown Object (File)
Sep 4 2026, 11:05 PM
Unknown Object (File)
Sep 3 2026, 5:07 AM
Unknown Object (File)
Sep 3 2026, 3:01 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41662
Build 38551: arc lint + arc unit