]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pmap: Fix largemap restart checks in the kernel_maps sysctl handler
authorMark Johnston <markj@FreeBSD.org>
Thu, 25 Feb 2021 23:49:47 +0000 (18:49 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 1 Mar 2021 00:32:58 +0000 (19:32 -0500)
commit113bd64cdf4ef3f54fffcd9874ae7ec07afd882e
tree8d6838eaef9859649c89261176030741a09ce345
parent18b6283014a291f5fe546092ee16d774a0102691
pmap: Fix largemap restart checks in the kernel_maps sysctl handler

The purpose of these checks is to ensure that the address of the
next-level page table page is valid, since nothing is synchronizing with
a concurrent update of the large map and large map PTPs are freed to the
system.  However, if PG_PS is set, there is no next level.

Approved by: re (gjb)
Reported by: rpokala
Reviewed by: kib
Tested by: rpokala
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28922

(cherry picked from commit aac25e222525780db8939d07a594d3e090c0a148)
(cherry picked from commit 5966aae9c7c25707c785ec056cb8462a037a480e)
sys/amd64/amd64/pmap.c