Is it just me or anybody else have this? Crashes every time I try to start VM [ 43.474549] SUPR0GipMap: fGetGipCpu=0x1b [ 44.191133] BUG: kernel NULL pointer dereference, address: 0000000000000020 [ 44.191136] #PF: supervisor read access in kernel mode [ 44.191137] #PF: error_code(0x0000) - not-present page [ 44.191138] PGD 0 P4D 0 [ 44.191140] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 44.191142] CPU: 3 PID: 2886 Comm: EMT-0 Tainted: G S U O 5.10.0 #3 [ 44.191143] Hardware name: LENOVO 20NXCTO1WW/20NXCTO1WW, BIOS N2JET92W (1.70 ) 08/31/2020 [ 44.191147] RIP: 0010:__lock_acquire.constprop.0+0x30f/0x530 [ 44.191148] Code: c0 74 10 44 8b 25 99 61 78 01 45 85 e4 0f 84 be 55 97 00 45 31 e4 48 83 c4 18 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 89 f0 <48> 8b 44 c7 08 48 85 c0 0f 85 41 fd ff ff e9 1a fd ff ff 44 8b 54 [ 44.191149] RSP: 0018:ffffa6a782217c98 EFLAGS: 00010097 [ 44.191150] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 44.191151] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000018 [ 44.191152] RBP: 0000000000000018 R08: 0000000000000000 R09: 0000000000000000 [ 44.191152] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 [ 44.191153] R13: ffff9c5ea6f48000 R14: 0000000000000000 R15: 0000000000000246 [ 44.191154] FS: 00007f7397450640(0000) GS:ffff9c61904c0000(0000) knlGS:0000000000000000 [ 44.191155] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 44.191156] CR2: 0000000000000020 CR3: 00000001a571a001 CR4: 00000000003706e0 [ 44.191157] Call Trace: [ 44.191161] lock_acquire+0x11f/0x160 [ 44.191163] ? __apply_to_page_range+0x2e4/0x6a0 [ 44.191172] ? rtR0TermNative+0xf0/0x250 [vboxdrv] [ 44.191175] _raw_spin_lock+0x2c/0x40 [ 44.191176] ? __apply_to_page_range+0x2e4/0x6a0 [ 44.191177] __apply_to_page_range+0x2e4/0x6a0 [ 44.191183] ? rtR0TermNative+0xf0/0x250 [vboxdrv] [ 44.191187] rtR0MemObjNativeProtect+0x80/0x100 [vboxdrv] [ 44.191192] VBoxHost_RTR0MemObjProtect+0x86/0xc0 [vboxdrv] [ 44.191197] supdrvIOCtl+0x31bc/0x35a0 [vboxdrv] [ 44.191201] SUPR0Printf+0x1ee/0x300 [vboxdrv] [ 44.191203] __x64_sys_ioctl+0x80/0xb0 [ 44.191205] do_syscall_64+0x2d/0x40 [ 44.191207] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 44.191208] RIP: 0033:0x7f73e38f2a67 [ 44.191210] Code: d8 49 8d 3c 1c 49 39 c4 72 b9 e8 24 ff ff ff 85 c0 78 be 5b 5d 4c 89 e0 41 5c c3 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c9 63 0c 00 f7 d8 64 89 01 48 [ 44.191211] RSP: 002b:00007f739744ebd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 44.191212] RAX: ffffffffffffffda RBX: 00007f7396e69010 RCX: 00007f73e38f2a67 [ 44.191213] RDX: 00007f7396e69010 RSI: 0000000000005684 RDI: 0000000000000007 [ 44.191213] RBP: 00007f739744ebe0 R08: 0000000000000000 R09: 00000000fffffffc [ 44.191214] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f73cb7422ff [ 44.191215] R13: 0000000000000000 R14: 00007f739744ee90 R15: 0000000000000004 [ 44.191217] Modules linked in: xt_MASQUERADE xt_state xt_conntrack ipt_REJECT nf_reject_ipv4 iptable_filter xt_tcpudp bpfilter nf_nat_h323 nf_conntrack_h323 nf_nat_pptp nf_conntrack_pptp nf_nat_tftp nf_conntrack_tftp nf_nat_sip nf_conntrack_sip nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 af_packet bridge stp llc xfs rfcomm algif_hash algif_skcipher af_alg bnep hid_logitech_hidpp hid_logitech_dj snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic btusb btrtl btbcm btintel bluetooth uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc hid_generic usbhid sd_mod joydev uas mousedev usb_storage scsi_mod elan_i2c iwlmvm iTCO_wdt iTCO_vendor_support mac80211 intel_pmc_core_pltdrv intel_pmc_core kvm_intel wmi_bmof intel_wmi_thunderbolt snd_hda_intel kvm iwlwifi snd_intel_dspcfg i915 irqbypass snd_hda_codec psmouse [ 44.191253] thunderbolt snd_hwdep crct10dif_pclmul crc32_pclmul snd_hda_core ghash_clmulni_intel snd_pcm sdhci_pci i2c_algo_bit atkbd cqhci snd_timer intel_rapl_msr sdhci mmc_core i2c_i801 drm_kms_helper i2c_smbus mei_hdcp cfg80211 syscopyarea sysfillrect thinkpad_acpi sysimgblt fb_sys_fops intel_gtt snd soundcore wmi vboxnetadp(O) vboxnetflt(O) drm auth_rpcgss vboxdrv(O) i2c_core agpgart sunrpc bpf_preload ip_tables x_tables [ 44.191272] CR2: 0000000000000020 [ 44.191274] ---[ end trace 189bafe9dee7c548 ]--- [ 44.191276] RIP: 0010:__lock_acquire.constprop.0+0x30f/0x530 [ 44.191277] Code: c0 74 10 44 8b 25 99 61 78 01 45 85 e4 0f 84 be 55 97 00 45 31 e4 48 83 c4 18 44 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 89 f0 <48> 8b 44 c7 08 48 85 c0 0f 85 41 fd ff ff e9 1a fd ff ff 44 8b 54 [ 44.191278] RSP: 0018:ffffa6a782217c98 EFLAGS: 00010097 [ 44.191279] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 44.191280] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000018 [ 44.191280] RBP: 0000000000000018 R08: 0000000000000000 R09: 0000000000000000 [ 44.191281] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 [ 44.191282] R13: ffff9c5ea6f48000 R14: 0000000000000000 R15: 0000000000000246 [ 44.191283] FS: 00007f7397450640(0000) GS:ffff9c61904c0000(0000) knlGS:0000000000000000 [ 44.191283] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 44.191284] CR2: 0000000000000020 CR3: 00000001a571a001 CR4: 00000000003706e0 [ 44.191285] note: EMT-0[2886] exited with preempt_count 1
The log is from host? Tell us more about the VMs you tried. Try the patches for the VM side if it is a linux VM. https://www.virtualbox.org/ticket/20055 You have to adapt the path for gentoo packages in the patches.
Yes, the log is from host. I'm starting Win10, and during VM loading host gets this crash. I.e. VM was not fully loaded when this crash happens (VBox load gauge was on 20%). Crash happens every time I'm trying to start VM.
please provide output of emerge --info
in the meantime you can search at https://www.virtualbox.org/wiki/Bugtracker
Created attachment 678481 [details] emerge --info
Yes, look like it's better to address problem to upstream. Initially I had an idea this may happen because of the patch, but the patch is identical to the one attached to the ticket.
please add a link to the upstream report here
I added comment to existing ticket => https://www.virtualbox.org/ticket/20055#comment:10
CONFIG_DEBUG_SPINLOCK=y is what's causing the crash, but it's unclear if it's a kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=211469 or a virtualbox bug: https://www.virtualbox.org/ticket/20163 So far, I'm using CONFIG_DEBUG_SPINLOCK=n to avoid the crash, but I'd like to have it be =y Any ideas on what to do next to figure out what's the cause? I have the time and willingness, just need the brains :D
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c0bce2f517147970c05ac7c809ff31b83477509 commit 7c0bce2f517147970c05ac7c809ff31b83477509 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2023-04-18 16:45:22 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2023-04-21 16:35:22 +0000 app-emulation/virtualbox-modules: add 7.0.8 Bug: https://bugs.gentoo.org/760102 Closes: https://bugs.gentoo.org/880229 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> app-emulation/virtualbox-modules/Manifest | 1 + .../virtualbox-modules-7.0.8.ebuild | 81 ++++++++++++++++++++++ 2 files changed, 82 insertions(+)