Bug 207737

Summary: kernel hangs, if compiled with gcc-10.1.0-1
Product: Platform Specific/Hardware Reporter: Arne Woerner (arne_woerner)
Component: x86-64Assignee: platform_x86_64 (platform_x86_64)
Status: RESOLVED CODE_FIX    
Severity: normal CC: bp, jbuchert+kbugs
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.6.13-ARNE Subsystem:
Regression: No Bisected commit-id:
Attachments: diff of 5.6.11/gcc9 and 5.6.13/gcc10 config

Description Arne Woerner 2020-05-14 11:50:29 UTC
Created attachment 289131 [details]
diff of 5.6.11/gcc9 and 5.6.13/gcc10 config

Hi!

When I use archlinux's gcc-10.1.0-1,
I get a kernel that hangs after initramfs is processed.

When I do a `# make mrproper` and then a `make` in the same directory,
I get a kernel that boots as usual... :)

I think that is a bug.

Should I compile gcc myself, too?

Or will the kernel become archlinux-gcc10 compatible?

Thx.

Bye.
Comment 1 Borislav Petkov 2020-05-14 11:54:45 UTC
We're working on it. There should be a fix in the upstream kernel next week if all goes well.

THx.
Comment 2 Borislav Petkov 2020-05-23 06:27:10 UTC
Fix is in v5.7-rc6 as:

a9a3ed1eff36 ("x86: Fix early boot crash on gcc-10, third try")

and on its way to the respective stable trees.

Closing.