virtualbox-dkms FTBS on jammy with linux 6.5

Bug #2045001 reported by Andrea Righi
This bug report is a duplicate of:  Bug #2017101: [SRU] Virtualbox 7.0.12 and 6.1.48. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
New
Undecided
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

[Impact]

/var/lib/dkms/virtualbox/6.1.38/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1228:18: error: too many arguments to function ‘get_user_pages’
 1228 | rc = get_user_pages(R3Ptr, /* Where from. */
      | ^~~~~~~~~~~~~~
[Test case]

 $ sudo apt install virtualbox-dkms

[Fix]

Apply the required changes to the virtualbox kernel module to properly support the new linux 6.5 ABI.

[Regression potential]

We may experience regressions in virtualbox, especially on the systems that are using the new 6.5 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: virtualbox-dkms 6.1.38-dfsg-3~ubuntu1.22.04.1
ProcVersionSignature: User Name 6.5.0-14.14~22.04.1-generic 6.5.3
Uname: Linux 6.5.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/vdb)
Date: Tue Nov 28 09:50:43 2023
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: virtualbox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to use virtualbox with the new 6.5 kernel in jammy

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff has been tested both with the GA kernel 5.15 and the new 6.5 kernel.

== GA kernel ==

Building for 5.15.0-91-generic
Building initial module for 5.15.0-91-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

vboxdrv.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-91-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-91-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.15.0-91-generic/updates/dkms/

== 6.5 kernel ==

...
Building for 6.5.0-14-generic
Building initial module for 6.5.0-14-generic
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

vboxdrv.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-14-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-14-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.5.0-14-generic/updates/dkms/

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.