diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-09-23 08:39:49 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2021-09-30 11:51:32 +0000 |
commit | 3c9253c2f6d1f076ef35a5538b207a5cc866480f (patch) | |
tree | 2c822cc8fff29029f079aaa45c53fc900ea923c9 /lib/libbluetooth | |
parent | cc8e726c85bee3f3da0fb02c12028f2310a7ee17 (diff) | |
download | src-3c9253c2f6d1f076ef35a5538b207a5cc866480f.tar.gz src-3c9253c2f6d1f076ef35a5538b207a5cc866480f.zip |
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)
Diffstat (limited to 'lib/libbluetooth')
0 files changed, 0 insertions, 0 deletions