[Bug 258601] kernel panic/pagefault caused by pfctl -s info

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Sep 2021 12:22:06 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258601

--- Comment #13 from commit-hook_at_FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3c9253c2f6d1f076ef35a5538b207a5cc866480f

commit 3c9253c2f6d1f076ef35a5538b207a5cc866480f
Author:     Kristof Provost <kp_at_FreeBSD.org>
AuthorDate: 2021-09-23 08:39:49 +0000
Commit:     Kristof Provost <kp_at_FreeBSD.org>
CommitDate: 2021-09-30 11:51:32 +0000

    pf: fix pagefault in pf_getstatus()

    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
    Reviewed by:    mjg
    MFC after:      1 week
    Sponsored by:   Modirum MDPay
    Differential Revision:  https://reviews.freebsd.org/D32076

    (cherry picked from commit cb13059663e455b3fc69c293dadec53c164490dc)

 sys/netpfil/pf/pf_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Sep 30 2021 - 12:22:06 UTC

Original text of this message