From nobody Fri Jun 28 18:32:17 2024 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 4W9kYt4cJ0z5P5Q7 for ; Fri, 28 Jun 2024 18:32:18 +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 4W9kYt3bjzz4sD1 for ; Fri, 28 Jun 2024 18:32:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719599538; a=rsa-sha256; cv=none; b=ppKzlp6Zc1rCCzmO/AsuJnLpAMjaX1DEB2iQ2w+BMxAvF9bsWeeQO0WMrKG4lVLmCGd0BW i7jXIJ2fIgz/ISHAYDQTT7ALLpmoaelf8xnE8rT7fAymcpSENG5FVs405KxqlZgw/twasQ K2KOrONxduw9nCTxsXLkY+kXg1Zf72u0/r79FbTDv8HUIFqwXrZWxCVcqZBAXRvywOuFZf Nut87Jo6yWcJ6uhsLymmpDGZ8Cx7XWCwJrG7NzjseI00c+RkQEJb6z/FxhR4Pzpt7R1ij3 Qe2NGBeTsVGb2btAADIoJ1zIZOY96N0zNjpdK9q2FilJQtXmCKKdPO9VqOfAYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719599538; 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=+QpLxPUvhgdczt+I12I43hyrjgxTVNU+poY8RNyGErs=; b=omBhaFvilZKJtj8u/WV0xE+vl3k7LBxzDuuB46Lcg46AXjo1SVqXr3HpZkSbIDbU9CNeeg VVbvezAyCF13I7yMEFWiViHSmUBajq6g5JmbVuTSbIgf6IJgq/Wjfw/RgkSpuYvLc9GSN7 spLZB+V+ROZbuz9Xtyi8iTtcu81vxfZLYavA6qAL6h6sUYKTRKaydsUDzqt4w1GQUeSxEZ P+ppLz7DyfUt1/RjOM2TGzjnj9OppyFjsuM8EbBvyy5StugfRUfoY547rNJqmx6MnZ/MWg a9VVuQHdPDTUklKGJQT3j5kPHhfIAZWFwEAQ7QMApDqdNZE07LopMqitTO6RWw== 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 4W9kYt3C8qz16YX for ; Fri, 28 Jun 2024 18:32:18 +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 45SIWIs5082399 for ; Fri, 28 Jun 2024 18:32:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45SIWIhL082393 for emulation@FreeBSD.org; Fri, 28 Jun 2024 18:32:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Fri, 28 Jun 2024 18:32:17 +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: leres@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.isobsolete flagtypes.name attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Craig Leres changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #244203|0 |1 is obsolete| | Attachment #244203|maintainer-approval?(vbox@F | Flags|reeBSD.org), | |maintainer-approval?(emulat | |ion@FreeBSD.org) | Attachment #251748| |maintainer-approval?(vbox@F Flags| |reeBSD.org) --- Comment #9 from Craig Leres --- Created attachment 251748 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251748&action= =3Dedit patch Here's an updated patch tested with 14.1-RELEASE-p1. I built a custom (amd6= 4) kernel with options MAXCPU=3D512 and verified it still works as intended: Jun 28 11:14:16 sea kernel: vboxdrv: MAXCPU !=3D mp_maxcpus (1024 !=3D = 512) Jun 28 11:14:16 sea syslogd: last message repeated 1 times Jun 28 11:14:16 sea kernel: module_register_init: MOD_LOAD (vboxdrv, 0xffffffff8569f4f0, 0) error 22 I also tested the freebsd-built virtualbox-ose-kmod-6.1.50 package and when= I attempted to load that version of the module with my 512 cpu kernel it said: Jun 28 11:15:59 sea kernel: KLD vboxdrv.ko: depends on kernel - not available or version mismatch It gives the same error when I tried to load in (a) a custom kenrel with MAXCPU=3D1024 (the default) and (b) the GENERIC 14.1-RELEASE (p0) kernel. A= t this point it's not clear to me how to use this kernel module with any systems! Here's a thread that appears relevant: =20=20=20 https://forums.freebsd.org/threads/virtualbox-kernel-module-fails-to-load-o= n-freebsd-13-1-release.85191/ --=20 You are receiving this mail because: You are on the CC list for the bug.=