Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148033506
D54171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
D54171.diff
View Options
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -321,10 +321,12 @@
rv = vmem_alloc(arena, size, M_BESTFIT | M_NOWAIT, &addr);
if (rv == ENOMEM)
return (0);
- KASSERT(atop(addr - VM_MIN_KERNEL_ADDRESS) %
- (kstack_pages + KSTACK_GUARD_PAGES) == 0,
- ("%s: allocated kstack KVA not aligned to multiple of kstack size",
- __func__));
+ if (size == ptoa(kstack_pages + KSTACK_GUARD_PAGES)) {
+ /* This expectation only applies to kstack arenas */
+ KASSERT((addr - VM_MIN_KERNEL_ADDRESS) % size == 0,
+ ("%s: allocated kstack KVA not aligned to multiple of kstack size",
+ __func__));
+ }
return (addr);
#else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 7:34 AM (4 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29760160
Default Alt Text
D54171.diff (693 B)
Attached To
Mode
D54171: vm: Fix kstack alignment assertion
Attached
Detach File
Event Timeline
Log In to Comment