[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)
維護者通常 6 天內回覆
評估
- 難度
- 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 內容生成。
描述
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.
How can we reproduce this?
- Debian 13 amd64 guest with Guest Additions 7.2.20 installed from the
Oracle ISO (VBoxLinuxAdditions.run). - apt update && apt upgrade to linux-image-6.12.113+deb13-amd64 and
linux-headers-6.12.113+deb13-amd64. - Run /sbin/rcvboxadd setup (or reboot).
- 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 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
VirtualBox/virtualbox 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
VirtualBox/virtualbox#979 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 12/100
VirtualBox/virtualbox#981 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 8/100
VirtualBox/virtualbox#980 ·
維護者通常 6 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 18/100
VirtualBox/virtualbox#977 ·
維護者通常 6 天內回覆
-
bug
難度 5/5 一週以上 新手友好度 25/100
VirtualBox/virtualbox#975 · 1 則留言 ·
維護者通常 6 天內回覆
查看 VirtualBox/virtualbox 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
ROCm/rocm-libraries#15866 ·
維護者通常 2 天內回覆
-
[Qt] Fix QString conversion for game name in game_list_actions.cpp可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 1/5 1 小時以內 新手友好度 66/100
維護者通常 1 天內回覆
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
Status: Opened
難度 2/5 1-3 小時 新手友好度 62/100
-
Status: Opened
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆