Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 721734

Summary: sys-kernel/gentoo-sources:5.6.11 panics in startup when build with gcc-10.0.1
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: ao, chris, creideiki+gentoo-bugzilla, devurandom, fturco, jwbraun, reuben-gentoo-bugzilla, slyfox, xaviermiller
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=720776
Whiteboard: gentoo-sources-4.19.122, 5.4.40, 5.6.12
Package list:
Runtime testing required: ---
Attachments: patch for gentoo-sources-5.6.11 compiled with gcc-10.0.1

Description Harris Landgarten 2020-05-09 02:35:00 UTC
I am getting the same kernel panic referenced here in the lkml:

https://lore.kernel.org/lkml/20200423161126.GD26021@zn.tnic/
Comment 1 Harris Landgarten 2020-05-09 02:48:50 UTC
note my machine in SMB
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-09 09:39:12 UTC
As a workaround you can disable stack protector as in config:

    CONFIG_STACKPROTECTOR=y
    CONFIG_STACKPROTECTOR_STRONG=y

Or use proposed patch.
Comment 3 Harris Landgarten 2020-05-09 17:22:17 UTC
Created attachment 637146 [details, diff]
patch for gentoo-sources-5.6.11 compiled with gcc-10.0.1

I think this patch is committed to fix the early panic. I can confirm it fixes the issue on my computer
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-09 19:50:19 UTC
Whissi noted https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22 is queued for master inclusion.
Comment 5 Larry the Git Cow gentoo-dev 2020-05-12 01:21:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b8ad842ba3c4fecb70896f494aff129f8d29d2b

commit 1b8ad842ba3c4fecb70896f494aff129f8d29d2b
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2020-05-12 01:21:00 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2020-05-12 01:21:00 +0000

    sys-kernel/gentoo-sources: Linux 4.19.122 and gcc boot crash fix
    
    gcc boot crash fix:
    Bug: https://bugs.gentoo.org/721734
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-4.19.122.ebuild  | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2020-05-12 01:23:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36d5ccb3710cf6c9e2b6511d2826c3ef51918d7

commit c36d5ccb3710cf6c9e2b6511d2826c3ef51918d7
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2020-05-12 01:22:59 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2020-05-12 01:22:59 +0000

    sys-kernel/gentoo-sources: Linux 5.4.40 and gcc 10 boot crash fix
    
    gcc 10 boot crash fix:
    Bug: https://bugs.gentoo.org/721734
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-5.4.40.ebuild    | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2020-05-12 01:25:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f74515f1755083cbb085c097b8507b7c36e99fcb

commit f74515f1755083cbb085c097b8507b7c36e99fcb
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2020-05-12 01:25:17 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2020-05-12 01:25:17 +0000

    sys-kernel/gentoo-sources: Linux 5.6.12 and gcc 10 boot crash fix
    
    gcc 10 boot crash fix:
    Closes: https://bugs.gentoo.org/721734
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-5.6.12.ebuild    | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)