Date: Thu, 23 Sep 2021 19:58:36 +0000 From: bugzilla-noreply@freebsd.org To: pf@FreeBSD.org Subject: [Bug 258601] kernel panic/pagefault caused by pfctl -s info Message-ID: <bug-258601-16861-bf0r6rsSwQ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-258601-16861@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258601 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=cb13059663e455b3fc69c293dadec53c164490dc commit cb13059663e455b3fc69c293dadec53c164490dc Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2021-09-23 08:39:49 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2021-09-23 19:56:59 +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 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258601-16861-bf0r6rsSwQ>
