Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153232892
D31958.id95149.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
928 B
Referenced Files
None
Subscribers
None
D31958.id95149.diff
View Options
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -556,7 +556,7 @@
char *list, *listend;
vm_paddr_t end, high_avail, low_avail, new_end, size;
vm_paddr_t page_range __unused;
- vm_paddr_t last_pa, pa;
+ vm_paddr_t last_pa, pa, startp, endp;
u_long pagecount;
#if MINIDUMP_PAGE_TRACKING
u_long vm_page_dump_size;
@@ -780,11 +780,15 @@
struct vm_domain *vmd;
if (seg->start < phys_avail[i] ||
- seg->end > phys_avail[i + 1])
+ seg->start >= phys_avail[i + 1])
continue;
- m = seg->first_page;
- pagecount = (u_long)atop(seg->end - seg->start);
+ startp = MAX(seg->start, phys_avail[i]);
+ m = seg->first_page + atop(seg->start - startp);
+ endp = MIN(seg->end, phys_avail[i + 1]);
+ pagecount = (u_long)atop(endp - startp);
+ if (pagecount == 0)
+ continue;
vmd = VM_DOMAIN(seg->domain);
vm_domain_free_lock(vmd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 11:28 PM (13 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31871111
Default Alt Text
D31958.id95149.diff (928 B)
Attached To
Mode
D31958: vm_phys: do not ignore phys_avail[] segments that do not fit completely into vm_phys segments
Attached
Detach File
Event Timeline
Log In to Comment