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
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28922

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
rG90972f04026a: ktls: Use COUNTER_U64_DEFINE_EARLY for the ktls_toe_chacha20 counter.
Branches
Unknown
Tags
Unknown