Re: [Bug 206175] Fedora >= 5.4 kernels instantly freeze on boot without producing any display output
From: Linus Torvalds
Date: Wed Mar 11 2020 - 11:58:19 EST
On Wed, Mar 11, 2020 at 8:53 AM Artem S. Tashkinov <aros@xxxxxxx> wrote:
>
> I'm not sure I can call or do anything because the system is dead and
> I'm looking at the kernel panic message. The console is dead. The root
> file system is not yet mounted. Initrd can't be loaded either. I have no
> COM port/console. I have no debugging abilities whatsoever. I can only
> compile kernels and try running them.
Christoph just wanted you to use the image you booted with - you can
do it while using a working and entirely unrealted kernel.
But I think Christoph's second email was right on the money: the
platform device code used to (accidentally) always use that special
kmalloc()'ed memory, and the "always use kfree() to release" then
happened to work.
But with the change, platform devices use that allocations inside the
platform device itself, and the kfree() now does bad things and
corrupts the kmalloc lists.
So that finally makes sense of why that commit would cause odd
problems for you. I'm actually surprised it didn't cause problems for
others, but it's an error path, and presumably it normally never
triggers.
Linus
Linus