HomeFreeBSD

Only change DMAP props on DMAP covered memory

Description

Only change DMAP props on DMAP covered memory

When changing memory properties in the arm64 pmap we need to keep both
the kernel address and DMAP mappings in sync.

To keep the kernel and DMAP memory in sync we recurse when updating the
former to also update the latter. There was insuffucuent checking around
this recursion. It would check if the virtual address is not within the
DMAP region, but not if the physical address is covered.

Add the missing check as without it the recursion may return an error.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6238905c5b253c5b8c6a4b66796819c3a0bed637)

Details

Provenance
andrewAuthored on Dec 14 2021, 10:05 AM
Parents
rGaacff95603ed: sys/queue.h: move trashing from SLIST_REMOVE to REMOVE_AFTER, REMOVE_HEAD
Branches
Unknown
Tags
Unknown