[vbox-dev] modprobe vboxdrv causes kernel NULL pointer dereference on Debian systems

Frank Mehnert frank.mehnert at oracle.com
Thu Aug 23 12:35:59 GMT 2012


Hi Gerald,

On Wednesday 22 August 2012 11:56:09 Gerald Schnabel wrote:
> Hello vbox-dev,
> 
> on Debian systems installation of VirtualBox 4.1.18 & 4.1.20
> fails with
> 
> vboxdrv: Found n processor cores.
> BUG: unable to handle kernel NULL pointer dereference at 00000900
> IP: [<fcbdcb6a>] VBoxHost_RTR0MemObjFree+0x294/0x294 [vboxdrv]
> *pdpt = 0000000031d34001 *pde = 0000000000000000
> Oops: 0000 [#1] SMP
> [...]
> 
> The problem was first reported on the VirtualBox forums here:
> 
> BUG: unable to handle kernel NULL pointer dereference at 000
> https://forums.virtualbox.org/viewtopic.php?f=1&t=50435
> 
> And again here:
> 
> Can not install on Debian
> https://forums.virtualbox.org/viewtopic.php?f=7&t=50960
> 
> I've tracked the problem down to the definitions of RT_LIKELY
> & RT_UNLIKELY in
> /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/cdefs.h
> 
> If -DFORTIFY_RUNNING (-DLOG_ENABLED works too!) is added to the
> KFLAGS of the vboxdrv Makefile the module loads without problems!

I'm running Debian/Sid and I never saw such a problem. I also use
gcc-4.7. Could you send me two vboxdrv.ko modules by private email,
one which would crash (without -DFORTIFY_RUNNING / -DLOG_ENABLED) and
one module which would not crash. I would like to compare the generated
code.

Thank you!

Frank

> See my post here:
> https://forums.virtualbox.org/viewtopic.php?f=7&t=50960&start=15
> 
> localhost:~# cat /etc/debian_version
> wheezy/sid
> localhost:~# uname -a
> Linux localhost 3.5.2 #1 SMP Wed Aug 15 21:19:06 CEST 2012 i686 GNU/Linux
> localhost:~# gcc --version
> gcc (Debian 4.7.1-2) 4.7.1
> 
> VirtualBox from virtualbox.org installed with dpkg -i
> 
> localhost:~# dpkg -i virtualbox-4.1_4.1.20-80170~Debian~wheezy_i386.deb
> 
> gcc problem/bug?
> 
> I did not create a new ticket on the bug tracker as compile problems
> should be reported on the devel mailing list.
> 
> Regards
> Gerald
> 
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> https://www.virtualbox.org/mailman/listinfo/vbox-dev

-- 
Dr.-Ing. Frank Mehnert
Senior Manager Software Development Desktop Virtualization, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20120823/397bd5ef/attachment.sig>


More information about the vbox-dev mailing list