FS#56707 - [linux] kernel panic on shutdown / reboot

Attached to Project: Arch Linux
Opened by Martin (qso) - Wednesday, 13 December 2017, 17:46 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 20 December 2017, 23:43 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
My AMD Ryzen system gets a kernel panic on reboot or poweroff.
Alternatively sometimes the system just becomes unresponsive, but does not shutdown properly.

This does not occur when booting linux-lts.


Additional info:
linux 4.14.5 / 4.14.4. probably with version > 4.13 the problem occured.
linux-lts 4.9.x works well

Steps to reproduce:
1. normal boot
2. login
3. execute poweroff or reboot
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 20 December 2017, 23:43 GMT
Reason for closing:  Upstream
Comment by Martin (qso) - Thursday, 14 December 2017, 18:03 GMT
There is another user experiencing this problem with a ryzen system and kernel 4.14. see here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-63b75cfe71
The screenshot here https://imgur.com/h1S903b shows the same kernel panic.

Does anyone else have issues with 4.14 kernel and ryzen systems?
Comment by Emantor (Emantor) - Friday, 15 December 2017, 18:15 GMT
I can reproduce this Issue on my Intel Laptop and Ryzen Desktop. Only if I used vagrant to test a local ansible config. Vagrant is using the libvirt provider and thus kvm. I'll start a bisect as soon as I receive my ryzen cpu from warranty returns (segfault compile bug). I searched on LKML as well, but did not find a mention of a similar bug.

Edit: Found an upstream LKML discussion here: https://lkml.org/lkml/2017/12/12/1272
Comment by Martin (qso) - Saturday, 16 December 2017, 17:27 GMT
Good point. For me this also happens only when a kvm virtual machine is running on poweroff. If i stop all vm manually, the system shuts down without kernel panic.
So it seems to be related to kvm with newer kernels
Comment by Emantor (Emantor) - Wednesday, 20 December 2017, 17:20 GMT
Upstream has a patch which should fix the problem, will test in a bit.

https://lkml.org/lkml/2017/12/20/424

Edit: Upstream fix works for me, should appear in 4.14.9.

Loading...