VirtualBox 7.0.8 vs. kernel 6.3.x - kernel trap

Once 6.3.x kernel updates rolled out to F38, my VirtualBox (VirtualBox-7.0.8-1.fc38) driver started crashing.
VirtualBox packages are from RPMFusion, everything is up-to-date.
Same problems with 6.3.6-200 and 6.3.7-200. Can’t seem to find anything in Google on the subject whether this is a known problem and is being worked at.

Any suggestions on how to fix this besides booting 6.2 kernel?

Full dmesg : dmesg-vbox-panic - Pastebin.com

[   65.370645] SUPR0GipMap: fGetGipCpu=0x1b
[   65.966922] traps: Missing ENDBR: 0xffffb4370f1d1020
[   65.966948] ------------[ cut here ]------------
[   65.966948] kernel BUG at arch/x86/kernel/traps.c:255!
[   65.966952] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[   65.966954] CPU: 10 PID: 5973 Comm: EMT-0 Tainted: G           OE      6.3.7-200.fc38.x86_64 #1
[   65.966955] Hardware name: ASUS System Product Name/PRIME Z790-A WIFI, BIOS 1003 04/14/2023
[   65.966956] RIP: 0010:exc_control_protection+0xb8/0xc0
[   65.966959] Code: 48 8b 93 80 00 00 00 be fc 00 00 00 48 c7 c7 2a c9 84 a5 e8 aa 4e 17 ff e9 7b ff ff ff 48 c7 43 50 00 00 00 00 e9 6e ff ff ff <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
[   65.966960] RSP: 0018:ffffb4370f0b7d18 EFLAGS: 00010002
[   65.966962] RAX: 0000000000000028 RBX: ffffb4370f0b7d38 RCX: 0000000000000000
[   65.966963] RDX: 0000000000000000 RSI: ffffa0ec5f2a1540 RDI: ffffa0ec5f2a1540
[   65.966963] RBP: 0000000000000003 R08: 0000000000000000 R09: ffffb4370f0b7bc0
[   65.966964] R10: 0000000000000003 R11: ffffffffa6146108 R12: 0000000000000000
[   65.966964] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   65.966965] FS:  00007f55c97ff6c0(0000) GS:ffffa0ec5f280000(0000) knlGS:0000000000000000
[   65.966966] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   65.966967] CR2: 00007f55b456d000 CR3: 000000010f76c000 CR4: 0000000000f50ee0
[   65.966968] PKRU: 55555554
[   65.966968] Call Trace:
[   65.966970]  <TASK>
[   65.966971]  ? die+0x36/0x90
[   65.966973]  ? do_trap+0xda/0x100
[   65.966975]  ? exc_control_protection+0xb8/0xc0
[   65.966976]  ? do_error_trap+0x6a/0x90
[   65.966977]  ? exc_control_protection+0xb8/0xc0
[   65.966978]  ? exc_invalid_op+0x50/0x70
[   65.966980]  ? exc_control_protection+0xb8/0xc0
[   65.966981]  ? asm_exc_invalid_op+0x1a/0x20
[   65.966984]  ? exc_control_protection+0xb8/0xc0
[   65.966985]  ? exc_control_protection+0x6e/0xc0
[   65.966986]  asm_exc_control_protection+0x26/0x30
[   65.966988] RIP: 0010:0xffffb4370f1d1020
[   65.966990] Code: 89 da 5b 41 5c 41 5d 5d e9 6d 19 fb ff 48 83 c4 28 b8 8e f8 ff ff 5b 41 5c 41 5d 5d c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 <55> 48 8d 35 d8 7f 1d 00 48 89 e5 41 54 49 89 fc 53 e8 ca 25 fb ff
[   65.966990] RSP: 0018:ffffb4370f0b7de0 EFLAGS: 00010282
[   65.966991] RAX: ffffb4370f1d1020 RBX: ffffb4370f3c0010 RCX: ffffa0d54f76cb48
[   65.966992] RDX: 0000000000000000 RSI: ffffa0d5400006e8 RDI: ffffa0d653433710
[   65.966993] RBP: ffffb4370f0b7e30 R08: 0000000000000024 R09: ffffb4370f3bf000
[   65.966993] R10: ffffeccd4ab21708 R11: 0000000000000000 R12: 0000000000000000
[   65.966994] R13: ffffffffc13ab3a0 R14: ffffa0d653433710 R15: 0000000000000004
[   65.966996]  ? supdrvIOCtl+0x2d3b/0x31d0 [vboxdrv]
[   65.967016]  ? _copy_from_user+0x4a/0x60
[   65.967018]  ? VBoxDrvLinuxIOCtl_7_0_8+0x169/0x260 [vboxdrv]
[   65.967035]  ? __x64_sys_ioctl+0x91/0xd0
[   65.967037]  ? do_syscall_64+0x5d/0x90
[   65.967038]  ? syscall_exit_to_user_mode+0x1b/0x40
[   65.967040]  ? do_syscall_64+0x6c/0x90
[   65.967041]  ? exc_page_fault+0x7c/0x180
[   65.967042]  ? entry_SYSCALL_64_after_hwframe+0x72/0xdc
[   65.967044]  </TASK>
[   65.967045] Modules linked in: xt_conntrack xt_MASQUERADE nf_conntrack_netlink xt_addrtype nft_compat br_netfilter bridge stp llc rfcomm snd_seq_dummy snd_hrtimer sunrpc nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 overlay ip_set nf_tables uinput nfnetlink vboxnetadp(OE) vboxnetflt(OE) qrtr vboxdrv(OE) bnep xfs vfat fat iwlmvm snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_hda_codec_hdmi snd_sof_xtensa_dsp snd_sof mac80211 snd_sof_utils snd_soc_hdac_hda snd_hda_codec_realtek snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_bus snd_hda_codec_generic snd_soc_core intel_rapl_msr intel_rapl_common intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_compress ac97_bus coretemp snd_pcm_dmaengine uvcvideo libarc4 snd_hda_intel
[   65.967077]  kvm_intel uvc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_intel_dspcfg snd_intel_sdw_acpi snd_usb_audio videobuf2_common kvm snd_hda_codec btusb iwlwifi snd_hda_core snd_usbmidi_lib videodev btrtl snd_hwdep btbcm snd_rawmidi btintel irqbypass snd_seq iTCO_wdt btmtk rapl snd_seq_device intel_pmc_bxt pmt_telemetry mc mei_hdcp mei_pxp iTCO_vendor_support pmt_class cfg80211 intel_cstate bluetooth snd_pcm asus_nb_wmi eeepc_wmi asus_wmi snd_timer ledtrig_audio sparse_keymap i2c_i801 platform_profile joydev snd intel_uncore pcspkr wmi_bmof soundcore i2c_smbus rfkill idma64 intel_vsec acpi_tad acpi_pad mei_me mei loop dm_crypt wacom i915 i2c_algo_bit drm_buddy crct10dif_pclmul crc32_pclmul nvme drm_display_helper crc32c_intel polyval_clmulni polyval_generic nvme_core igc cec ghash_clmulni_intel sha512_ssse3 ttm nvme_common vmd video wmi pinctrl_alderlake fuse
[   65.967111] ---[ end trace 0000000000000000 ]---
[   65.967112] RIP: 0010:exc_control_protection+0xb8/0xc0
[   65.967113] Code: 48 8b 93 80 00 00 00 be fc 00 00 00 48 c7 c7 2a c9 84 a5 e8 aa 4e 17 ff e9 7b ff ff ff 48 c7 43 50 00 00 00 00 e9 6e ff ff ff <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90
[   65.967114] RSP: 0018:ffffb4370f0b7d18 EFLAGS: 00010002
[   65.967115] RAX: 0000000000000028 RBX: ffffb4370f0b7d38 RCX: 0000000000000000
[   65.967116] RDX: 0000000000000000 RSI: ffffa0ec5f2a1540 RDI: ffffa0ec5f2a1540
[   65.967117] RBP: 0000000000000003 R08: 0000000000000000 R09: ffffb4370f0b7bc0
[   65.967118] R10: 0000000000000003 R11: ffffffffa6146108 R12: 0000000000000000
[   65.967118] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[   65.967119] FS:  00007f55c97ff6c0(0000) GS:ffffa0ec5f280000(0000) knlGS:0000000000000000
[   65.967120] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   65.967121] CR2: 00007f55b456d000 CR3: 000000010f76c000 CR4: 0000000000f50ee0
[   65.967122] PKRU: 55555554
[   65.967122] note: EMT-0[5973] exited with irqs disabled

I have exactly the same problems. Any suggestion how to fix it?

I just did a test install of VirtualBox (from rpmfusion) on my F38 system with the 6.3.7 kernel.

Following the install I did sudo usermod -a -G vboxuser USER and then rebooted and logged back in.

The next step was to use the icon in the activities menu to launch VB which worked perfectly.

Have you added your user the the vboxuser group? That is required, as is the reboot to load the vboxdrv module into the kernel.

The problem is that the vbox driver is crashing.
Considering that it’s not being widely reported, this is probably related to a specific hardware presence or quirk. If @darkened4162 could post his dmesg/hwinfo, we could look for similarities between the two.

A quickfix is VirtualBox can't start a virtual machine since updated kernel to 5.18 / Kernel & Hardware / Arch Linux Forums

Sadly, this happens with other hardware + distros too (for me opensuse, lenovo). Obviously ibt=on went by default into the new kernel and it was not tested nor the software adapted.

I am not using virtualbox or any other software from different repos, this just should not happen.

@marinko Yep, this works, thank you!
Just in time too, as today there are enough kernel updates to push 6.2.x out of the default sized 3 installed kernels count :laughing: