[Pkg-virtualbox-devel] Bug#743291: virtualbox-dkms: Kernel oops when loading module compiled by gcc 4.7

Andreas U. Trottmann andreas.trottmann at werft22.com
Tue Apr 1 13:31:32 UTC 2014


Package: virtualbox-dkms
Version: 4.1.18-dfsg-2+deb7u2
Severity: normal

Dear Maintainer,

When loading your own kernel modules (via virtualbox-dkms) compiled with 
gcc (Version: 4:4.7.2-1, from wheezy) on an i386 system, the system generates a
kernel oops and vitualbox can't be used.

Apparently, this is due to a compiler bug, for which upstream has
committed a workaround: https://www.virtualbox.org/changeset/44302/vbox#file0

It appears this is fixed in a later gcc version as well (see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940), but I would appreciate the
fix being included in the Debian packages - it appears to be a simple enough
fix that could help a lot of users.


For reference, here's a copy of a kernel oops generated by the faulty module:


BUG: unable to handle kernel NULL pointer dereference at 00000900
IP: [<f8bf7aea>] VBoxHost_RTR0MemObjFree+0x294/0x294 [vboxdrv]
*pdpt = 000000001af1b001 *pde = 0000000000000000 
Oops: 0000 [#1] SMP 
Modules linked in: vboxdrv(O+) des_generic ecb md4 hmac nls_utf8 cifs ppdev lp crc32c ib_iser rdma_cm ib_addr iw_cm ib_cm ib_sa ib_madi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd nfs nfs_acl auth_rpcgss fscache lockd sunrpc ext4 crc16 jbd2 xt_tcpudp iptable_mangle xt_mark 8021q garp stp iptat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables mptctl loop psmouse snd_pcm snd_page_alloc snd_timer snd soundcore via686a joydev serio_raw evdev pc2c_viapro i2c_core ibmasm processor parport_pc parport thermal_sys button ext3 mbcache jbd dm_mod md_mod microcode sd_mod crc_t10dif sg qla2xxx sr_mod cdrom scsi_transi scsi_transport_spi ata_generic mptscsih scsi_tgt tg3 e1000 mptbase libphy floppy pata_via libata uhci_hcd ehci_hcd scsi_mod usbcore usb_common [last unloaded: scsi_wait_scan]

Pid: 25349, comm: modprobe Tainted: G           O 3.2.54 #1 IBM eserver xSeries 445 -[88704RY]-/Node 1 SMP Module 1
EIP: 0060:[<f8bf7aea>] EFLAGS: 00010293 CPU: 5
EIP is at VBoxHost_RTR0MemObjGetPagePhysAddr+0x0/0x67 [vboxdrv]
EAX: ed475000 EBX: ed475000 ECX: 2d475000 EDX: 00000002
ESI: f8c11768 EDI: 00000900 EBP: 00000000 ESP: d34d9e94
 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Process modprobe (pid: 25349, ti=d34d8000 task=f70aa880 task.ti=d34d8000)
Stack:
 f8bf308f f70bf310 00000000 f70bf310 000000d0 c10c2a9b 00000020 000000d0
 00000018 f8bf854b 00000246 00000000 00000008 d34d9eec 00000018 f8bf854b
 00000008 00000000 00001000 00017719 f8c1b000 f8bf6cb7 d1ff2320 f8bf6cea
Call Trace:
 [<f8bf308f>] ? supdrvInitDevExt+0xdd/0x72d [vboxdrv]
 [<c10c2a9b>] ? __kmalloc+0x92/0x9e
 [<f8bf854b>] ? rtR0MemAllocEx+0x69/0xbc [vboxdrv]
 [<f8bf854b>] ? rtR0MemAllocEx+0x69/0xbc [vboxdrv]
 [<f8c1b000>] ? 0xf8c1afff
 [<f8bf6cb7>] ? rtR0MemAlloc+0x8/0x15 [vboxdrv]
 [<f8bf6cea>] ? VBoxHost_RTMemAllocTag+0xb/0x18 [vboxdrv]
 [<f8bfab1c>] ? VBoxHost_RTSpinlockCreate+0xc/0x30 [vboxdrv]
 [<f8c1b000>] ? 0xf8c1afff
 [<f8c1b050>] ? VBoxDrvLinuxInit+0x50/0x1000 [vboxdrv]
 [<f8c1b000>] ? 0xf8c1afff
 [<c1003074>] ? do_one_initcall+0x66/0x10e
 [<f8c1b000>] ? 0xf8c1afff
 [<c1062241>] ? sys_init_module+0x1465/0x1644
 [<c12c9cdf>] ? sysenter_do_call+0x12/0x28
Code: fe ff ff e9 cf fe ff ff 8b 4a 1c 85 c9 0f 84 47 ff ff ff 8d 34 8d fc ff ff ff 89 4c 24 04 e9 5c ff ff ff 83 c4 08 5b 5e 5f 5d c3
7 04 8d 91 00 10 00 00 81 fa ff 1f 00 00 76 45 81 39 
EIP: [<f8bf7aea>] VBoxHost_RTR0MemObjGetPagePhysAddr+0x0/0x67 [vboxdrv] SS:ESP 0068:d34d9e94
CR2: 0000000000000900
---[ end trace 2f3b2a25cd38b193 ]---


Kind regards,

Andreas Trottmann



-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.54 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtualbox-dkms depends on:
ii  dkms        2.2.0.3-1.2
ii  dpkg        1.16.12
ii  virtualbox  4.1.18-dfsg-2+deb7u2

virtualbox-dkms recommends no packages.

virtualbox-dkms suggests no packages.

-- no debconf information



More information about the Pkg-virtualbox-devel mailing list