From nobody Tue Jan 7 19:50:20 2025 X-Original-To: emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YSM8r1gk3z5jrP1 for ; Tue, 07 Jan 2025 19:50:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSM8r0PP6z40CC for ; Tue, 7 Jan 2025 19:50:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736279420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WqC4yrs9CGT5S7NufVAWiS/8oIeok5Dy5g1/LgXBo+o=; b=YeW7yqs3lj73VC32/qMV737/0gUQ2t8zr/WJh7YQn5aRE78anX+7ra/YVVDSwhbpjNECxz gEXMWh92gptiwUY/3x8kGbikyufPpqgpYRKRR36zOv1TDQXJAGEz0RH6YD1e6CRAPah0wg pEMw21iNHYzW8MyWzDSo5pA5S5wmSPIr746WzG9WOy8eyIz3nBiXbNmJqGQ8gwDn6OA0VW sDaCs/VMCKLpx4fkspArIFGYE90ogaVydgYKVXZnONCq9HiRGg4anxO3IdpzfjldgCyk17 lkEStjAwEy3dJTTjQFMZSymkI65GdRrTlEEjekqt+1lGciChHrv32PJi5M9hsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736279420; a=rsa-sha256; cv=none; b=r192tUGBVTF4kjEF+5dj3+qnNB20gwrm1R9IA9QJj9JdhKNWSCqzNExMnau3byMQmvpVZT 7SqOTpptLtpKveZZeLj7pJVY6vazl0lx1Gq49963s8o+ioAxo2dKDSjLi0Ym1sXELri84H /9jOvqBKkom+oFUjBWlopQ2+C5isk5LR/irPsYiGbwaoEbOZasVRLgrSd58TTbYMyKBObY UIE1zj7PZ0kXhnbx+B8SGd9UZvhh8Q+7HMEMGyP4CptVXsJ0320Nl9G6hgxRs0mtBviI1U 7Zd9ZbLVnNHh1zLMpYt2BNtz4B9NmAPohS1LbQ0qokTUtgZAdybLM6zj1Z47fg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSM8r00Tdz8GZ for ; Tue, 07 Jan 2025 19:50:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 507JoJ7P094879 for ; Tue, 7 Jan 2025 19:50:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 507JoJnv094877 for emulation@FreeBSD.org; Tue, 7 Jan 2025 19:50:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 07 Jan 2025 19:50:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vvd@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@FreeBSD.org MIME-Version: 1.0 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 AuthorDate: 2025-01-07 16:10:57 +0000 Commit: Vladimir Druzenko 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.=