Grsecurity won't boot with 2.6.30.4 kernel

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Tue Aug 04, 2009 10:15 am

Hi,
I can't boot 2.6.30.4 kernel with grsecurity patch applied (amd64, Lenovo N200 0769-BJG laptop). It completly locks the computer (sysrq key not working, I must turn it of by holding power button for several secs).
Here's the screenshot http://dunaonline.com/screenshot.jpg
And kernel config: http://dunaonline.com/config
If you need any more info, please let me know, I'll try to get it :)
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby spender » Tue Aug 04, 2009 11:06 am

Can you also post the vmlinux file (the one from your source directory)?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Tue Aug 04, 2009 11:40 am

Here it is: dunaonline.com/vmlinux
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby PaX Team » Tue Aug 04, 2009 6:24 pm

Mrkva wrote:Here it is: dunaonline.com/vmlinux
could you capture the full boot log, or at least the first oops somehow (try boot_delay=xxx if all else fails)?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby spender » Tue Aug 04, 2009 7:05 pm

I'm able to reproduce the problem you're having with the config you provided. There's no OOPs message or anything involved in it, which is making it difficult to debug. The current 2.6.30.4 patch that's been uploaded doesn't fix your particular problem, but we'll continue working on it until it's solved.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Tue Aug 04, 2009 8:06 pm

Well, if you need any cooperation from me, let me know. Tell me, if you need the whole boot log - if so, It'll be a lot of photos - or maybe it's possible to capture it with 1394 (but I don't know, I've never did this before). It panics (Unable to allocate grsecurity shared page, but the panic message is immediatly followed by another error messages - and without boot_delay, I wasn't able to see it). Or is it caused by any known incompatibility with any kernel option?
Thanks for all your help!
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby spender » Tue Aug 04, 2009 9:11 pm

That particular panic (gr_shared_page) shouldn't happen with the latest patch. Have you tried it?

There seems to be a problem unrelated to that that must have something to do with your particular configuration. I've been trying to binary search through the differences in options between your config and a working x64 config (and have ruled out a large number of options) but haven't come up with the culprit yet.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby PaX Team » Wed Aug 05, 2009 3:07 am

Mrkva wrote:Well, if you need any cooperation from me, let me know. Tell me, if you need the whole boot log - if so, It'll be a lot of photos - or maybe it's possible to capture it with 1394 (but I don't know, I've never did this before).
as spender said, the grsec shared page allocation should be fixed, beyond that, all i need really is the first oops, everything else later is collateral damage probably ;). you can also try netconsole if it's already usable at that point or just boot_delay.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby radegand » Wed Aug 05, 2009 8:14 am

Hi,
I think I have the same problem with the latest patch (grsecurity-2.1.14-2.6.30.4-200908041752.patch). Without having netconsole enabled, it crashes right after 'freeing unused kernel memory' message. The error can be seen here: http://radegand.obiezyswiat.pl/main.php?g2_itemId=6246

After enabling netconsole it crashes right at the 'freeing unused kernel memory' instead ;). No oops are reported and netconsole doesn't capture any error (last message sent is: Freeing unused kernel memory: 600k freed), however last message displayed on the screen is this: (right below the 'Freeing...')
general protection fault: 000 [#1]
Which isn't probably very useful ;)

Complete bootlog can be found here: http://pastebin.com/m3dcdff62

And my kernel config is here: http://pastebin.com/m65429ad6

Let me know if there's more info needed. I'll play around with different grsec options enabled in the meantime, maybe it will help to narrow it down at least...
Cheers
radegand
 
Posts: 19
Joined: Wed Aug 05, 2009 7:09 am

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Wed Aug 05, 2009 8:51 am

Well,with the latest patch, system reboots after
Code: Select all
VFS: Mounted root (reiserfs filesystem) readonly on device 8(or 0, not sure):1.
Freeeing unused kernel memory: 312k freed

Here's first oops from previous kernel: dunaonline.com/oops.jpg
radegand: I'm not sure whether this is the same problem - at least, I don't have any null pointer dereference error, nor regular oops. (just general protection fault and registry dump.
Update: It still reboots when I disable any PAX or GRKERSEC related config option, but I'm not sure it'll help you searching for this bug:
Code: Select all
root@Odyssey:/usr/src/linux-2.6.30.4-grsec# egrep "PAX|GRKER" .config
# CONFIG_GRKERNSEC is not set
# CONFIG_PAX_MEMORY_SANITIZE is not set
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby PaX Team » Wed Aug 05, 2009 2:51 pm

radegand wrote:Let me know if there's more info needed. I'll play around with different grsec options enabled in the meantime, maybe it will help to narrow it down at least...
can you send me your vmlinux please?
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby PaX Team » Wed Aug 05, 2009 7:23 pm

PaX Team wrote:can you send me your vmlinux please?
even better, can you guys try the latest test patch? i think i fixed the problems.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Wed Aug 05, 2009 9:29 pm

Works for me. You guys are really doing a great job! Thanks!
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Jeanmarc » Thu Aug 06, 2009 2:08 am

Brad, I confirm the same behavior when booting my 2.6.30.4 with grsecurity-2.1.14-2.6.30.4-200908011535.patch.
I have some difficult to catch the output from console due to the fact that my P4 has no more tty external interface.
But i can then to you me configuration if you think it is able to help you.
best regards
Jeanmarc
 
Posts: 1
Joined: Thu Aug 06, 2009 1:52 am

Re: Grsecurity won't boot with 2.6.30.4 kernel

Postby Mrkva » Thu Aug 06, 2009 5:20 am

Jeanmarc wrote:Brad, I confirm the same behavior when booting my 2.6.30.4 with grsecurity-2.1.14-2.6.30.4-200908011535.patch.
I have some difficult to catch the output from console due to the fact that my P4 has no more tty external interface.
But i can then to you me configuration if you think it is able to help you.
best regards

Try the latest test patch (grsecurity-2.1.14-2.6.30.4-200908051916.patch) - it works for me.
Mrkva
 
Posts: 10
Joined: Sun Feb 17, 2008 12:01 pm

Next

Return to grsecurity support

cron