]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In x86 pmap_extract_and_hold()s, handle the case of PHYS_TO_VM_PAGE()
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 4 Jul 2018 21:21:59 +0000 (21:21 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 4 Jul 2018 21:21:59 +0000 (21:21 +0000)
commit84a15fe70da40847e41c1f6a17d8d95891c72851
tree3243b40ae47444528681bc0c0c2a3817c1f8728b
parentff3b992f380514022b2262ef1e4b51243f53d985
In x86 pmap_extract_and_hold()s, handle the case of PHYS_TO_VM_PAGE()
returning NULL.

vm_fault_quick_hold_pages() can be legitimately called on userspace
mappings backed by fictitious pages created by unmanaged device and sg
pagers.

Note that other architectures pmap_extract_and_hold() might need
similar fix, but I postponed the examination.

Reported by: bde
Discussed with: alc
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D16085
sys/amd64/amd64/pmap.c
sys/i386/i386/pmap.c