Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Feb 2020 14:21:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 243837] i386 boot panics after r357314
Message-ID:  <bug-243837-227-oXtWIhmscs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243837-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243837-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

Mark Johnston <markj@FreeBSD.org> changed:

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

--- Comment #2 from Mark Johnston <markj@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243837-227-oXtWIhmscs>