Page MenuHomeFreeBSD

D27885.id81488.diff
No OneTemporary

D27885.id81488.diff

Index: sys/vm/uma_core.c
===================================================================
--- sys/vm/uma_core.c
+++ sys/vm/uma_core.c
@@ -1691,7 +1691,13 @@
va = (vm_offset_t)mem;
m = PHYS_TO_VM_PAGE(pmap_kextract(va));
- pmap_remove(kernel_pmap, va, va + bytes);
+
+ /*
+ * startup_alloc() returns direct-mapped slabs on some platforms. Avoid
+ * unmapping ranges of the direct map.
+ */
+ 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__)

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 9:53 PM (3 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15726883
Default Alt Text
D27885.id81488.diff (665 B)

Event Timeline