Gentoo Archives: gentoo-hardened

From: Alex Efros <powerman@××××××××××××××××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] 2.6.28-hardened-r7 hangs before starting /sbin/init
Date: Fri, 03 Apr 2009 13:27:48
Message-Id: 20090403132744.GO32102@home.power
In Reply to: Re: [gentoo-hardened] 2.6.28-hardened-r7 hangs before starting /sbin/init by pageexec@freemail.hu
1 Hi!
2
3 On Fri, Apr 03, 2009 at 08:50:37AM +0200, pageexec@××××××××.hu wrote:
4 > ok, can you add a printk into mm/mmap.c:mmap_region and print out all the
5 > arguments? that will show us at least what the kernel intended to mmap
6 > during execve. something like:
7 >
8 > printk("f:%p a:%0lx l:%0lx f:%0lx v:%0lx p:%0lx\n", file, addr, len, flags, vm_flags, pgoff);
9
10 Booting init=/bin/bash (PaX flags: -------x-e--)
11
12 Freeing unused kernel memory: 2024k freed
13 f:f6ce0c80 a:12b4d000 l:cb000 f:1812 v:1855 p:0
14 f:f6ce0c80 a:12c18000 l:7000 f:1812 v:1833 p:cb
15 f:f756b980 a:54720000 l:1c000 f:802 v:855 p:0
16 f:f756b980 a:5473a000 l:2000 f:812 v:833 p:1a
17 (hang)
18
19 ... once again:
20
21 Freeing unused kernel memory: 2024k freed
22 f:f7655b00 a:1454e000 l:cb000 f:1812 v:1855 p:0
23 f:f7655b00 a:14619000 l:7000 f:1812 v:1833 p:cb
24 f:f76558c0 a:4de0a000 l:1c000 f:802 v:855 p:0
25 f:f76558c0 a:4de24000 l:2000 f:812 v:833 p:1a
26 (hang)
27
28 Booting init=/bin/bash-m (PaX flags: -----m-x-e--)
29
30 Freeing unused kernel memory: 2024k freed
31 f:f74f52c0 a:126a3000 l:cb000 f:1812 v:1875 p:0
32 f:f74f52c0 a:1276e000 l:7000 f:1812 v:1873 p:cb
33 f:f749a6c0 a:524ad000 l:1c000 f:802 v:875 p:0
34 f:f749a6c0 a:524c7000 l:2000 f:812 v:873 p:1a
35 f:f7577800 a:524a6000 l:6000 f:2 v:71 p:0
36 f:00000000 a:524a5000 l:1000 f:22 v:73 p:524a5
37 f:f749a600 a:5245a000 l:4b000 f:2 v:75 p:0
38 f:f749a600 a:5249c000 l:9000 f:12 v:73 p:42
39 f:f74f5440 a:52456000 l:4000 f:2 v:75 p:0
40 f:f74f5440 a:52458000 l:2000 f:12 v:73 p:1
41 f:f752ebc0 a:5231b000 l:13b000 f:2 v:75 p:0
42 f:f752ebc0 a:52450000 l:3000 f:12 v:73 p:135
43 f:00000000 a:52453000 l:3000 f:32 v:73 p:52453
44 f:00000000 a:5231a000 l:1000 f:22 v:73 p:5231a
45 f:00000000 a:524ab000 l:1000 f:22 v:73 p:524ab
46 f:f749a540 a:524a6000 l:6000 f:2 v:71 p:0
47 f:f752eb00 a:52311000 l:9000 f:2 v:75 p:0
48 f:f752eb00 a:52318000 l:2000 f:12 v:73 p:6
49 f:f7577800 a:522fa000 l:17000 f:2 v:75 p:0
50 f:f7577800 a:5230d000 l:2000 f:12 v:73 p:12
51 f:00000000 a:5230f000 l:2000 f:32 v:73 p:5230f
52 f:f752ea40 a:524a6000 l:6000 f:2 v:71 p:0
53 f:f752e980 a:522f0000 l:a000 f:2 v:75 p:0
54 f:f752e980 a:522f8000 l:2000 f:12 v:73 p:7
55 f:f75778c0 a:522e5000 l:b000 f:2 v:75 p:0
56 f:f75778c0 a:522ee000 l:2000 f:12 v:73 p:8
57 f:f749a540 a:524aa000 l:2000 f:1 v:d1 p:0
58 f:00000000 a:524ab000 l:1000 f:22 v:73 p:524ab
59 f:f74f5380 a:1519d000 l:9000 f:1812 v:1855 p:0
60 f:f74f5380 a:151a6000 l:2000 f:1812 v:1833 p:8
61 f:f752e8c0 a:55575000 l:1c000 f:802 v:855 p:0
62 f:f752e8c0 a:5558f000 l:2000 f:812 v:833 p:1a
63 f:f752ea40 a:5556e000 l:6000 f:2 v:31 p:0
64 f:00000000 a:5556d000 l:1000 f:22 v:33 p:5556d
65 f:f7577980 a:55432000 l:13b000 f:2 v:55 p:0
66 f:f7577980 a:55567000 l:3000 f:12 v:33 p:135
67 f:00000000 a:5556a000 l:3000 f:32 v:33 p:5556a
68 f:00000000 a:55431000 l:1000 f:22 v:33 p:55431
69 f:00000000 a:55573000 l:1000 f:22 v:33 p:55573
70 f:00000000 a:55573000 l:1000 f:22 v:33 p:55573
71 f:00000000 a:524aa000 l:1000 f:22 v:73 p:524aa
72 (none) / #
73
74 > also to simplify matters, can you just run with the PaX test patch alone?
75
76 which exactly version of kernel and PaX patch I should test?
77
78 --
79 WBR, Alex.