VirtualBox

Opened 12 years ago

Closed 12 years ago

#11664 closed defect (fixed)

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

Reported by: kevinoid Owned by:
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 (3)

comment:1 by Frank Mehnert, 12 years ago

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

comment:2 by Frank Mehnert, 12 years ago

Summary: Please support compiling with CONFIG_USER_NS=yPlease support compiling with CONFIG_USER_NS=y => Fixed in SVN

comment:3 by Frank Mehnert, 12 years ago

Resolution: fixed
Status: newclosed

Fix is part of the 4.2.12 release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette