VirtualBox

Ticket #11664 (closed defect: fixed)

Opened 13 months ago

Last modified 12 months ago

Please support compiling with CONFIG_USER_NS=y => Fixed in SVN

Reported by: kevinoid Owned by:
Priority: major Component: other
Version: VirtualBox 4.2.10 Keywords:
Cc: Guest type: other
Host type: other

Description

When compiling the VirtualBox kernel module with recent kernels with CONFIG_USER_NS enabled, the compile fails with the following messages:

/path-to/vboxdrv/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxUid’: /path-to/vboxdrv/linux/SUPDrv-linux.c:226:5: error: incompatible types when returning type ‘kuid_t’ but ‘RTUID’ was expected /path-to/vboxdrv/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxGid’: /path-to/vboxdrv/linux/SUPDrv-linux.c:235:5: error: incompatible types when returning type ‘kgid_t’ but ‘RTGID’ was expected /path-to/vboxdrv/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxEuid’: /path-to/vboxdrv/linux/SUPDrv-linux.c:244:5: error: incompatible types when returning type ‘kuid_t’ but ‘RTUID’ was expected /path-to/vboxdrv/linux/SUPDrv-linux.c:248:1: warning: control reaches end of non-void function [-Wreturn-type] /path-to/vboxdrv/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxUid’: /path-to/vboxdrv/linux/SUPDrv-linux.c:230:1: warning: control reaches end of non-void function [-Wreturn-type] /path-to/vboxdrv/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxGid’: /path-to/vboxdrv/linux/SUPDrv-linux.c:239:1: warning: control reaches end of non-void function [-Wreturn-type]

This is due to CONFIG_UIDGID_STRICT_TYPE_CHECKS, which is selected by CONFIG_USER_NS and causes kuid_t and kgid_t to be defined as structs.

This was recently noted on the vbox-dev ML <https://www.virtualbox.org/pipermail/vbox-dev/2013-March/011292.html>.

I also came across a patch to address the issue < https://github.com/NixOS/nixpkgs/commit/1029ca5767e3d27fbfbeb19a845ffee3485c028f>, although I have no knowledge of its suitability and have not tested it.

Thanks!

Change History

comment:1 Changed 13 months ago by frank

Will be fixed in the next maintenance release. The relevant fixes are r44923 and r45300.

comment:2 Changed 13 months ago by frank

  • Summary changed from Please support compiling with CONFIG_USER_NS=y to Please support compiling with CONFIG_USER_NS=y => Fixed in SVN

comment:3 Changed 12 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of the 4.2.12 release.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use