FS#31938 - [linux] 3.6.2 Kernel panic on reboot or shutdown.

Attached to Project: Arch Linux
Opened by John (graysky) - Sunday, 14 October 2012, 00:15 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 27 February 2013, 10:47 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Upon testing out linux-3.6.2-1 from [testing] I noticed that my box will panic upon a reboot or shutdown. Unfortunately, I cannot locate the error in any log in /var/log but I can and did take a photo of it. Downgrading to 3.5.2-1 solves this problem.


Additional info:
* package version(s) 3.6.2-1
* config and/or log files etc. (attached photo)

Steps to reproduce:
Ask box to shutdown or reboot, example:
# shutdown -r now
or
# reboot
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 27 February 2013, 10:47 GMT
Reason for closing:  No response
Comment by John (graysky) - Sunday, 14 October 2012, 00:36 GMT
Typo in my original report: downgrading to 3.5.6-1 solves this problem.
Comment by Jelle van der Waa (jelly) - Sunday, 14 October 2012, 10:28 GMT
Report it upstream
Comment by Jorge Sanchez (finidine) - Wednesday, 17 October 2012, 16:52 GMT
linux-3.6.2-1, the box crashes when ask for reboot (shutdown is OK). No panic, just freeze. Userspace seems to finish OK, disks were unmounted cleanly.

The same occurs with linux-lts-3.0.46-1 (updated same day as linux 3.6.2-1)

In both cases, downgrading (to 3.5.6-1 or 3.0.45-1) solves the problem.
Comment by Jorge Sanchez (finidine) - Wednesday, 17 October 2012, 17:26 GMT
In kernel.org, look in the 3.6.2 changelog, and search for commit f96972f2dc6365421cf2366ebd61ee4cf060c8d5

Same commit was introduced in 3.0.46

Definitely this should be reported upstream.

Comment by Jorge Sanchez (finidine) - Friday, 19 October 2012, 10:41 GMT

Recompiling kernel/sys.c in 3.0.46 without the call to disable_nonboot_cpus()
at the function kernel_restart() makes my system reboots normally. Otherwise,
kernel_restart() freezes my machine.

Reported this bug to bugzilla, first time I've done this,

https://bugzilla.kernel.org/show_bug.cgi?id=49001

Comment by John (graysky) - Tuesday, 23 October 2012, 16:51 GMT
@Jorge - Can you share a patch into 3.6.3 for me to test? I just verified that my box still panics using 3.6.3-1 from [testing].
Comment by Jorge Sanchez (finidine) - Tuesday, 23 October 2012, 17:46 GMT
Hi graysky,

I just comment-out the call to disable_nonboot_cpus in kernel/sys.c:

void kernel_restart(char *cmd)
{
kernel_restart_prepare(cmd);
/* disable_nonboot_cpus(); */
if (!cmd)
printk(KERN_EMERG "Restarting system.\n");
else
printk(KERN_EMERG "Restarting system with command '%s'.\n", cmd);
kmsg_dump(KMSG_DUMP_RESTART);
machine_restart(cmd);
}

That's how it was in 3.5.7 (and in 3.0.45)
Comment by John (graysky) - Tuesday, 23 October 2012, 21:19 GMT
@finidine - Actually, in 3.5.7 it is not commented :/

For me, 3.5.7 works just fine, it is anything in the 3.6 series that locks up.
Comment by Jorge Sanchez (finidine) - Wednesday, 24 October 2012, 11:16 GMT
graysky, you're right, 3.5.7 has the call to disable_nonboot_cpus

I'm not experiencing kernel panics, just a freeze, commenting that call the machine reboots normally. Actually I run -lts series, the call appears on 3.0.46. Try the comment-out and OK, then checked 3.6.2 and the same behavior.

Not sure same problem.

Comment by Jorge Sanchez (finidine) - Friday, 26 October 2012, 18:38 GMT
The call to disable_nonboot_cpus in kernel/sys.c kernel_restart() was introduced in 3.5.7
Comment by John (graysky) - Friday, 26 October 2012, 18:48 GMT
All I know is that 3.5.7 reboots and shutdowns down just fine. 3.6.x does not; it consistently panics.
Comment by John (graysky) - Friday, 26 October 2012, 20:18 GMT
OK... I think I have this figured out.

1) This isn't a panic as I originally reported. I can type on the screen and the kernel responds. If I insert a USB stick, I see a message indicating that the kernel detected it.
2) I ONLY get this freeze if my lirc modules are probed: lirc_i2c and lirc_dev. If I manually remove them and either reboot or shutdown, everything is fine.

Should I open a task against lirc? Is this task still valid?
Comment by Jorge Sanchez (finidine) - Monday, 29 October 2012, 08:26 GMT
Now testing 3.6.3,

With 3.6.2 had a couple of kernel panics when shutdown, not ocurring with 3.6.3

Absolutely I have to suppress the call to disable_nonboot_cpus in kernel_restart() or my system freezes when reboot just like with 3.0.48
Comment by Greg (dolby) - Saturday, 17 November 2012, 04:48 GMT
Status with 3.6.6?
Comment by John (graysky) - Saturday, 17 November 2012, 12:27 GMT
Still present. Fix is posted in my comment from - Friday, 26 October 2012, 15:18 GMT-5
Comment by Tobias Powalowski (tpowa) - Wednesday, 23 January 2013, 15:55 GMT
Status on 3.7.x?

Loading...