FS#75481 - [linux] VBox virtual machines stop functioning

Attached to Project: Arch Linux
Opened by MS-DTYP (MS-DTYP) - Monday, 01 August 2022, 14:57 GMT
Last edited by Toolybird (Toolybird) - Saturday, 02 September 2023, 23:34 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

VBox virtual machines stop functioning after the system's update. Latest packages.

```
Aug 01 17:39:07 desktop kernel: audit: type=1131 audit(1659364747.146:103): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@120 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 01 17:39:07 desktop kernel: SUPR0GipMap: fGetGipCpu=0x1b
Aug 01 17:39:08 desktop kernel: traps: Missing ENDBR: 0xffffae16c31f33b0
Aug 01 17:39:08 desktop kernel: ------------[ cut here ]------------
Aug 01 17:39:08 desktop kernel: kernel BUG at arch/x86/kernel/traps.c:252!
Aug 01 17:39:08 desktop kernel: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Aug 01 17:39:08 desktop kernel: CPU: 0 PID: 1869 Comm: EMT-0 Tainted: G OE 5.18.15-arch1-1 #1 9ff3be2e7813d5f2c07119812e1642852fe6c646
Aug 01 17:39:08 desktop kernel: Hardware name: LENOVO 20W0004KRT/20W0004KRT, BIOS N34ET34W (1.34 ) 04/08/2021
Aug 01 17:39:08 desktop kernel: RIP: 0010:exc_control_protection+0xc2/0xd0
Aug 01 17:39:08 desktop kernel: Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 93 eb a6 a8 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 7a eb a6 a8 e8 26 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
Aug 01 17:39:08 desktop kernel: RSP: 0018:ffffae16c3167c48 EFLAGS: 00010002
Aug 01 17:39:08 desktop kernel: RAX: 0000000000000028 RBX: ffffae16c3167c68 RCX: 0000000000000000
Aug 01 17:39:08 desktop kernel: RDX: 0000000000000000 RSI: ffff9075776216a0 RDI: ffff9075776216a0
Aug 01 17:39:08 desktop kernel: RBP: 0000000000000003 R08: 0000000000000000 R09: ffffae16c3167a68
Aug 01 17:39:08 desktop kernel: R10: 0000000000000003 R11: ffffffffa92caa08 R12: 0000000000000000
Aug 01 17:39:08 desktop kernel: R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Aug 01 17:39:08 desktop kernel: FS: 00007f949a9ff640(0000) GS:ffff907577600000(0000) knlGS:0000000000000000
Aug 01 17:39:08 desktop kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 01 17:39:08 desktop kernel: CR2: 00007f948b000000 CR3: 0000000112b34003 CR4: 0000000000f70ef0
Aug 01 17:39:08 desktop kernel: PKRU: 55555554
Aug 01 17:39:08 desktop kernel: Call Trace:
Aug 01 17:39:08 desktop kernel: <TASK>
Aug 01 17:39:08 desktop kernel: asm_exc_control_protection+0x25/0x30
Aug 01 17:39:08 desktop kernel: RIP: 0010:0xffffae16c31f33b0
Aug 01 17:39:08 desktop kernel: Code: 31 c0 0f b7 cb 21 ce 39 f1 75 04 48 8d 42 18 48 8b 5d f8 c9 c3 0f 1f 44 00 00 89 df 48 8b 5d f8 c9 e9 a4 cc fc ff 31 c0 eb e5 <55> 48 8d 35 48 9c 15 00 48 89 e5 41 54 49 89 fc 53 e8 0a c0 fc ff
Aug 01 17:39:08 desktop kernel: RSP: 0018:ffffae16c3167d10 EFLAGS: 00010282
Aug 01 17:39:08 desktop kernel: RAX: ffffae16c31f33b0 RBX: ffffae16c336e010 RCX: ffffae16c3171000
Aug 01 17:39:08 desktop kernel: RDX: ffffae16c31f2550 RSI: 0000000000000000 RDI: ffff906c9298c850
Aug 01 17:39:08 desktop kernel: RBP: ffffae16c3167d98 R08: ffffae16c336d000 R09: 0000000000000001
Aug 01 17:39:08 desktop kernel: R10: ffff9075776395f8 R11: 0000000000000000 R12: 0000000000000024
Aug 01 17:39:08 desktop kernel: R13: 0000000000000004 R14: ffff906c9298c850 R15: ffffffffc0704860
Aug 01 17:39:08 desktop kernel: ? supdrvIOCtl+0x2ef5/0x3280 [vboxdrv 6dc203d6f41b1d3f81b5827e2e9e7b67ab55cafb]
Aug 01 17:39:08 desktop kernel: ? _copy_from_user+0x47/0x60
Aug 01 17:39:08 desktop kernel: ? VBoxDrvLinuxIOCtl_6_1_36+0x162/0x260 [vboxdrv 6dc203d6f41b1d3f81b5827e2e9e7b67ab55cafb]
Aug 01 17:39:08 desktop kernel: ? __x64_sys_ioctl+0x91/0xd0
Aug 01 17:39:08 desktop kernel: ? do_syscall_64+0x5c/0x90
Aug 01 17:39:08 desktop kernel: ? vfs_write+0x178/0x270
Aug 01 17:39:08 desktop kernel: ? vfs_write+0x178/0x270
Aug 01 17:39:08 desktop kernel: ? syscall_exit_to_user_mode+0x26/0x50
Aug 01 17:39:08 desktop kernel: ? do_syscall_64+0x6b/0x90
Aug 01 17:39:08 desktop kernel: ? do_syscall_64+0x6b/0x90
Aug 01 17:39:08 desktop kernel: ? entry_SYSCALL_64_after_hwframe+0x61/0xcb
Aug 01 17:39:08 desktop kernel: </TASK>
Aug 01 17:39:08 desktop kernel: Modules linked in: ec_sys ipheth joydev snd_ctl_led snd_soc_skl_hda_dsp snd_soc_intel_hda_dsp_common snd_soc_hdac_hdmi snd_sof_probes snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_soc_dmic 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_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match spi_nor snd_soc_acpi iTCO_wdt soundwire_bus mtd intel_pmc_bxt ee1004 iTCO_vendor_support intel_tcc_cooling mei_pxp iwlmvm snd_soc_core mei_hdcp x86_pkg_temp_thermal intel_powerclamp coretemp snd_compress think_lmi ac97_bus intel_rapl_msr firmware_attributes_class wmi_bmof mac80211 kvm_intel snd_pcm_dmaengine snd_hda_intel libarc4 snd_intel_dspcfg kvm mousedev irqbypass snd_intel_sdw_acpi intel_cstate iwlwifi intel_uncore snd_hda_codec pcspkr iwlmei psmouse snd_hda_core e1000e snd_hwdep i2c_i801 spi_intel_pci snd_pcm spi_intel btusb
Aug 01 17:39:08 desktop kernel: i2c_smbus cfg80211 uvcvideo snd_timer btrtl videobuf2_vmalloc mei_me btbcm videobuf2_memops mei btintel videobuf2_v4l2 btmtk videobuf2_common hid_logitech_hidpp bluetooth videodev i915 mc ecdh_generic processor_thermal_device_pci_legacy drm_buddy processor_thermal_device ttm processor_thermal_rfim ucsi_acpi processor_thermal_mbox apple_mfi_fastcharge thunderbolt tpm_crb drm_dp_helper typec_ucsi processor_thermal_rapl intel_rapl_common intel_gtt typec intel_soc_dts_iosf igen6_edac roles tpm_tis thinkpad_acpi tpm_tis_core ledtrig_audio platform_profile wmi rfkill snd soundcore int3403_thermal int340x_thermal_zone video mac_hid intel_hid int3400_thermal sparse_keymap acpi_tad acpi_pad acpi_thermal_rel vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 hid_logitech_dj usbhid mmc_block dm_crypt cbc encrypted_keys trusted asn1_encoder tee tpm rng_core dm_mod crct10dif_pclmul sdhci_pci serio_raw cqhci
Aug 01 17:39:08 desktop kernel: crc32_pclmul atkbd crc32c_intel sdhci libps2 ghash_clmulni_intel vivaldi_fmap aesni_intel mmc_core crypto_simd nvme xhci_pci cryptd nvme_core xhci_pci_renesas i8042 serio
Aug 01 17:39:08 desktop kernel: ---[ end trace 0000000000000000 ]---
Aug 01 17:39:08 desktop kernel: RIP: 0010:exc_control_protection+0xc2/0xd0
Aug 01 17:39:08 desktop kernel: Code: 8b 93 80 00 00 00 be f9 00 00 00 48 c7 c7 93 eb a6 a8 e8 e1 8d 4d ff e9 72 ff ff ff 48 c7 c7 7a eb a6 a8 e8 26 24 fb ff 0f 0b <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
Aug 01 17:39:08 desktop kernel: RSP: 0018:ffffae16c3167c48 EFLAGS: 00010002
Aug 01 17:39:08 desktop kernel: RAX: 0000000000000028 RBX: ffffae16c3167c68 RCX: 0000000000000000
Aug 01 17:39:08 desktop kernel: RDX: 0000000000000000 RSI: ffff9075776216a0 RDI: ffff9075776216a0
Aug 01 17:39:08 desktop kernel: RBP: 0000000000000003 R08: 0000000000000000 R09: ffffae16c3167a68
Aug 01 17:39:08 desktop kernel: R10: 0000000000000003 R11: ffffffffa92caa08 R12: 0000000000000000
Aug 01 17:39:08 desktop kernel: R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Aug 01 17:39:08 desktop kernel: FS: 00007f949a9ff640(0000) GS:ffff907577600000(0000) knlGS:0000000000000000
Aug 01 17:39:08 desktop kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 01 17:39:08 desktop kernel: CR2: 00007f948b000000 CR3: 0000000112b34003 CR4: 0000000000f70ef0
Aug 01 17:39:08 desktop kernel: PKRU: 55555554
Aug 01 17:39:14 desktop gnome-shell[1207]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x556e8e406310] is on because it needs an allocation.
Aug 01 17:39:14 desktop gnome-shell[1207]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x556e8f652760] is on because it needs an allocation.
Aug 01 17:39:14 desktop gnome-shell[1207]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x556e8f6566b0] is on because it needs an allocation.
Aug 01 17:39:15 desktop systemd[1054]: Started VTE child process 1873 launched by gnome-terminal-server process 1717.
```

See also: https://bbs.archlinux.org/viewtopic.php?pid=2049734#p2049734
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 02 September 2023, 23:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  See comments
Comment by loqs (loqs) - Monday, 01 August 2022, 15:05 GMT
Related  FS#74891 
Comment by Toolybird (Toolybird) - Thursday, 11 August 2022, 04:23 GMT
So what's the status here? Only affects certain recent Intel CPU's? Fixed in latest kernels or what? Is this a dupe of  FS#74891  ? @loqs, your expertise is needed!
Comment by loqs (loqs) - Thursday, 11 August 2022, 05:21 GMT
objtool produces a number of warnings which could explain why IBT protection is being triggered on recent Intel CPU's. I would suggest opening an upstream bug report with Oracle Virtualbox.

 FS#74891  has covered all IBT issues. The Nvidia issue was closed in  FS#74886 . There was an internal issue in KVM which may be fixed. vmware not sure if that has its own issue. hyperv  FS#75178 
   make.log (13.9 KiB)
Comment by Toolybird (Toolybird) - Thursday, 11 August 2022, 07:27 GMT
Thank you @loqs. It certainly seems messy :( Hopefully our esteemed kernel pkg maintainers can come to grips with the issues.
Comment by Bas Timmer (bepaald) - Monday, 30 January 2023, 13:20 GMT
Still seeing this on 13th gen Intel now. As per loqs suggestion, I filed a bug with Oracle here: https://www.virtualbox.org/ticket/21435 There also seems to be an upstream kernel bug report here: https://bugzilla.kernel.org/show_bug.cgi?id=216102

None of the bug reports seem to get much attention, but hopefully that will change when more distributions enable IBT by default.
Comment by Toolybird (Toolybird) - Saturday, 02 September 2023, 23:34 GMT
Supposedly fixed in VirtualBox 7.0.10 [1]

[1] https://www.virtualbox.org/ticket/21435

Loading...