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.

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)

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
rG86ebf4d3e12c: pf: Fix incorrect fragment handling
Branches
Unknown
Tags
Unknown