Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153097304
D45596.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
584 B
Referenced Files
None
Subscribers
None
D45596.diff
View Options
diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c
--- a/sys/vm/vm_phys.c
+++ b/sys/vm/vm_phys.c
@@ -711,12 +711,16 @@
#ifdef VM_FREEPOOL_LAZYINIT
if (__predict_false(m->pool == VM_FREEPOOL_LAZYINIT)) {
vm_page_t m_next;
+ vm_paddr_t pa;
int npages;
npages = 1 << order;
m_next = m + npages;
- vm_page_init_page(m_next, m->phys_addr + ptoa(npages), m->segind,
- VM_FREEPOOL_LAZYINIT);
+ pa = m->phys_addr + ptoa(npages);
+ if (pa < vm_phys_segs[m->segind].end) {
+ vm_page_init_page(m_next, pa, m->segind,
+ VM_FREEPOOL_LAZYINIT);
+ }
}
#endif
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 3:15 AM (5 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31817343
Default Alt Text
D45596.diff (584 B)
Attached To
Mode
D45596: vm_phys: Make sure that vm_phys_enq_chunk() stays in bounds
Attached
Detach File
Event Timeline
Log In to Comment