Bug 62541 - Kernel oops/panic during system boot with systemd - "Unable to handle kernel NULL pointer dereference"
Summary: Kernel oops/panic during system boot with systemd - "Unable to handle kernel ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 high
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-05 06:50 UTC by Adrian Byszuk
Modified: 2017-08-03 09:40 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.11
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg, lswh, .config outputs (234.28 KB, text/plain)
2013-10-05 06:50 UTC, Adrian Byszuk
Details

Description Adrian Byszuk 2013-10-05 06:50:50 UTC
Created attachment 110251 [details]
dmesg, lswh, .config outputs

Hello,

I have a bug (100 % repeatable) that prevents booting Linux when systemd is used as an init system. However, booting with traditional init works fine.
I'm posting this bug to the DRI subsystem because I was (barely) able to capture to capture kernel message before the screen becomes blank.
I can verify that this problem happens in all 3.11.x kernels and in Debian's 3.10 kernel.
The hardware is Dell Vostro 3560 - Intel Ivy Bridge, hybrid graphics (Intel + Radeon), OCZ Vertex 4 SSD.
My suspicion is that maybe the system bootup is too fast for the kernel; I was able to boot kernel once even with systemd, but that was when I turned on all the debugging messages which flooded console a bit.

Photo of captured BUG message: http://s23.postimg.org/qgk843rzv/vga1.png
dmesg, lshw and .config outputs attached.

Kind regards,
Adrian
Comment 1 Adrian Byszuk 2013-10-05 08:14:45 UTC
OK, I was able to track down the problem more precisely.

In my rc.local I have:
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

for switching discrete graphics after boot. With this line booting fails.
But when I change it to:
sleep 5
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

kernel is booting just fine.

So I think the problem is that systemd is, unlike the old init, executing rc.local just in the beginning which switches discrete graphics just in the beginning of system startup.
Comment 2 xerofoify 2014-06-20 04:11:50 UTC
Is this bug closed? Seems the problem is with systemd and not the 
kernel. Can we please close this bug as it's fairly old as of me
writing this in June 2014.
Thanks A Fellow Developer,
Nick
Comment 3 Szőgyényi Gábor 2017-03-06 20:22:03 UTC
Please try to reproduce this bug with latest kernel image & latest systemd.
Comment 4 Jani Nikula 2017-03-08 11:21:37 UTC
(In reply to Szőgyényi Gábor from comment #3)
> Please try to reproduce this bug with latest kernel image & latest systemd.

Sorry, what's the point? If you're scrubbing the bugs here, please just close the old bugs, and ask for reopen if the bug persists with latests bits and pieces. It's been 3½ years since the reporter was last seen here.

Ditto for all the other bugs you've commented on.

Note You need to log in before you can comment on or make changes to this bug.