Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169948577
D18720.id52512.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
D18720.id52512.diff
View Options
Index: head/sys/riscv/riscv/pmap.c
===================================================================
--- head/sys/riscv/riscv/pmap.c
+++ head/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
Fri, Sep 4, 1:48 AM (11 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38029046
Default Alt Text
D18720.id52512.diff (717 B)
Attached To
Mode
D18720: Fix a use-after-free in pmap_release().
Attached
Detach File
Event Timeline
Log In to Comment