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)
Sun, Sep 22, 8:15 PM
Unknown Object (File)
Sun, Sep 22, 5:12 PM
Unknown Object (File)
Fri, Sep 20, 7:19 PM
Unknown Object (File)
Tue, Sep 17, 9:20 PM
Unknown Object (File)
Sun, Sep 15, 5:48 PM
Unknown Object (File)
Sun, Sep 15, 3:25 AM
Unknown Object (File)
Tue, Sep 10, 2:11 PM
Unknown Object (File)
Tue, Sep 10, 9:02 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