When starting Guest OS on Virtualbox-7.0.12 (Windows 10 x64): ============track=============== WARNING: CPU: 2 PID: 3938 at /var/tmp/portage/app-emulation/virtualbox-modules-7.0.12/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:564 VBoxHost_RTTimerReleaseSystemGranularity+0x8b/0xe0 [vboxdrv] Modules linked in: nvidia_uvm(PO) nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) snd_hda_codec_hdmi vboxnetadp(O) vboxnetflt(O) vboxdrv(O) CPU: 2 PID: 3938 Comm: EMT-0 Tainted: P O 6.6.13-gentoo-x86_64 #1 Hardware name: ASUS System Product Name/PRIME B450M-A II, BIOS 2409 12/02/2020 RIP: 0010:VBoxHost_RTTimerReleaseSystemGranularity+0x8b/0xe0 [vboxdrv] Code: c1 f8 06 48 c1 e0 0c 48 83 fe 40 74 1d 48 85 d2 75 1a 48 ba 00 f0 ff ff ff ff 0f 00 48 21 d0 48 89 01 31 c0 5d e9 05 24 cc e1 <0f> 0b f6 c2 01 75 1e 48 f7 d0 48 be 00 f0 ff ff ff ff 0f 00 48 21 RSP: 0018:ffffc900030e7c30 EFLAGS: 00010246 RAX: 000000011ecae000 RBX: ffffc90004000000 RCX: ffff888105b8c7f0 RDX: 0000000000000161 RSI: 0000000000000040 RDI: ffff888101bd4010 RBP: ffffc900030e7c30 R08: ffffffffa002e9a0 R09: ffffc900030e7da0 R10: 0000000000000000 R11: ffffc98003efe000 R12: ffffc90003efe000 R13: 0000000000000001 R14: ffff888105b8c7f8 R15: ffffc900030e7d5c FS: 00007f95b82e06c0(0000) GS:ffff88841e100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9594d72000 CR3: 0000000123abe000 CR4: 0000000000350ee0 Call Trace: <TASK> ? VBoxHost_RTTimerReleaseSystemGranularity+0x8b/0xe0 [vboxdrv] ? __warn+0x98/0x160 ? VBoxHost_RTTimerReleaseSystemGranularity+0x8b/0xe0 [vboxdrv] ? report_bug+0x1b5/0x1e0 ? handle_bug+0x3a/0x70 ? exc_invalid_op+0x17/0x70 ? asm_exc_invalid_op+0x16/0x20 ? VBoxHost_RTTimerReleaseSystemGranularity+0x30/0xe0 [vboxdrv] ? VBoxHost_RTTimerReleaseSystemGranularity+0x8b/0xe0 [vboxdrv] ? VBoxHost_RTTimerReleaseSystemGranularity+0x30/0xe0 [vboxdrv] apply_to_pte_range+0x9e/0x220 apply_to_pmd_range+0xfc/0x230 ? VBoxHost_RTTimerReleaseSystemGranularity+0x30/0xe0 [vboxdrv] __apply_to_page_range+0x13d/0x2f0 ? VBoxHost_RTTimerReleaseSystemGranularity+0x30/0xe0 [vboxdrv] rtR0MemObjNativeProtect+0x9c/0x110 [vboxdrv] VBoxHost_RTR0MemObjProtect+0x87/0xc0 [vboxdrv] supdrvLdrLoadError+0x84d/0x2d60 [vboxdrv] supdrvLdrLoadError+0x2c94/0x2d60 [vboxdrv] ? rep_movs_alternative+0x5b/0x70 SUPR0FpuEnd+0x39a/0x680 [vboxdrv] SUPR0FpuEnd+0x517/0x680 [vboxdrv] __x64_sys_ioctl+0xbb/0xf0 ? exit_to_user_mode_prepare+0x52/0x1a0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f95d0c4318b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f95b82ded20 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000030 RCX: 00007f95d0c4318b RDX: 00007f9594ab1010 RSI: 0000000000005684 RDI: 0000000000000007 RBP: 00007f95b82ded80 R08: 0000000000000000 R09: 00007f95b82dec00 R10: 0000000000000010 R11: 0000000000000246 R12: 00007f95b988f4e9 R13: 00007f956c000ca0 R14: 00007f9594ab1010 R15: 00007f95d0a69b20 </TASK> ---[ end trace 0000000000000000 ]--- vboxdrv: 0000000021df83ee VMMR0.r0 vboxdrv: 000000009369313e VBoxDDR0.r0 ============================================= ! Same with virtualbox-7.0.14 Reproducible: Always Steps to Reproduce: 1. Downgraded to sys-kernel/gentoo-sources:6.1.74 2. There are no vboxdrv error messages emerge --info Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r9, 6.1.74-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.1.74-gentoo-x86_64-x86_64-AMD_Ryzen_5_3500_6-Core_Processor-with-glibc2.38 KiB Mem: 16281412 total, 7110356 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Mon, 29 Jan 2024 11:45:01 +0000 Head commit of repository gentoo: 96064ce3d91811084f7fecbeaa89c386a2f2ba85 Timestamp of repository oschtan: Thu, 04 Jun 2020 17:26:08 +0000 sh bash 5.2_p26 ld GNU ld (Gentoo 2.41 p4) 2.41.0 ccache version 4.8.3 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.16.5-r1::gentoo dev-build/cmake: 3.28.1-r1::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.1-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.11.7::gentoo dev-lang/rust-bin: 1.74.1::gentoo dev-util/ccache: 4.8.3::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/openrc: 0.53::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.2.1_p20240113-r1::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://mirror.yandex.ru/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-metamanifest: no sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 3 oschtan location: /usr/local/portage masters: gentoo volatile: True ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE google-chrome RAR PUEL-11 Oracle-BCLA-JavaSE NVIDIA-r2 unRAR linux-firmware as-is bh-luxi YDSLA free-noncomm JasPer2.0 2dboy-EULA AdobeFlash-11.x BSD Lingvo linux-fw-redistributable no-source-code all-rights-reserved CMake broadcom_bcm20702" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=znver2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=znver2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="ru" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="10bit X acpi alsa amd64 apng branding bzip2 cleartype_hinting cli crypt cube dbus dri elogind fbcondecor ffmpeg fortran gallium gles2 gpm gtk gvfs iconv jpeg jpeg2k layers libkms libtirpc mp3 mtp multilib natspec ncurses nls ntp nvenc ogg openal opengl openmp pam pcre png policykit pulseaudio rar readline savedconfig seccomp split-usr sqlite ssl sslv3 svg symlink test-rust theora tiff truetype udisks unicode upower v4l vdpau vorbis vpx vulkan wayland webp x264 x265 xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" COLLECTD_PLUGINS="syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="i386 x86_64" VIDEO_CARDS="nvidia" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Perhaps then it is worth putting a warning in the ebuild or eclass for virtulabox-modules that they do not work properly with kernel-6.6.X. Since Guest OS eventually starts with kernel-6.6.X and even works, but when turned off the graphics stop working (requiring a restart of the system or, possibly, only the X server), such a mention may be important for users.
I can reproduce the issue with a 6.6 kernel, but it looks mostly harmless on my system. The kernel warning shows up only once when a virtual machine is first started, then everything seems to work fine, including starting and stopping multiple machines multiple times, so the warning is mostly informative, at least in my case. I added a note on the wiki. If you can, please add a comment to the upstream bug about the severity of the issue on your system.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d6d2d875d4d1b5a46ef66c7524e197d1f73623 commit b8d6d2d875d4d1b5a46ef66c7524e197d1f73623 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2024-02-24 08:59:33 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2024-02-24 09:01:55 +0000 app-emulation/virtualbox-modules: patch for kernel 6.6 Apply upstream patch for module crash under kenrel 6.6.x. Closes: https://bugs.gentoo.org/923277 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> ...tualbox-modules-7.0.14-kernel-6.6-warning.patch | 27 +++++++++++++++ ....ebuild => virtualbox-modules-6.1.48-r1.ebuild} | 4 +++ .../virtualbox-modules-6.1.50-r1.ebuild | 38 ++++++++++++++++++++++ .../virtualbox-modules-7.0.12-r1.ebuild | 38 ++++++++++++++++++++++ ....ebuild => virtualbox-modules-7.0.14-r1.ebuild} | 4 +++ 5 files changed, 111 insertions(+)