[Bug 243837] i386 boot panics after r357314

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 3 14:21:59 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243837

Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj at FreeBSD.org
             Status|New                         |In Progress

--- Comment #2 from Mark Johnston <markj at FreeBSD.org> ---
There is a regression on all 32-bit platforms.  With the addition of the
sequence number field to UMA buckets, one of the built-in bucket sizes becomes
0, and the bucket zone selection code doesn't expect this.

This should fix the problem, I can't really see a better solution:

diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 28b959d66b4a..0551ec1ade48 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -239,7 +239,9 @@ struct uma_bucket_zone {
 #define        BUCKET_MIN      BUCKET_SIZE(4)

 struct uma_bucket_zone bucket_zones[] = {
+#ifndef __ILP32__
        { NULL, "4 Bucket", BUCKET_SIZE(4), 4096 },
+#endif
        { NULL, "6 Bucket", BUCKET_SIZE(6), 3072 },
        { NULL, "8 Bucket", BUCKET_SIZE(8), 2048 },
        { NULL, "12 Bucket", BUCKET_SIZE(12), 1536 },

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list