HomeFreeBSD

pmap: Fix largemap restart checks in the kernel_maps sysctl handler

Description

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)

Details

Provenance
markjAuthored on Feb 25 2021, 11:49 PM
Reviewer
kib
Differential Revision
D28922: pmap: Fix largemap restart checks in the kernel_maps sysctl handler
Parents
rG18b6283014a2: iflib: Avoid double counting in rxeof
Branches
Unknown
Tags
Unknown