Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167559659
D27885.id81589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
628 B
Referenced Files
None
Subscribers
None
D27885.id81589.diff
View Options
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
--- a/sys/vm/uma_core.c
+++ b/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
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 4:35 PM (1 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37153042
Default Alt Text
D27885.id81589.diff (628 B)
Attached To
Mode
D27885: uma: Avoid unmapping ranges in the direct map
Attached
Detach File
Event Timeline
Log In to Comment