FWIW, I attempted the same sort of thing that John Cabaj did, and
managed to get VBox 7.0.16's kernel drivers to build against kernel
6.17. Unfortunately, I did not get it to run VMs. The patch I added to
the packaging was:
---
Index: virtualbox-7.0.16-dfsg/src/VBox/Installer/linux/Makefile-footer.gmk
===================================================================
--- virtualbox-7.0.16-dfsg.orig/src/VBox/Installer/linux/Makefile-footer.gmk
+++ virtualbox-7.0.16-dfsg/src/VBox/Installer/linux/Makefile-footer.gmk
@@ -103,6 +103,7 @@ VBOXMOD_EXT := ko
# build defs
EXTRA_CFLAGS += $(VBOXMOD_CFLAGS) $(addprefix -I,$(KERN_INCL) $(VBOXMOD_INCL))
$(VBOXMOD_0_KFLAGS) $(KDEBUG)
+ccflags-y += $(EXTRA_CFLAGS)
$(VBOXMOD_0_TARGET)-y := $(VBOXMOD_OBJS)
obj-m += $(VBOXMOD_0_TARGET).o
Index: virtualbox-7.0.16-dfsg/include/VBox/vmm/hm_vmx.h
===================================================================
--- virtualbox-7.0.16-dfsg.orig/include/VBox/vmm/hm_vmx.h
+++ virtualbox-7.0.16-dfsg/include/VBox/vmm/hm_vmx.h
@@ -529,9 +529,11 @@
/** Suppress \#VE. */
#define VMX_BF_EPT_PT_SUPPRESS_VE_SHIFT 63
#define VMX_BF_EPT_PT_SUPPRESS_VE_MASK
UINT64_C(0x8000000000000000)
+#if !defined(READ) && !defined(WRITE)
RT_BF_ASSERT_COMPILE_CHECKS(VMX_BF_EPT_PT_, UINT64_C(0), UINT64_MAX,
(READ, WRITE, EXECUTE, MEMTYPE, IGNORE_PAT, IGN_7,
ACCESSED, DIRTY, EXECUTE_USER, IGN_59_11,
SUPER_SHW_STACK, IGN_62_61, SUPPRESS_VE));
+#endif
/** @} */
Index: virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
===================================================================
--- virtualbox-7.0.16-dfsg.orig/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
+++ virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
@@ -422,7 +422,11 @@ static void rtTimerLnxStopSubTimer(PRTTI
}
else
#endif
+# if RTLNX_VER_MIN(6,15,0)
+ timer_delete(&pSubTimer->u.Std.LnxTimer);
+#else
del_timer(&pSubTimer->u.Std.LnxTimer);
+#endif
rtTimerLnxSetState(&pSubTimer->enmState, RTTIMERLNXSTATE_STOPPED);
}
@@ -470,7 +474,11 @@ static void rtTimerLnxDestroyIt(PRTTIMER
hrtimer_cancel(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer);
else
#endif
+# if RTLNX_VER_MIN(6,15,0)
+ timer_delete_sync(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
+#else
del_timer_sync(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
+#endif
}
/*
@@ -740,7 +748,11 @@ static enum hrtimer_restart rtTimerLinux
*/
static void rtTimerLinuxStdCallback(struct timer_list *pLnxTimer)
{
+# if RTLNX_VER_MIN(6,16,0) || RTLNX_RHEL_RANGE(10,2, 10,99)
+ PRTTIMERLNXSUBTIMER pSubTimer = timer_container_of(pSubTimer, pLnxTimer,
u.Std.LnxTimer);
+# else
PRTTIMERLNXSUBTIMER pSubTimer = from_timer(pSubTimer, pLnxTimer,
u.Std.LnxTimer);
+# endif
#else
/**
* Timer callback function for standard timers.
@@ -1626,8 +1638,13 @@ RTDECL(int) RTTimerCreateEx(PRTTIMER *pp
#ifdef RTTIMER_LINUX_WITH_HRTIMER
if (pTimer->fHighRes)
{
+#if RTLNX_VER_MIN(6,15,0)
+ hrtimer_setup(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer,
+ rtTimerLinuxHrCallback, CLOCK_MONOTONIC,
HRTIMER_MODE_ABS);
+#else
hrtimer_init(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer,
CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
pTimer->aSubTimers[iCpu].u.Hr.LnxTimer.function =
rtTimerLinuxHrCallback;
+#endif
}
else
#endif
Index:
virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
===================================================================
---
virtualbox-7.0.16-dfsg.orig/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
+++
virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2013-2023 Oracle and/or its affiliates.
+ * Copyright (C) 2013-2025 Oracle and/or its affiliates.
*
* This file is part of VirtualBox base platform packages, as
* available from https://www.virtualbox.org.
@@ -82,11 +82,11 @@ typedef struct RTTHREADCTXHOOKINT
void *pvUser;
/** The linux callbacks. */
struct preempt_ops PreemptOps;
-#if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64)
+# if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64) &&
!defined(IPRT_WITHOUT_EFLAGS_AC_PRESERVING)
/** Starting with 3.1.19, the linux kernel doesn't restore kernel RFLAGS
during
* task switch, so we have to do that ourselves. (x86 code is not
affected.) */
RTCCUINTREG fSavedRFlags;
-#endif
+# endif
} RTTHREADCTXHOOKINT;
typedef RTTHREADCTXHOOKINT *PRTTHREADCTXHOOKINT;
@@ -104,10 +104,13 @@ typedef RTTHREADCTXHOOKINT *PRTTHREADCTX
static void rtThreadCtxHooksLnxSchedOut(struct preempt_notifier
*pPreemptNotifier, struct task_struct *pNext)
{
PRTTHREADCTXHOOKINT pThis = RT_FROM_MEMBER(pPreemptNotifier,
RTTHREADCTXHOOKINT, LnxPreemptNotifier);
-#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
+# if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) &&
!defined(IPRT_WITHOUT_EFLAGS_AC_PRESERVING)
+# ifdef VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV /* unclean VBox define */
RTCCUINTREG fSavedEFlags = ASMGetFlags();
- stac();
-#endif
+# else
+ RTCCUINTREG fSavedEFlags = ASMAddFlags(IPRT_X86_EFL_AC);
+# endif
+# endif
RT_NOREF_PV(pNext);
AssertPtr(pThis);
@@ -117,12 +120,12 @@ static void rtThreadCtxHooksLnxSchedOut(
pThis->pfnCallback(RTTHREADCTXEVENT_OUT, pThis->pvUser);
-#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
+# if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) &&
!defined(IPRT_WITHOUT_EFLAGS_AC_PRESERVING)
ASMSetFlags(fSavedEFlags);
-# if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64)
+# if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64)
pThis->fSavedRFlags = fSavedEFlags;
+# endif
# endif
-#endif
}
@@ -139,10 +142,13 @@ static void rtThreadCtxHooksLnxSchedOut(
static void rtThreadCtxHooksLnxSchedIn(struct preempt_notifier
*pPreemptNotifier, int iCpu)
{
PRTTHREADCTXHOOKINT pThis = RT_FROM_MEMBER(pPreemptNotifier,
RTTHREADCTXHOOKINT, LnxPreemptNotifier);
-#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
+# if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) &&
!defined(IPRT_WITHOUT_EFLAGS_AC_PRESERVING)
+# ifdef VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV /* unclean VBox define */
RTCCUINTREG fSavedEFlags = ASMGetFlags();
- stac();
-#endif
+# else
+ RTCCUINTREG fSavedEFlags = ASMAddFlags(IPRT_X86_EFL_AC);
+# endif
+# endif
RT_NOREF_PV(iCpu);
AssertPtr(pThis);
@@ -151,13 +157,13 @@ static void rtThreadCtxHooksLnxSchedIn(s
pThis->pfnCallback(RTTHREADCTXEVENT_IN, pThis->pvUser);
-#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
-# if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64)
+# if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) &&
!defined(IPRT_WITHOUT_EFLAGS_AC_PRESERVING)
+# if RTLNX_VER_MIN(3,1,19) && defined(RT_ARCH_AMD64)
fSavedEFlags &= ~RT_BIT_64(18) /*X86_EFL_AC*/;
- fSavedEFlags |= pThis->fSavedRFlags & RT_BIT_64(18) /*X86_EFL_AC*/;
-# endif
+ fSavedEFlags |= pThis->fSavedRFlags & IPRT_X86_EFL_AC;
+# endif
ASMSetFlags(fSavedEFlags);
-#endif
+# endif
}
@@ -208,9 +214,9 @@ RTDECL(int) RTThreadCtxHookCreate(PRTTHR
pThis->PreemptOps.sched_out = rtThreadCtxHooksLnxSchedOut;
pThis->PreemptOps.sched_in = rtThreadCtxHooksLnxSchedIn;
-#if RTLNX_VER_MIN(4,2,0)
+# if RTLNX_VER_MIN(4,2,0)
preempt_notifier_inc();
-#endif
+# endif
*phCtxHook = pThis;
IPRT_LINUX_RESTORE_EFL_AC();
@@ -245,9 +251,9 @@ RTDECL(int ) RTThreadCtxHookDestroy(RTTH
Assert(!pThis->fEnabled); /* paranoia */
}
-#if RTLNX_VER_MIN(4,2,0)
+# if RTLNX_VER_MIN(4,2,0)
preempt_notifier_dec();
-#endif
+# endif
ASMAtomicWriteU32(&pThis->u32Magic, ~RTTHREADCTXHOOKINT_MAGIC);
RTMemFree(pThis);
Index:
virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
===================================================================
---
virtualbox-7.0.16-dfsg.orig/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
+++
virtualbox-7.0.16-dfsg/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
@@ -148,7 +148,10 @@ static int rtR0MemKernelCopyLnxWorker(vo
if (!cb)
return VINF_SUCCESS;
- __asm__ __volatile__ ("cld\n"
+ __asm__ __volatile__ (
+# if RTLNX_VER_MAX(6,0,0) /* Do not use CLD for recent kernels since it
triggers objtool warning. */
+ "cld\n"
+# endif
"1:\n\t"
"rep; movsb\n"
"2:\n\t"
---
The errors I get when attempting to start a VM are:
---
[ 4005.928508] vboxdrv: Found 32 processor cores/threads
[ 4005.945670] vboxdrv: TSC mode is Invariant, tentative frequency 2419186883 Hz
[ 4005.945672] vboxdrv: Successfully loaded version 7.0.16_Ubuntu r162802
(interface 0x00330004)
[ 4005.955110] VBoxNetFlt: Successfully started.
[ 4005.959464] VBoxNetAdp: Successfully started.
[ 4030.345347] SUPR0GipMap: fGetGipCpu=0x1b
[ 4030.935227] vboxdrv: 0000000000000000 VMMR0.r0
[ 4031.010032] vboxdrv: 0000000000000000 VBoxDDR0.r0
[ 4031.056909] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateLargePage rcBusy=0000000000000000
[ 4031.056913] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateLargePage rcBusy=0000000000000000
[ 4031.056922] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateHandyPages
rcBusy=0000000000000000
[ 4031.056977] BUG: scheduling while atomic: EMT-0/90776/0x7ffffe01
[ 4031.056978] Modules linked in: vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm
rfcomm snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack
ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr cmac
algif_hash algif_skcipher af_alg bnep nvidia_uvm(POE) binfmt_misc xe gpu_sched
drm_gpuvm drm_gpusvm_helper drm_ttm_helper drm_exec drm_suballoc_helper
snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic
soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common
snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence
snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_acpi_intel_match
snd_soc_acpi_intel_sdca_quirks soundwire_generic_allocation snd_soc_sdw_utils
snd_soc_acpi snd_hda_codec_alc882 soundwire_bus snd_hda_codec_realtek_lib
snd_soc_sdca snd_hda_codec_generic intel_uncore_frequency crc8
snd_hda_codec_nvhdmi intel_uncore_frequency_common snd_hda_codec_hdmi
[ 4031.057001] intel_tcc_cooling snd_soc_avs x86_pkg_temp_thermal
snd_soc_hda_codec snd_hda_intel intel_powerclamp snd_hda_ext_core snd_hda_codec
snd_soc_core nls_iso8859_1 coretemp iwlmvm snd_hda_core nvidia_drm(POE)
snd_compress snd_intel_dspcfg nvidia_modeset(POE) i915 snd_intel_sdw_acpi
ac97_bus snd_pcm_dmaengine snd_hwdep mac80211 uvcvideo snd_pcm kvm_intel btusb
videobuf2_vmalloc btrtl uvc btintel videobuf2_memops
processor_thermal_device_pci btbcm videobuf2_v4l2 snd_seq_midi
processor_thermal_device videobuf2_common btmtk snd_seq_midi_event drm_buddy
libarc4 processor_thermal_wt_hint nvidia(POE) bluetooth kvm videodev
platform_temperature_control snd_rawmidi ttm processor_thermal_soc_slider
processor_thermal_rfim processor_thermal_rapl mc intel_rapl_msr iwlwifi snd_seq
mei_hdcp mei_pxp irqbypass intel_rapl_common drm_display_helper rapl
processor_thermal_wt_req snd_seq_device cmdlinepart snd_timer spi_nor mtd
processor_thermal_power_floor mxm_wmi intel_cstate snd cec mei_me i2c_i801
nvidia_wmi_ec_backlight
[ 4031.057026] clevo_wmi(OE) processor_thermal_mbox rc_core cfg80211
spi_intel_pci i2c_smbus mei int3403_thermal spi_intel soundcore
platform_profile i2c_algo_bit i2c_mux intel_pmc_core int340x_thermal_zone
pmt_telemetry pmt_discovery pmt_class int3400_thermal intel_pmc_ssram_telemetry
clevo_acpi(OE) input_leds acpi_thermal_rel acpi_pad intel_vsec intel_hid
tuxedo_io(OE) joydev serio_raw mac_hid sch_fq_codel tuxedo_keyboard(OE)
sparse_keymap msr parport_pc ppdev lp parport nvme_fabrics efi_pstore nfnetlink
dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq
dm_mirror dm_region_hash dm_log hid_multitouch hid_generic sdhci_pci nvme
polyval_clmulni thunderbolt psmouse ghash_clmulni_intel sdhci_uhs2 nvme_core
r8169 sdhci nvme_keyring intel_lpss_pci cqhci realtek nvme_auth intel_lpss
idma64 i2c_hid_acpi i2c_hid video hid wmi pinctrl_alderlake aesni_intel
[ 4031.057050] CPU: 6 UID: 1000 PID: 90776 Comm: EMT-0 Tainted: P OE
6.17.0-1012-oem #12-Ubuntu PREEMPT(voluntary)
[ 4031.057052] Tainted: [P]=PROPRIETARY_MODULE, [O]=OOT_MODULE,
[E]=UNSIGNED_MODULE
[ 4031.057053] Hardware name: Notebook PD5x_7xSNC_SND_SNE/PD5x_7xSNC_SND_SNE,
BIOS 1.07.17SMIN29 03/19/2024
[ 4031.057054] Call Trace:
[ 4031.057055] <TASK>
[ 4031.057057] dump_stack_lvl+0x76/0xa0
[ 4031.057061] dump_stack+0x10/0x20
[ 4031.057062] __schedule_bug+0x64/0x80
[ 4031.057066] __schedule+0x685/0x7a0
[ 4031.057070] ? __futex_queue+0x4a/0x60
[ 4031.057073] schedule+0x27/0x90
[ 4031.057075] futex_do_wait+0x3a/0x80
[ 4031.057077] __futex_wait+0x99/0x110
[ 4031.057078] ? __pfx_futex_wake_mark+0x10/0x10
[ 4031.057080] futex_wait+0x72/0x120
[ 4031.057081] do_futex+0x105/0x260
[ 4031.057082] __x64_sys_futex+0x129/0x200
[ 4031.057084] x64_sys_call+0x217d/0x2680
[ 4031.057087] do_syscall_64+0x80/0x920
[ 4031.057090] ? do_syscall_64+0xb6/0x920
[ 4031.057093] ? supdrvIOCtlFast+0x5b/0xd0 [vboxdrv]
[ 4031.057132] ? VBoxDrvLinuxIOCtl_7_0_16+0x64/0x270 [vboxdrv]
[ 4031.057143] ? restore_fpregs_from_fpstate+0x3d/0xc0
[ 4031.057147] ? switch_fpu_return+0x5c/0x100
[ 4031.057148] ? arch_exit_to_user_mode_prepare.isra.0+0xc2/0xe0
[ 4031.057150] ? do_syscall_64+0xb6/0x920
[ 4031.057152] ? do_syscall_64+0xb6/0x920
[ 4031.057153] ? rcu_core+0x1bd/0x390
[ 4031.057155] ? rcu_core_si+0xe/0x20
[ 4031.057156] ? handle_softirqs+0xe4/0x340
[ 4031.057159] ? arch_exit_to_user_mode_prepare.isra.0+0xd/0x100
[ 4031.057162] ? irqentry_exit_to_user_mode+0x2d/0x1d0
[ 4031.057164] ? irqentry_exit+0x43/0x50
[ 4031.057165] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 4031.057167] RIP: 0033:0x75197a498d71
[ 4031.057168] Code: 48 89 4d c8 e8 00 f8 ff ff 4c 8b 55 c8 8b 75 dc 45 31 c0
41 89 c5 48 8b 7d d0 41 b9 ff ff ff ff 44 89 e2 b8 ca 00 00 00 0f 05 <44> 89 ef
48 89 c3 e8 54 f8 ff ff e9 65 ff ff ff 0f 1f 80 00 00 00
[ 4031.057169] RSP: 002b:000075195c7fda70 EFLAGS: 00000246 ORIG_RAX:
00000000000000ca
[ 4031.057170] RAX: ffffffffffffffda RBX: 000075195400bb30 RCX: 000075197a498d71
[ 4031.057171] RDX: 0000000000000000 RSI: 0000000000000189 RDI: 000075195400bb58
[ 4031.057171] RBP: 000075195c7fdab0 R08: 0000000000000000 R09: 00000000ffffffff
[ 4031.057172] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 4031.057172] R13: 0000000000000000 R14: 000075195400bb60 R15: 000075195400bb58
[ 4031.057174] </TASK>
[ 4082.336731] tee (90993): drop_caches: 3
[ 4087.874979] vboxdrv: 0000000000000000 VMMR0.r0
[ 4087.961038] vboxdrv: 0000000000000000 VBoxDDR0.r0
[ 4088.014528] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateLargePage rcBusy=0000000000000000
[ 4088.014532] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateLargePage rcBusy=0000000000000000
[ 4088.014538] VMMR0EmtPrepareToBlock: Preemption is disabled!
pvLock=ffffcd38c9184010 pszCaller=GMMR0AllocateHandyPages
rcBusy=0000000000000000
[ 4088.014606] BUG: scheduling while atomic: EMT-0/91100/0x7ffffe01
[ 4088.014608] Modules linked in: vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm
rfcomm snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack
ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr cmac
algif_hash algif_skcipher af_alg bnep nvidia_uvm(POE) binfmt_misc xe gpu_sched
drm_gpuvm drm_gpusvm_helper drm_ttm_helper drm_exec drm_suballoc_helper
snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic
soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common
snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence
snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_acpi_intel_match
snd_soc_acpi_intel_sdca_quirks soundwire_generic_allocation snd_soc_sdw_utils
snd_soc_acpi snd_hda_codec_alc882 soundwire_bus snd_hda_codec_realtek_lib
snd_soc_sdca snd_hda_codec_generic intel_uncore_frequency crc8
snd_hda_codec_nvhdmi intel_uncore_frequency_common snd_hda_codec_hdmi
[ 4088.014632] intel_tcc_cooling snd_soc_avs x86_pkg_temp_thermal
snd_soc_hda_codec snd_hda_intel intel_powerclamp snd_hda_ext_core snd_hda_codec
snd_soc_core nls_iso8859_1 coretemp iwlmvm snd_hda_core nvidia_drm(POE)
snd_compress snd_intel_dspcfg nvidia_modeset(POE) i915 snd_intel_sdw_acpi
ac97_bus snd_pcm_dmaengine snd_hwdep mac80211 uvcvideo snd_pcm kvm_intel btusb
videobuf2_vmalloc btrtl uvc btintel videobuf2_memops
processor_thermal_device_pci btbcm videobuf2_v4l2 snd_seq_midi
processor_thermal_device videobuf2_common btmtk snd_seq_midi_event drm_buddy
libarc4 processor_thermal_wt_hint nvidia(POE) bluetooth kvm videodev
platform_temperature_control snd_rawmidi ttm processor_thermal_soc_slider
processor_thermal_rfim processor_thermal_rapl mc intel_rapl_msr iwlwifi snd_seq
mei_hdcp mei_pxp irqbypass intel_rapl_common drm_display_helper rapl
processor_thermal_wt_req snd_seq_device cmdlinepart snd_timer spi_nor mtd
processor_thermal_power_floor mxm_wmi intel_cstate snd cec mei_me i2c_i801
nvidia_wmi_ec_backlight
[ 4088.014658] clevo_wmi(OE) processor_thermal_mbox rc_core cfg80211
spi_intel_pci i2c_smbus mei int3403_thermal spi_intel soundcore
platform_profile i2c_algo_bit i2c_mux intel_pmc_core int340x_thermal_zone
pmt_telemetry pmt_discovery pmt_class int3400_thermal intel_pmc_ssram_telemetry
clevo_acpi(OE) input_leds acpi_thermal_rel acpi_pad intel_vsec intel_hid
tuxedo_io(OE) joydev serio_raw mac_hid sch_fq_codel tuxedo_keyboard(OE)
sparse_keymap msr parport_pc ppdev lp parport nvme_fabrics efi_pstore nfnetlink
dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq
dm_mirror dm_region_hash dm_log hid_multitouch hid_generic sdhci_pci nvme
polyval_clmulni thunderbolt psmouse ghash_clmulni_intel sdhci_uhs2 nvme_core
r8169 sdhci nvme_keyring intel_lpss_pci cqhci realtek nvme_auth intel_lpss
idma64 i2c_hid_acpi i2c_hid video hid wmi pinctrl_alderlake aesni_intel
[ 4088.014683] CPU: 10 UID: 1000 PID: 91100 Comm: EMT-0 Tainted: P W OE
6.17.0-1012-oem #12-Ubuntu PREEMPT(voluntary)
[ 4088.014686] Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE,
[E]=UNSIGNED_MODULE
[ 4088.014686] Hardware name: Notebook PD5x_7xSNC_SND_SNE/PD5x_7xSNC_SND_SNE,
BIOS 1.07.17SMIN29 03/19/2024
[ 4088.014687] Call Trace:
[ 4088.014689] <TASK>
[ 4088.014691] dump_stack_lvl+0x76/0xa0
[ 4088.014695] dump_stack+0x10/0x20
[ 4088.014697] __schedule_bug+0x64/0x80
[ 4088.014700] __schedule+0x685/0x7a0
[ 4088.014703] ? __futex_queue+0x4a/0x60
[ 4088.014707] schedule+0x27/0x90
[ 4088.014709] futex_do_wait+0x3a/0x80
[ 4088.014710] __futex_wait+0x99/0x110
[ 4088.014712] ? __pfx_futex_wake_mark+0x10/0x10
[ 4088.014714] futex_wait+0x72/0x120
[ 4088.014716] do_futex+0x105/0x260
[ 4088.014717] __x64_sys_futex+0x129/0x200
[ 4088.014718] x64_sys_call+0x217d/0x2680
[ 4088.014721] do_syscall_64+0x80/0x920
[ 4088.014724] ? do_syscall_64+0xb6/0x920
[ 4088.014728] ? supdrvIOCtlFast+0x5b/0xd0 [vboxdrv]
[ 4088.014755] ? VBoxDrvLinuxIOCtl_7_0_16+0x64/0x270 [vboxdrv]
[ 4088.014769] ? restore_fpregs_from_fpstate+0x3d/0xc0
[ 4088.014771] ? switch_fpu_return+0x5c/0x100
[ 4088.014773] ? arch_exit_to_user_mode_prepare.isra.0+0xc2/0xe0
[ 4088.014775] ? do_syscall_64+0xb6/0x920
[ 4088.014777] ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[ 4088.014779] ? do_syscall_64+0xb6/0x920
[ 4088.014781] ? arch_exit_to_user_mode_prepare.isra.0+0xc2/0xe0
[ 4088.014782] ? do_syscall_64+0xb6/0x920
[ 4088.014784] ? arch_exit_to_user_mode_prepare.isra.0+0xc2/0xe0
[ 4088.014786] ? do_syscall_64+0xb6/0x920
[ 4088.014787] ? do_syscall_64+0xb6/0x920
[ 4088.014789] ? do_syscall_64+0xb6/0x920
[ 4088.014790] ? exc_page_fault+0x90/0x1b0
[ 4088.014793] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 4088.014794] RIP: 0033:0x700b4fc98d71
[ 4088.014796] Code: 48 89 4d c8 e8 00 f8 ff ff 4c 8b 55 c8 8b 75 dc 45 31 c0
41 89 c5 48 8b 7d d0 41 b9 ff ff ff ff 44 89 e2 b8 ca 00 00 00 0f 05 <44> 89 ef
48 89 c3 e8 54 f8 ff ff e9 65 ff ff ff 0f 1f 80 00 00 00
[ 4088.014797] RSP: 002b:0000700b307faa70 EFLAGS: 00000246 ORIG_RAX:
00000000000000ca
[ 4088.014798] RAX: ffffffffffffffda RBX: 0000700b2800bb80 RCX: 0000700b4fc98d71
[ 4088.014799] RDX: 0000000000000000 RSI: 0000000000000189 RDI: 0000700b2800bbac
[ 4088.014800] RBP: 0000700b307faab0 R08: 0000000000000000 R09: 00000000ffffffff
[ 4088.014801] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 4088.014801] R13: 0000000000000000 R14: 0000700b2800bbb0 R15: 0000700b2800bbac
[ 4088.014803] </TASK>
[ 4088.014838] NOHZ tick-stop error: local softirq work is pending, handler
#80!!!
[ 4104.440911] EMT-0[91100]: segfault at 700b086387d0 ip 0000700b086387d0 sp
0000700b307fac38 error 14 in VBoxDD.so[387d0,700b08627000+1e2000] likely on CPU
4 (core 8, socket 0)
[ 4104.440919] Code: Unable to access opcode bytes at 0x700b086387a6.
[ 4104.440959] BUG: scheduling while atomic: EMT-0/91100/0x7ffffe01
[ 4104.440960] Modules linked in: vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ccm
rfcomm snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack
ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat nft_chain_nat nf_nat
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables bridge stp llc qrtr cmac
algif_hash algif_skcipher af_alg bnep nvidia_uvm(POE) binfmt_misc xe gpu_sched
drm_gpuvm drm_gpusvm_helper drm_ttm_helper drm_exec drm_suballoc_helper
snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic
soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common
snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence
snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_acpi_intel_match
snd_soc_acpi_intel_sdca_quirks soundwire_generic_allocation snd_soc_sdw_utils
snd_soc_acpi snd_hda_codec_alc882 soundwire_bus snd_hda_codec_realtek_lib
snd_soc_sdca snd_hda_codec_generic intel_uncore_frequency crc8
snd_hda_codec_nvhdmi intel_uncore_frequency_common snd_hda_codec_hdmi
[ 4104.440981] intel_tcc_cooling snd_soc_avs x86_pkg_temp_thermal
snd_soc_hda_codec snd_hda_intel intel_powerclamp snd_hda_ext_core snd_hda_codec
snd_soc_core nls_iso8859_1 coretemp iwlmvm snd_hda_core nvidia_drm(POE)
snd_compress snd_intel_dspcfg nvidia_modeset(POE) i915 snd_intel_sdw_acpi
ac97_bus snd_pcm_dmaengine snd_hwdep mac80211 uvcvideo snd_pcm kvm_intel btusb
videobuf2_vmalloc btrtl uvc btintel videobuf2_memops
processor_thermal_device_pci btbcm videobuf2_v4l2 snd_seq_midi
processor_thermal_device videobuf2_common btmtk snd_seq_midi_event drm_buddy
libarc4 processor_thermal_wt_hint nvidia(POE) bluetooth kvm videodev
platform_temperature_control snd_rawmidi ttm processor_thermal_soc_slider
processor_thermal_rfim processor_thermal_rapl mc intel_rapl_msr iwlwifi snd_seq
mei_hdcp mei_pxp irqbypass intel_rapl_common drm_display_helper rapl
processor_thermal_wt_req snd_seq_device cmdlinepart snd_timer spi_nor mtd
processor_thermal_power_floor mxm_wmi intel_cstate snd cec mei_me i2c_i801
nvidia_wmi_ec_backlight
[ 4104.441002] clevo_wmi(OE) processor_thermal_mbox rc_core cfg80211
spi_intel_pci i2c_smbus mei int3403_thermal spi_intel soundcore
platform_profile i2c_algo_bit i2c_mux intel_pmc_core int340x_thermal_zone
pmt_telemetry pmt_discovery pmt_class int3400_thermal intel_pmc_ssram_telemetry
clevo_acpi(OE) input_leds acpi_thermal_rel acpi_pad intel_vsec intel_hid
tuxedo_io(OE) joydev serio_raw mac_hid sch_fq_codel tuxedo_keyboard(OE)
sparse_keymap msr parport_pc ppdev lp parport nvme_fabrics efi_pstore nfnetlink
dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq
dm_mirror dm_region_hash dm_log hid_multitouch hid_generic sdhci_pci nvme
polyval_clmulni thunderbolt psmouse ghash_clmulni_intel sdhci_uhs2 nvme_core
r8169 sdhci nvme_keyring intel_lpss_pci cqhci realtek nvme_auth intel_lpss
idma64 i2c_hid_acpi i2c_hid video hid wmi pinctrl_alderlake aesni_intel
[ 4104.441021] CPU: 4 UID: 1000 PID: 91100 Comm: EMT-0 Tainted: P W OE
6.17.0-1012-oem #12-Ubuntu PREEMPT(voluntary)
[ 4104.441023] Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE,
[E]=UNSIGNED_MODULE
[ 4104.441024] Hardware name: Notebook PD5x_7xSNC_SND_SNE/PD5x_7xSNC_SND_SNE,
BIOS 1.07.17SMIN29 03/19/2024
[ 4104.441024] Call Trace:
[ 4104.441038] <TASK>
[ 4104.441040] dump_stack_lvl+0x76/0xa0
[ 4104.441043] dump_stack+0x10/0x20
[ 4104.441044] __schedule_bug+0x64/0x80
[ 4104.441047] __schedule+0x685/0x7a0
[ 4104.441049] schedule+0x27/0x90
[ 4104.441050] schedule_timeout+0x104/0x110
[ 4104.441052] __wait_for_common+0x95/0x180
[ 4104.441053] ? __pfx_schedule_timeout+0x10/0x10
[ 4104.441055] wait_for_completion_state+0x21/0x50
[ 4104.441056] vfs_coredump+0x306/0x710
[ 4104.441059] get_signal+0x737/0x840
[ 4104.441061] arch_do_signal_or_restart+0x41/0x200
[ 4104.441064] irqentry_exit_to_user_mode+0x13b/0x1d0
[ 4104.441064] irqentry_exit+0x43/0x50
[ 4104.441065] exc_page_fault+0x90/0x1b0
[ 4104.441067] asm_exc_page_fault+0x27/0x30
[ 4104.441068] RIP: 0033:0x700b086387d0
[ 4104.441069] Code: Unable to access opcode bytes at 0x700b086387a6.
[ 4104.441070] RSP: 002b:0000700b307fac38 EFLAGS: 00010246
[ 4104.441070] RAX: 0000000000000000 RBX: 0000700b33068000 RCX: 0000700b307fad04
[ 4104.441071] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000700b33068cc0
[ 4104.441071] RBP: 0000700b307fac80 R08: 0000000000000002 R09: 0000700b33068cc0
[ 4104.441072] R10: 0000700b3320b0e0 R11: 0000700b33458700 R12: 0000000000000000
[ 4104.441072] R13: 0000000000000002 R14: 0000000000000002 R15: 0000700b307fad04
[ 4104.441074] </TASK>
---
I think there probably is an incompatibility in the VMM itself, not just
the kernel modules. Trying to backport VirtualBox 7.2 to work with Qt
6.4 sounds *probably* more practical, although I have not yet attempted
this.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136499
Title:
virtualbox-dkms FTBFS in Noble with the linux-6.17 kernel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2136499/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs