Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106947254
D27885.id81488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D27885.id81488.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D27885: uma: Avoid unmapping ranges in the direct map
Attached
Detach File
Event Timeline
Log In to Comment