Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137065400
D18720.id52499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D18720.id52499.diff
View Options
Index: sys/riscv/riscv/pmap.c
===================================================================
--- sys/riscv/riscv/pmap.c
+++ sys/riscv/riscv/pmap.c
@@ -1297,17 +1297,13 @@
("pmap_release: pmap resident count %ld != 0",
pmap->pm_stats.resident_count));
- m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)pmap->pm_l1));
- vm_page_unwire_noq(m);
- vm_page_free_zero(m);
-
- /* Remove pmap from the allpmaps list */
mtx_lock(&allpmaps_lock);
LIST_REMOVE(pmap, pm_list);
mtx_unlock(&allpmaps_lock);
- /* Remove kernel pagetables */
- bzero(pmap->pm_l1, PAGE_SIZE);
+ m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)pmap->pm_l1));
+ vm_page_unwire_noq(m);
+ vm_page_free(m);
}
#if 0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 22, 2:04 AM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25870730
Default Alt Text
D18720.id52499.diff (702 B)
Attached To
Mode
D18720: Fix a use-after-free in pmap_release().
Attached
Detach File
Event Timeline
Log In to Comment