1 |
I'm attempting to use a kernel based on |
2 |
hardened-sources (2.6.18-hardened) on a Dell PowerEdge |
3 |
2450 Server. Unfortunately, the kernel never boots... |
4 |
It dies just before init with the below error. (Full |
5 |
kernel hacking enabled.) |
6 |
|
7 |
grsecurity and PaX are disabled and the same .config |
8 |
that builds this disaster builds a perfectly working |
9 |
kernel using gentoo-sources (2.6.19-gentoo-r5) on the |
10 |
same machine. |
11 |
|
12 |
I've attached the .config file in question. |
13 |
|
14 |
Can anyone tell me how to make the hardened sources |
15 |
work?? |
16 |
|
17 |
[ 63.553014] VFS: Mounted root (reiserfs filesystem) |
18 |
readonly. |
19 |
[ 63.553759] Freeing unused kernel memory: 284k |
20 |
freed |
21 |
[ 63.553889] Write protecting the kernel read-only |
22 |
data: 642k |
23 |
[ 63.685847] BUG: unable to handle kernel paging |
24 |
request<1>BUG: unable to hand |
25 |
le kernel paging request at virtual address c048d030 |
26 |
[ 63.686375] printing eip: |
27 |
[ 63.686379] c014eb18 |
28 |
[ 63.686383] *pgd = 37541163 |
29 |
[ 63.686387] *pmd = 37541163 |
30 |
[ 63.686391] *pte = 48d161 |
31 |
[ 63.686397] Oops: 0003 [#1] |
32 |
[ 63.686400] SMP |
33 |
[ 63.686406] Modules linked in: |
34 |
[ 63.686415] CPU: 1 |
35 |
[ 63.686418] EIP: 0060:[<c014eb18>] Not |
36 |
tainted VLI |
37 |
[ 63.686421] EFLAGS: 00010006 (2.6.18-hardened #7) |
38 |
[ 63.686438] EIP is at __switch_to+0xb8/0x1e0 |
39 |
[ 63.686444] eax: 00000000 ebx: c2b82cc0 ecx: |
40 |
c048d000 edx: 00000000 |
41 |
[ 63.686451] esi: c2b82b00 edi: c2b4d510 ebp: |
42 |
c2b62efc esp: c2b62ee4 |
43 |
[ 63.686457] ds: 0068 es: 0068 ss: 0068 |
44 |
[ 63.686463] Process khelper (pid: 10, ti=c2b62000 |
45 |
task=c2b82b00 task.ti=c2b62 |
46 |
000) |
47 |
[ 63.686468] Stack: c0530200 c2b4d6d0 c2b82b00 |
48 |
00000000 c2b82b00 c052d320 c2b4 |
49 |
5b34 c0480fe6 |
50 |
[ 63.686483] c2b62f68 00000046 00000000 |
51 |
c018354b c2b62f2c c018aaa8 0000 |
52 |
0001 00000046 |
53 |
[ 63.686497] 00000000 00000001 c2b62f44 |
54 |
00000046 c2b4d510 c2a249e0 c2b8 |
55 |
2c24 000002be |
56 |
[ 63.686511] Call Trace: |
57 |
[ 63.686581] [<c0480fe6>] schedule+0x3e6/0x830 |
58 |
[ 63.686850] [<c01697e3>] __cond_resched+0x33/0x50 |
59 |
[ 63.687038] [<c0481b27>] cond_resched+0x27/0x40 |
60 |
[ 63.687220] [<c02193d1>] search_by_key+0x161/0xeb0 |
61 |
[ 63.688278] [<c020169c>] |
62 |
search_by_entry_key+0x1c/0x210 |
63 |
[ 63.688932] [<c0201c82>] |
64 |
reiserfs_find_entry+0x92/0x120 |
65 |
[ 63.689587] [<c0201d83>] |
66 |
reiserfs_lookup+0x73/0x150 |
67 |
[ 63.690242] [<c01cd1ca>] real_lookup+0xaa/0xe0 |
68 |
[ 63.690761] [<c01cd4ae>] do_lookup+0x7e/0x90 |
69 |
[ 63.691278] [<c01cd5f8>] |
70 |
__link_path_walk+0x138/0xf40 |
71 |
[ 63.691796] [<c01ce448>] link_path_walk+0x48/0xe0 |
72 |
[ 63.692314] [<c01ce840>] |
73 |
do_path_lookup+0x150/0x280 |
74 |
[ 63.692832] [<c01ce9db>] |
75 |
__path_lookup_intent_open+0x4b/0x90 |
76 |
[ 63.693352] [<c01cea3f>] |
77 |
path_lookup_open+0x1f/0x30 |
78 |
[ 63.693870] [<c01cf276>] open_namei+0x76/0x730 |
79 |
[ 63.694391] [<c01bdefc>] do_filp_open+0x2c/0x60 |
80 |
[ 63.694856] [<c01be2b2>] do_sys_open+0x52/0xe0 |
81 |
[ 63.695318] [<c01be35c>] sys_open+0x1c/0x20 |
82 |
[ 63.695779] [<c014c3ed>] init+0xbd/0x190 |
83 |
[ 63.695801] [<c014e3d9>] |
84 |
kernel_thread_helper+0x5/0xc |
85 |
[ 63.699296] DWARF2 unwinder stuck at |
86 |
kernel_thread_helper+0x5/0xc |
87 |
[ 63.699302] Leftover inexact backtrace: |
88 |
[ 63.699306] Code: 53 1c 39 d0 0f 85 12 01 00 00 8b |
89 |
55 ec 8c 62 28 8c 6a 2c c1 |
90 |
e6 0c 8d 8e 00 c0 48 c0 8b 75 f0 8b 86 c0 01 00 00 8b |
91 |
96 c4 01 00 00 <89> 41 30 |
92 |
89 51 34 8b 43 08 8b 53 0c 89 41 38 89 51 3c 8b 43 10 |
93 |
[ 63.699374] EIP: [<c014eb18>] |
94 |
__switch_to+0xb8/0x1e0 SS:ESP 0068:c2b62ee4 |
95 |
[ 63.699386] <3>BUG: sleeping function called from |
96 |
invalid context at kernel/ |
97 |
rwsem.c:20 |
98 |
[ 63.699398] in_atomic():0, irqs_disabled():1 |
99 |
[ 63.699953] [<c0151975>] |
100 |
show_trace_log_lvl+0x185/0x1b0 |
101 |
[ 63.700017] [<c01519b2>] show_trace+0x12/0x20 |
102 |
[ 63.700074] [<c0151ad9>] dump_stack+0x19/0x20 |
103 |
[ 63.700132] [<c016b584>] __might_sleep+0xa4/0xb0 |
104 |
[ 63.700324] [<c0186ae8>] down_read+0x18/0x50 |
105 |
[ 63.700609] [<c017cf8c>] |
106 |
blocking_notifier_call_chain+0x1c/0x50 |
107 |
[ 63.700864] [<c016f6f1>] |
108 |
profile_task_exit+0x11/0x20 |
109 |
[ 63.701069] [<c017125c>] do_exit+0x1c/0x470 |
110 |
[ 63.701278] [<c0152038>] die+0x228/0x230 |
111 |
[ 63.705006] DWARF2 unwinder stuck at |
112 |
die+0x228/0x230 |
113 |
[ 63.705012] Leftover inexact backtrace: |
114 |
[ 63.705017] [<c01519b2>] show_trace+0x12/0x20 |
115 |
[ 63.705025] [<c0151ad9>] dump_stack+0x19/0x20 |
116 |
[ 63.705033] [<c016b584>] __might_sleep+0xa4/0xb0 |
117 |
[ 63.705044] [<c0186ae8>] down_read+0x18/0x50 |
118 |
[ 63.705052] [<c017cf8c>] |
119 |
blocking_notifier_call_chain+0x1c/0x50 |
120 |
[ 63.705070] [<c016f6f1>] |
121 |
profile_task_exit+0x11/0x20 |
122 |
[ 63.705081] [<c017125c>] do_exit+0x1c/0x470 |
123 |
[ 63.705091] [<c0152038>] die+0x228/0x230 |
124 |
[ 63.705098] [<c0484f03>] do_page_fault+0x353/0x640 |
125 |
[ 63.705113] [<c01514e9>] error_code+0x39/0x40 |
126 |
[ 63.705121] [<c0480fe6>] schedule+0x3e6/0x830 |
127 |
[ 64.734093] at virtual address c048c030 |
128 |
[ 64.745909] printing eip: |
129 |
[ 64.754090] c014eb18 |
130 |
[ 64.760712] *pgd = 37541163 |
131 |
[ 64.769153] *pmd = 37541163 |
132 |
[ 64.777597] *pte = 48c161 |
133 |
[ 64.785519] Oops: 0003 [#2] |
134 |
[ 64.793957] SMP |
135 |
[ 64.799672] Modules linked in: |
136 |
[ 64.808972] CPU: 0 |
137 |
[ 64.808974] EIP: 0060:[<c014eb18>] Not |
138 |
tainted VLI |
139 |
[ 64.808977] EFLAGS: 00010046 (2.6.18-hardened #7) |
140 |
[ 64.846778] EIP is at __switch_to+0xb8/0x1e0 |
141 |
[ 64.859622] eax: 00000000 ebx: c2b4c1f0 ecx: |
142 |
c048c000 edx: 00000000 |
143 |
[ 64.880011] esi: c2b4c030 edi: c2ba7510 ebp: |
144 |
c2b51f44 esp: c2b51f2c |
145 |
[ 64.900401] ds: 0068 es: 0068 ss: 0068 |
146 |
[ 64.912738] Process migration/0 (pid: 2, |
147 |
ti=c2b51000 task=c2b4c030 task.ti=c2 |
148 |
b51000) |
149 |
[ 64.935464] Stack: c052e000 c2ba76d0 c2b4c030 |
150 |
00000000 c2b4c030 c052d320 c2ba |
151 |
3c54 c0480fe6 |
152 |
[ 64.961233] c2b51fb0 00000046 00000000 |
153 |
00000001 c2b51f74 00000046 c2a2 |
154 |
49f0 c2a249e0 |
155 |
[ 64.986997] 85625d49 0000000e 0125b156 |
156 |
00000000 c2b70070 c2a1c9e0 c2b4 |
157 |
c154 00002d64 |
158 |
[ 65.012762] Call Trace: |
159 |
[ 65.020847] [<c0480fe6>] schedule+0x3e6/0x830 |
160 |
[ 65.034545] [<c04814cb>] |
161 |
wait_for_completion+0x9b/0xe0 |
162 |
[ 65.050485] [<c017f83f>] |
163 |
call_usermodehelper_keys+0xbf/0xd0 |
164 |
[ 65.067856] [<c02a259b>] |
165 |
kobject_uevent+0x3bb/0x470 |
166 |
[ 65.084469] [<c031c9b6>] |
167 |
class_device_add+0x276/0x310 |
168 |
[ 65.101770] [<c031ca62>] |
169 |
class_device_register+0x12/0x20 |
170 |
[ 65.120408] [<c031cb1b>] |
171 |
class_device_create+0xab/0xd0 |
172 |
[ 65.138534] [<c03cd5d4>] |
173 |
mousedev_connect+0xe4/0x120 |
174 |
[ 65.156794] [<c03cc019>] |
175 |
input_register_device+0x1b9/0x270 |
176 |
[ 65.176660] [<c03d182e>] |
177 |
psmouse_connect+0x16e/0x220 |
178 |
[ 65.195023] [<c03c7169>] |
179 |
serio_connect_driver+0x29/0x50 |
180 |
[ 65.214102] [<c03c8149>] |
181 |
serio_driver_probe+0x19/0x20 |
182 |
[ 65.232660] [<c031b534>] |
183 |
driver_probe_device+0x64/0xc0 |
184 |
[ 65.250804] [<c031b6b9>] __driver_attach+0xa9/0xb0 |
185 |
[ 65.267887] [<c031a9b9>] |
186 |
bus_for_each_dev+0x49/0x70 |
187 |
[ 65.285200] [<c031b6d9>] driver_attach+0x19/0x20 |
188 |
[ 65.301751] [<c031af0e>] bus_add_driver+0x7e/0xc0 |
189 |
[ 65.318556] [<c031bbbd>] driver_register+0x5d/0x90 |
190 |
[ 65.335623] [<c03c8181>] |
191 |
serio_add_driver+0x11/0x40 |
192 |
[ 65.353611] [<c03c769f>] |
193 |
serio_handle_event+0x4f/0x90 |
194 |
[ 65.372179] [<c03c77f3>] serio_thread+0x23/0x110 |
195 |
[ 65.389450] [<c0183244>] kthread+0xa4/0xe0 |
196 |
[ 65.402557] [<c014e3d9>] |
197 |
kernel_thread_helper+0x5/0xc |
198 |
[ 65.421784] DWARF2 unwinder stuck at |
199 |
kernel_thread_helper+0x5/0xc |
200 |
[ 65.440097] Leftover inexact backtrace: |
201 |
[ 65.451664] Code: 53 1c 39 d0 0f 85 12 01 00 00 8b |
202 |
55 ec 8c 62 28 8c 6a 2c c1 |
203 |
e6 0c 8d 8e 00 c0 48 c0 8b 75 f0 8b 86 c0 01 00 00 8b |
204 |
96 c4 01 00 00 <89> 41 30 |
205 |
89 51 34 8b 43 08 8b 53 0c 89 41 38 89 51 3c 8b 43 10 |
206 |
[ 65.513260] EIP: [<c014eb18>] |
207 |
__switch_to+0xb8/0x1e0 SS:ESP 0068:c2b51f2c |
208 |
[ 65.533804] <0>BUG: spinlock lockup on CPU#1, |
209 |
khelper/10, c2a249e0 |
210 |
[ 177.634258] [<c0151975>] |
211 |
show_trace_log_lvl+0x185/0x1b0 |
212 |
[ 177.650345] [<c01519b2>] show_trace+0x12/0x20 |
213 |
[ 177.663850] [<c0151ad9>] dump_stack+0x19/0x20 |
214 |
[ 177.677330] [<c02b2678>] |
215 |
__spin_lock_debug+0xa8/0xc0 |
216 |
[ 177.694214] [<c02b26ed>] _raw_spin_lock+0x5d/0x80 |
217 |
[ 177.709903] [<c04836d3>] _spin_lock+0x33/0x40 |
218 |
[ 177.723696] [<c0168790>] scheduler_tick+0xd0/0x360 |
219 |
[ 177.738615] [<c0178e14>] |
220 |
update_process_times+0x44/0xb0 |
221 |
[ 177.754877] [<c015fadc>] |
222 |
smp_apic_timer_interrupt+0x6c/0x80 |
223 |
[ 177.772078] [<c015140a>] |
224 |
apic_timer_interrupt+0x2a/0x30 |
225 |
[ 177.788154] [<c04839c4>] |
226 |
_write_unlock_irq+0x24/0x30 |
227 |
[ 177.803713] DWARF2 unwinder stuck at |
228 |
_write_unlock_irq+0x24/0x30 |
229 |
[ 177.821748] Leftover inexact backtrace: |
230 |
[ 177.833316] [<c01519b2>] show_trace+0x12/0x20 |
231 |
[ 177.846751] [<c0151ad9>] dump_stack+0x19/0x20 |
232 |
[ 177.860178] [<c02b2678>] |
233 |
__spin_lock_debug+0xa8/0xc0 |
234 |
[ 177.875426] [<c02b26ed>] _raw_spin_lock+0x5d/0x80 |
235 |
[ 177.889896] [<c04836d3>] _spin_lock+0x33/0x40 |
236 |
[ 177.903345] [<c0168790>] scheduler_tick+0xd0/0x360 |
237 |
[ 177.918072] [<c0178e14>] |
238 |
update_process_times+0x44/0xb0 |
239 |
[ 177.934100] [<c015fadc>] |
240 |
smp_apic_timer_interrupt+0x6c/0x80 |
241 |
[ 177.951190] [<c015140a>] |
242 |
apic_timer_interrupt+0x2a/0x30 |
243 |
[ 177.967242] [<c0171043>] exit_notify+0x133/0x330 |
244 |
[ 177.981473] [<c0171491>] do_exit+0x251/0x470 |
245 |
[ 177.994668] [<c0152038>] die+0x228/0x230 |
246 |
[ 178.006825] [<c0484f03>] do_page_fault+0x353/0x640 |
247 |
[ 178.021576] [<c01514e9>] error_code+0x39/0x40 |
248 |
[ 178.035028] [<c0480fe6>] schedule+0x3e6/0x830 |
249 |
[ 179.451936] BUG: spinlock lockup on CPU#0, |
250 |
migration/0/2, c2a1c9e0 |
251 |
[ 179.471041] [<c0151975>] |
252 |
show_trace_log_lvl+0x185/0x1b0 |
253 |
[ 179.487131] [<c01519b2>] show_trace+0x12/0x20 |
254 |
[ 179.500612] [<c0151ad9>] dump_stack+0x19/0x20 |
255 |
[ 179.514094] [<c02b2678>] |
256 |
__spin_lock_debug+0xa8/0xc0 |
257 |
[ 179.530983] [<c02b26ed>] _raw_spin_lock+0x5d/0x80 |
258 |
[ 179.546683] [<c04836d3>] _spin_lock+0x33/0x40 |
259 |
[ 179.560461] [<c0168790>] scheduler_tick+0xd0/0x360 |
260 |
[ 179.575377] [<c0178e5f>] |
261 |
update_process_times+0x8f/0xb0 |
262 |
[ 179.591642] [<c015fadc>] |
263 |
smp_apic_timer_interrupt+0x6c/0x80 |
264 |
[ 179.608843] [<c015140a>] |
265 |
apic_timer_interrupt+0x2a/0x30 |
266 |
[ 179.624940] [<c04839c4>] |
267 |
_write_unlock_irq+0x24/0x30 |
268 |
[ 179.640508] DWARF2 unwinder stuck at |
269 |
_write_unlock_irq+0x24/0x30 |
270 |
[ 179.658558] Leftover inexact backtrace: |
271 |
[ 179.670117] [<c01519b2>] show_trace+0x12/0x20 |
272 |
[ 179.683566] [<c0151ad9>] dump_stack+0x19/0x20 |
273 |
[ 179.696997] [<c02b2678>] |
274 |
__spin_lock_debug+0xa8/0xc0 |
275 |
[ 179.712269] [<c02b26ed>] _raw_spin_lock+0x5d/0x80 |
276 |
[ 179.726761] [<c04836d3>] _spin_lock+0x33/0x40 |
277 |
[ 179.740216] [<c0168790>] scheduler_tick+0xd0/0x360 |
278 |
[ 179.754968] [<c0178e5f>] |
279 |
update_process_times+0x8f/0xb0 |
280 |
[ 179.771017] [<c015fadc>] |
281 |
smp_apic_timer_interrupt+0x6c/0x80 |
282 |
[ 179.788085] [<c015140a>] |
283 |
apic_timer_interrupt+0x2a/0x30 |
284 |
[ 179.805228] [<c0171043>] exit_notify+0x133/0x330 |
285 |
[ 179.819459] [<c0171491>] do_exit+0x251/0x470 |
286 |
[ 179.832638] [<c0152038>] die+0x228/0x230 |
287 |
[ 179.844780] [<c0484f03>] do_page_fault+0x353/0x640 |
288 |
[ 179.859510] [<c01514e9>] error_code+0x39/0x40 |
289 |
[ 179.872962] [<c0480fe6>] schedule+0x3e6/0x830 |