Index: sys/vm/uma_core.c =================================================================== --- sys/vm/uma_core.c +++ sys/vm/uma_core.c @@ -1691,7 +1691,8 @@ va = (vm_offset_t)mem; m = PHYS_TO_VM_PAGE(pmap_kextract(va)); - pmap_remove(kernel_pmap, va, va + bytes); + if (va >= bootstart && va + bytes <= bootmem) + pmap_remove(kernel_pmap, va, va + bytes); for (; bytes != 0; bytes -= PAGE_SIZE, m++) { #if defined(__aarch64__) || defined(__amd64__) || defined(__mips__) || \ defined(__riscv) || defined(__powerpc64__)