Date: Sat, 31 Mar 2018 15:56:32 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 227116] CURRENT doesn't boot with integer divide fault in uma_startup_count Message-ID: <bug-227116-8-OitChU00w1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227116-8@https.bugs.freebsd.org/bugzilla/> References: <bug-227116-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227116 --- Comment #12 from Gleb Smirnoff <glebius@FreeBSD.org> --- Thanks Kostik. I was just preparing a patch to print out all variables. So, the fix should be: Index: uma_core.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 +=3D (zones + vm_zones) * howmany(roundup2(zsize, UMA_BOOT_ALIGN), UMA_SLAB_SIZE); else --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227116-8-OitChU00w1>