Gentoo Archives: gentoo-hardened

From: Natanael Copa <natanael.copa@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] grsec in qemu/kvm gives PAX: attempted to modify kernel code
Date: Thu, 05 Jul 2007 07:21:16
Message-Id: 1183623544.5818.9.camel@localhost
1 Hi,
2
3 I'm tryning to run a gentoo hardened kernel as a qemu guest but PAX is
4 not happy. It works fine in vmware.
5
6 Any ideas how to find out what this really is?
7
8 I tried kvm-28 (with kvm-intel) and qemu-0.9 (non kvm).
9
10 isapnp: No Plug & Play device found
11 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
12 serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16450
13 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
14 PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
15 serio: i8042 KBD port at 0x60,0x64 irq 1
16 serio: i8042 AUX port at 0x60,0x64 irq 12
17 NET: Registered protocol family 1
18 Using IPI Shortcut mode
19 PAX: swapper:1, uid/euid: 0/0, attempted to modify kernel code at virtual address c0551c08
20 printing eip:
21 0000e9d7
22 *pgd = 4001e1
23 *pmd = 4001e1
24 Oops: 0003 [#1]
25 Modules linked in:
26 CPU: 0
27 EIP: 0060:[<0000e9d7>] Not tainted VLI
28 EFLAGS: 00010202 (2.6.21-hardened-r3 #1)
29 eax: c0551000 ebx: 00000000 ecx: c0800000 edx: 00000302
30 esi: 000007ff edi: 00000000 ebp: 00000000 esp: c111bfbc
31 ds: 0068 es: 0068 fs: 00d8 gs: 0000 ss: 0068
32 Process swapper (pid: 1, ti=c111a000 task=c7fd0a30 task.ti=c111a000)
33 Stack: ffd0faba 00000000 00001127 00090ddb fffffeff ffd0faba ffd0fb38 c055fc7b
34 00000000 00000001 000046d7 00000000 00000000 00000000 00000000 00000000
35 00000000
36 Call Trace:
37 =======================
38 Code: fe ff 0f 22 c0 89 35 60 40 55 c0 89 0d 64 40 55 c0 0f 22 c2 b9 00 00 40 c0 81 f9 00 00 c0 c0 73 16 89 ca c1 ea 16 a1 a4 07 c0 c0 <83> 24 90 fd 81 c1 00 00 40 00 eb e2 a1 8c d1 c1 c0 f6 c4 20 74
39 EIP: [<0000e9d7>] SS:ESP 0068:c111bfbc
40 Kernel panic - not syncing: Attempted to kill init!
41 Switched to high resolution mode on CPU 0
42
43
44
45 --
46 gentoo-hardened@g.o mailing list

Replies