Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142185519
D48626.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
813 B
Referenced Files
None
Subscribers
None
D48626.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
@@ -1780,15 +1780,17 @@
static void
vm_phys_avail_check(int i)
{
+ if (i % 2 != 0)
+ panic("Chunk start index %d is not even.", i);
if (phys_avail[i] & PAGE_MASK)
panic("Unaligned phys_avail[%d]: %#jx", i,
(intmax_t)phys_avail[i]);
- if (phys_avail[i+1] & PAGE_MASK)
+ if (phys_avail[i + 1] & PAGE_MASK)
panic("Unaligned phys_avail[%d + 1]: %#jx", i,
- (intmax_t)phys_avail[i]);
+ (intmax_t)phys_avail[i + 1]);
if (phys_avail[i + 1] < phys_avail[i])
- panic("phys_avail[%d] start %#jx < end %#jx", i,
- (intmax_t)phys_avail[i], (intmax_t)phys_avail[i+1]);
+ panic("phys_avail[%d]: start %#jx > end %#jx", i,
+ (intmax_t)phys_avail[i], (intmax_t)phys_avail[i + 1]);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 11:25 PM (10 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27700859
Default Alt Text
D48626.diff (813 B)
Attached To
Mode
D48626: vm_phys_avail_check(): Check index parity, fix panic messages
Attached
Detach File
Event Timeline
Log In to Comment