[Bug 227116] CURRENT doesn't boot with integer divide fault in uma_startup_count
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Mar 31 15:56:33 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227116
--- Comment #12 from Gleb Smirnoff <glebius at FreeBSD.org> ---
Thanks Kostik. I was just preparing a patch to print out all variables.
So, the fix should be:
Index: uma_core.c
===================================================================
--- uma_core.c (revision 331844)
+++ uma_core.c (working copy)
@@ -1820,7 +1820,7 @@ uma_startup_count(int vm_zones)
#endif
/* Memory for the rest of startup zones, UMA and VM, ... */
- if (zsize > UMA_SLAB_SIZE)
+ if (roundup2(zsize, UMA_BOOT_ALIGN) > UMA_SLAB_SIZE)
pages += (zones + vm_zones) *
howmany(roundup2(zsize, UMA_BOOT_ALIGN), UMA_SLAB_SIZE);
else
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list