]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix fault_type handling in vm_map_lookup().
authormarkj <markj@FreeBSD.org>
Fri, 6 Dec 2019 23:39:08 +0000 (23:39 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 6 Dec 2019 23:39:08 +0000 (23:39 +0000)
commit17df625c0f7b78bd5df88965b38213a909360b80
tree6e12d30be4b8f743f55a1ff1ff3bede234cad87c
parent590f666c03f001757e59dce936ef61d11f086c91
Fix fault_type handling in vm_map_lookup().

Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by: Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by: kib
MFC after: 3 days
Github PR: https://github.com/freebsd/freebsd/pull/419
Differential Revision: https://reviews.freebsd.org/D22683
sys/vm/vm_map.c