Page MenuHomeFreeBSD

D47717.diff
No OneTemporary

D47717.diff

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -4082,7 +4082,19 @@
va = sva;
while (count-- > 0) {
+ /*
+ * pmap_enter() calls within the kernel virtual
+ * address space happen on virtual addresses from
+ * subarenas that import superpage-sized and -aligned
+ * address ranges. So, the virtual address that we
+ * allocate to use with pmap_qenter() can't be close
+ * enough to one of those pmap_enter() calls for it to
+ * be caught up in a promotion.
+ */
KASSERT(va >= VM_MIN_KERNEL_ADDRESS, ("usermode va %lx", va));
+ KASSERT((*vtopde(va) & X86_PG_PS) == 0,
+ ("pmap_qremove on promoted va %#lx", va));
+
pmap_kremove(va);
va += PAGE_SIZE;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 27, 10:32 AM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17816439
Default Alt Text
D47717.diff (765 B)

Event Timeline