Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536514 - sys-kernel/hardened-sources-3.18.2 - kernel panic...
Summary: sys-kernel/hardened-sources-3.18.2 - kernel panic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 18:05 UTC by Toralf Förster
Modified: 2015-01-17 11:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
crash (crash.jpg,481.75 KB, image/jpeg)
2015-01-13 18:27 UTC, Toralf Förster
Details
/usr/src/linux-3.18.2-hardened/.config (.config,90.20 KB, text/x-mpsub)
2015-01-13 19:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2015-01-13 18:05:05 UTC
will attached a photo with the crash as soon as the battery of my cam is charged.
My system is a ThinkPad T440s.

FWIW I had to comment out #GRUB_GFXPAYLOAD_LINUX=keep in /etc/default/grub - to see the crash otherwise just grub2's graphic screen would be shown.
Comment 1 Toralf Förster gentoo-dev 2015-01-13 18:27:32 UTC
Created attachment 393888 [details]
crash

FWIW gentoo-3.18.2 boots fine
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 18:30:03 UTC
Do reopen this bug report when you have found the actual error.
Comment 3 Anthony Basile gentoo-dev 2015-01-13 19:04:47 UTC
(In reply to Jeroen Roovers from comment #2)
> Do reopen this bug report when you have found the actual error.

I'm confused jer.  He hit a kernel panic on boot.  That is his bug.  There's more info he can give me (and I'll ask for that) but why close it now?  I would close this needinfo after I ask and he can't provide anything to narrow it down.

@Toralf.  Can you try to get the whole panic using netconole?  https://wiki.archlinux.org/index.php/Netconsole

Also upstream will want yor vmlinux and config.

Note: hardened-sources-3.18.2 = grsecurity-3.0-3.18.2-201501120821
Comment 4 Toralf Förster gentoo-dev 2015-01-13 19:17:41 UTC
Created attachment 393892 [details]
/usr/src/linux-3.18.2-hardened/.config

FWIW 3.18.1-hardened-r1 fails too, so rather a 3.17->3.18 thing than a (minor)regressions between .1 and .2
Comment 5 PaX Team 2015-01-13 19:21:46 UTC
i think it's the kernfs related breakage that was fixed since, can you try the latest grsec patch please?
Comment 6 PaX Team 2015-01-13 19:23:19 UTC
doh, misread the grsec version, ignore me. so we'll need the full oops, switching to a higher resolution framebuffer mode would work too if netconsole/etc aren't feasible.
Comment 7 Toralf Förster gentoo-dev 2015-01-13 19:24:50 UTC
And vmlinuz can be downloaded from here (3.2 MiB):
http://www.zwiebeltoralf.de/pub/vmlinuz-3.18.2-hardened

Never dealt with netconsole before - will try it.
Comment 8 PaX Team 2015-01-13 19:36:07 UTC
what we need is not vmlinuz (the compressed kernel image you boot) but vmlinux from the build root dir (because it has full debug info that helps further analysis). you could also resolve the RIP for us in the meantime:

 addr2line -e vmlinux -fip ffffffff8153b399
Comment 9 PaX Team 2015-01-13 20:07:39 UTC
i managed to reproduce the problem with your config, it's the new SCHED_STACK_END_CHECK config option that triggers something, i'm debugging it now.
Comment 10 PaX Team 2015-01-13 20:15:04 UTC
so this is due to STACKLEAK overwriting the STACK_END_MAGIC as part of clearing the kernel stack. it's a feature collision, i'll think of something to resolve it.
Comment 11 Toralf Förster gentoo-dev 2015-01-13 20:23:54 UTC
well, I unchecked the  modules option, so
http://www.zwiebeltoralf.de/public_html/pub/
contains now 2 photos from the crash of a 1920x1080 screen - should give more info (DESC0555[23].JPG) at that location.
Comment 12 Toralf Förster gentoo-dev 2015-01-13 20:27:53 UTC
(In reply to PaX Team from comment #8)
> what we need is not vmlinuz (the compressed kernel image you boot) but
> vmlinux from the build root dir (because it has full debug info that helps
> further analysis). you could also resolve the RIP for us in the meantime:
> 
>  addr2line -e vmlinux -fip ffffffff8153b399

will upload the vmlinux (no modules) to, here :
addr2line -e vmlinux -fip ffffffff81b2ef29
__schedule at core.c:?
Comment 13 PaX Team 2015-01-14 01:48:54 UTC
i fixed the problem, the latest PaX patch has the fix, grsec will follow soon.
Comment 14 Toralf Förster gentoo-dev 2015-01-14 21:44:57 UTC
(In reply to Toralf Förster from comment #11)
> well, I unchecked the  modules option, so
> http://www.zwiebeltoralf.de/public_html/pub/
> contains now 2 photos from the crash of a 1920x1080 screen - should give
> more info (DESC0555[23].JPG) at that location.

grr, I meant http://www.zwiebeltoralf.de/pub/
Comment 15 Toralf Förster gentoo-dev 2015-01-16 19:44:54 UTC
-r1 boots fine here
thx