Gentoo Archives: gentoo-hardened

From: "René Rhéaume" <rene.rheaume@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] mmap bug trying to run VirtualBox with ~hardened-sources-2.6.23
Date: Sat, 01 Dec 2007 21:19:53
Message-Id: 35572ca80712011317i2e079784ub78b0c0042c2b82e@mail.gmail.com
1 When I try to start a virtual machine VirtualBox 1.5.2 OSE and the
2 host kernel is ~hardened-sources-2.6.23, the virtual machine window
3 freezes and I find the following in dmesg :
4
5 ------------[ cut here ]------------
6 kernel BUG at mm/mmap.c:1695!
7 invalid opcode: 0000 [#1]
8 PREEMPT SMP
9 Modules linked in: bttv video_buf firmware_class ir_common
10 compat_ioctl32 i2c_algo_bit btcx_risc tveeprom videodev v4l2_common
11 v4l1_compat ipv6 af_packet nf_conntrack_ipv4 xt_state nf_conntrack
12 nfnetlink xt_limit xt_tcpudp iptable_filter ip_tables x_tables
13 nls_iso8859_1 nls_cp850 vfat fat xfs usb_storage snd_hda_intel snd_pcm
14 snd_timer snd soundcore snd_page_alloc ohci1394 ieee1394 ohci_hcd
15 i2c_nforce2 forcedeth ehci_hcd amd74xx amd64_agp agpgart 8139too mii
16 cpufreq_conservative powernow_k8 freq_table processor vboxdrv usbhid
17 hid usbcore ff_memless ide_scsi
18 CPU: 0
19 EIP: 0060:[<00069322>] Not tainted VLI
20 EFLAGS: 00210206 (2.6.23-hardened-r2 #2)
21 eax: 00000000 ebx: 0001a000 ecx: d5cdb4d0 edx: d5cdb528
22 esi: 4bea5000 edi: 00084400 ebp: 00000000 esp: d5cf3ec4
23 ds: 0068 es: 0068 fs: 00d8 gs: 0033 ss: 0068
24 Process VirtualBox (pid: 5865, ti=d5cf2000 task=d5cf0000 task.ti=d5cf2000)
25 Stack: d5cdb4d0 d5cdb3c8 d5cdb4d0 0006a5c0 0000025a 083b9200 4be24000 d5c8ec00
26 00000000 d5cf3f40 00000000 4bea5000 4be24000 d5c8ec00 00000000 0006b2ea
27 4bea5000 00100073 00000000 00000000 0004be24 00000000 00081000 ac98bab0
28 Call Trace:
29 [<0006a5c0>] <0> [<0006b2ea>] <0> [<00100073>] <0> [<0004be24>] <0>
30 [<00081000>] <0> [<00081000>] <0> [<0006babe>] <0> [<00100073>] <0>
31 [<0004be24>] <0> [<0000acac>] <0> [<0004be24>] <0> [<00005532>] <0>
32 [<00081000>] <0> [<00200256>] <0> [<001385ff>] <0> [<00138600>] <0>
33 =======================
34 Code: 39 c3 75 2b 8b 41 44 3b 42 44 74 0c 0f 0b eb fe 0f 0b eb fe 0f
35 0b eb fe 8b 41 3c 3b 42 3c 75 ec 33 7a 14 81 e7 dd df ef df 74 9e <0f>
36 0b eb fe 0f 0b eb fe 0f 0b eb fe 66 90 83 ec 14 89 74 24 0c
37 EIP: [<00069322>] SS:ESP 0068:d5cf3ec4
38
39 I have no problem running Windows and Linux guests inside VirtualBox
40 on gentoo-sources. UDEREF is not enabled in my kernel config as I read
41 it does not work with virtualization. I also disabled MPROTECT on the
42 binary, otherwise PaX simply kills VirtualBox.
43
44 # paxctl -v /opt/VirtualBox/VirtualBox
45 PaX control v0.5
46 Copyright 2004,2005,2006,2007 PaX Team <pageexec@××××××××.hu>
47
48 - PaX flags: -----m-x-e-- [/opt/VirtualBox/VirtualBox]
49 MPROTECT is disabled
50 RANDEXEC is disabled
51 EMUTRAMP is disabled
52 --
53 gentoo-hardened@g.o mailing list

Replies