Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jan 2025 19:50:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 219913] emulators/virtualbox-ose-kmod: if the MAXCPU option is not the default for the running kernel, then 'kldload vboxdrv.ko' will result in a kernel panic
Message-ID:  <bug-219913-4077-GHloAQQqzh@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219913-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219913-4077@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=3D219913

--- Comment #25 from commit-hook@FreeBSD.org ---
A commit in branch 2025Q1 references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3D448dfbb743fadbf19299be9b1625110=
8a5e47474

commit 448dfbb743fadbf19299be9b16251108a5e47474
Author:     Craig Leres <leres@freebsd.org>
AuthorDate: 2025-01-07 16:10:57 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-01-07 19:40:38 +0000

    emulators/virtualbox-ose-kmod: Add check for MAXCPU and mp_maxcpus befo=
re
load vboxdrv.ko

    If the MAXCPU option is not the default for the running kernel, then
    'kldload vboxdrv.ko' will result in a kernel panic.
    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.

    PR:     219913
    (cherry picked from commit 8d72823b38b779036014938cc250f859b27fb3f7)

 emulators/virtualbox-ose-kmod/Makefile             |  1 +
 ...ox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c | 37 +++++++++++++++---=
----
 2 files changed, 27 insertions(+), 11 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219913-4077-GHloAQQqzh>