[Bug]: Guest Additions 7.2.20 vboxvideo fails to build on Linux kernel 6.12.113 (drm_fb_helper_restore_fbdev_mode_unlocked: too few arguments)

未關閉 適合新手
#918 9 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 6 天內回覆

@Berbe 已經在處理了。

開始於 2026年11月3日。

  • #955 來自 @Berbe —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
76/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
c, linux

研究方向

故障位於 src/vboxguest-7.2.20/vboxvideo/vbox_main.c 中的 vbox_driver_lastclose;先檢查 issue #845 相關修正所使用的核心版本保護條件。使用 Debian 的 6.12.113 標頭檔重現模組建置,並確認版本保護條件能處理新增的引數,同時維持與較舊核心的相容性;當 vboxvideo 能針對兩種核心 API 變體成功建置時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

bug
Version

7.2.20

Host OS Type

Windows

Host OS name + version

Windows 11

Host Architecture

x86

Guest OS Type

Linux

Guest Architecture

x86

Guest OS name + version

Debian 13 - Linux kernel 6.12.113

Component

Guest Additions/Installer

What happened?

After upgrading a Debian 13 guest to kernel 6.12.113+deb13-amd64, the
Guest Additions 7.2.20 kernel modules no longer build. vboxguest and
vboxsf build without errors; vboxvideo fails:

/tmp/vbox.0/vbox_main.c: In function 'vbox_driver_lastclose':
/tmp/vbox.0/vbox_main.c:562:17: error: too few arguments to function 'drm_fb_helper_restore_fbdev_mode_unlocked'
562 | drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/vbox_drv.h:166,
from /tmp/vbox.0/vbox_main.c:31:
/usr/src/linux-headers-6.12.113+deb13-common/include/drm/drm_fb_helper.h:247:5: note: declared here
247 | int drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper fb_helper,
make
** [.../scripts/Makefile.build:234: /tmp/vbox.0/vbox_main.o] Error 1
make: *** [/tmp/vbox.0/Makefile-footer.gmk:146: vboxvideo] Error 2

The DRM helper drm_fb_helper_restore_fbdev_mode_unlocked() gained a
second argument (bool force) in a 6.12.y stable update, now shipped by
Debian. The previous Debian kernel (<6.12.xx+deb13-amd64>) built the
module without errors.

This is the same class of problem as #845 (drm_fb_helper_alloc_info
change in 6.12.107, fixed in 7.2.20): a DRM API change backported into
the 6.12 stable series, so a check on the mainline version alone is not
enough.

Workaround / proposed fix (tested locally, module builds and loads):
in src/vboxguest-7.2.20/vboxvideo/vbox_main.c, pass the new argument:

  • drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper);
  • drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper, false);

This should be guarded by a kernel version check covering
6.12.113+ (and whichever mainline version introduced the change),
similar to the fix for #845.

vboxadd-setup.log

How can we reproduce this?
  1. Debian 13 amd64 guest with Guest Additions 7.2.20 installed from the
    Oracle ISO (VBoxLinuxAdditions.run).
  2. apt update && apt upgrade to linux-image-6.12.113+deb13-amd64 and
    linux-headers-6.12.113+deb13-amd64.
  3. Run /sbin/rcvboxadd setup (or reboot).
  4. Check /var/log/vboxadd-setup.log: the vboxvideo build fails as above.
Did you upload all of your necessary log files, screenshots, etc.?
  • Yes, I've uploaded all pertinent files to this issue.
主要語言
C
星號
1.4k
分支
219
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

VirtualBox/virtualbox 的其他 Issue

查看 VirtualBox/virtualbox 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。