Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115641218
D47717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
765 B
Referenced Files
None
Subscribers
None
D47717.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D47717: Tweaks for pmap_qremove() and transient mappings
Attached
Detach File
Event Timeline
Log In to Comment