From owner-freebsd-hackers@freebsd.org Fri Apr 6 04:04:12 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED7B7F9DFBB for ; Fri, 6 Apr 2018 04:04:11 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from xse.com (xse.com [IPv6:2607:f2f8:abb8::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "xse.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75295829B3; Fri, 6 Apr 2018 04:04:11 +0000 (UTC) (envelope-from leres@freebsd.org) Received-SPF: pass (dot.xse.com: authenticated connection) receiver=dot.xse.com; client-ip=2620:83:8000:102::cb; helo=hot.ee.lbl.gov; envelope-from=leres@freebsd.org; x-software=spfmilter 2.001 http://www.acme.com/software/spfmilter/ with libspf2-1.2.10; Received: from hot.ee.lbl.gov (hot.ee.lbl.gov [IPv6:2620:83:8000:102:0:0:0:cb]) (authenticated bits=0) by dot.xse.com (8.15.2/8.15.2) with ESMTPSA id w36447Qd097420 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 5 Apr 2018 21:04:08 -0700 (PDT) (envelope-from leres@freebsd.org) Subject: Re: 11.1-RELEASE virtualbox-ose panic: ncpus is 0 with non-zero map To: Eugene Grosbein , Allan Jude , freebsd-hackers@freebsd.org References: <3fd9fbd1-26ef-c176-2c4b-cf02f89ea680@freebsd.org> <5AC5A2D4.2080202@grosbein.net> From: Craig Leres Message-ID: <7c0a41c4-01a2-140f-2628-6aa7e1da976f@freebsd.org> Date: Thu, 5 Apr 2018 21:04:07 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5AC5A2D4.2080202@grosbein.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at dot.xse.com X-Virus-Status: Clean X-GBUdb-Analysis: Unknown X-MessageSniffer-Rules: 0-0-0-2970-c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2018 04:04:12 -0000 On 04/04/18 21:15, Eugene Grosbein wrote: > 05.04.2018 5:42, Craig Leres wrote: > >> I just verified that /boot/modules/vbox*.ko match the ones in the package >> in /public/FreeBSD:11:amd64/latest/All/virtualbox-ose-kmod-5.2.8_1.txz on my server. > > This is known problem that was raised multiple times in several mailing lists. Thanks for that; once I went looking I found this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219913 Due to ABI difference (vboxdrv passes cpuset_t parameter (bitfield with CPU_SETSIZE -> MAXCPU bits) into smp_rendezvous_cpus()) kernel panics with "ncpus is 0 with non-zero map" message. Part of my normal FreeBSD upgrade process was to raise MAXCPU to 64. As it turns out that is already the default for 10 and the default was *raised* to 256 for 11. So the solution is: don't mess with MAXCPU. Craig