Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840942 - Significant regression in sys-kernel/gentoo-kernel{,-bin}-{5.17.[34],5.16.20,5.15.34,5.10.111}
Summary: Significant regression in sys-kernel/gentoo-kernel{,-bin}-{5.17.[34],5.16.20,...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-26 06:40 UTC by Daniel Harding
Modified: 2022-04-27 17:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harding 2022-04-26 06:40:03 UTC
Upstream kernel commit 5467801f1fcbdc46bc7298a84dbf3ca1ff2a7320 causes a severe regression on certain laptop models.  When the affected systems are suspended, they essentially become bricked.  On my laptop, a Dell Inspiron 5515, the only way to recover was to open up the case, disconnect the internal battery, and hold down the power button.

The broken commit was backported to the following stable trees:

5.17.3 (also present in 5.17.4)
5.16.20
5.15.34
5.10.111

LKML discussion:  https://lore.kernel.org/lkml/20220422131452.20757-1-mario.limonciello@amd.com/

The fix has been applied to mainline by Linus, but it is not yet in any stable releases:  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/gpio?id=06fb4ecfeac7e00d6704fa5ed19299f2fefb3cc9

I don't know how prevalent the affected systems are, but because of the severity of the problem for the ones that are affected, I wonder if it would be worth masking the affected kernel versions (or possibly rev-bumping them with the patch that fixes the issue).
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-26 06:51:16 UTC
I'll mask them, just please give me a minute to verify affected versions.
Comment 2 Larry the Git Cow gentoo-dev 2022-04-26 06:55:26 UTC
The bug has been referenced in the following commit(s):

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

commit f87fdd7cc78bcd96670f5c8953b6e0b842240dab
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-04-26 06:54:37 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-04-26 06:55:23 +0000

    package.mask: Mask buggy kernel releases
    
    Bug: https://bugs.gentoo.org/840942
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
Comment 3 Holger Hoffstätte 2022-04-26 08:42:29 UTC
Just a note that the fix commit is already queued up for the next stable release train, which should arrive sometime this week.
Comment 4 Larry the Git Cow gentoo-dev 2022-04-26 11:59:24 UTC
The bug has been referenced in the following commit(s):

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

commit b2da102e4554eefb4d7879554ed287c163f1e056
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-04-26 11:58:45 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-04-26 11:58:45 +0000

    package.mask: Mask kernel releases impacted by bug
    
    Bug: https://bugs.gentoo.org/840942
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 profiles/package.mask | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2022-04-26 12:34:10 UTC
The bug has been referenced in the following commit(s):

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

commit 7d36e63a59eb26e3608dbe85a627a1942614d5ef
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-04-26 12:33:53 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-04-26 12:33:53 +0000

    sys-kernel/gentoo-sources: gpio regression fix
    
    gpio: Request interrupts after IRQ is initialized
    
    Bug: https://bugs.gentoo.org/840942
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

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

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

commit 81c34c59b4944bb4152c0db6347dbbb65ed12fa7
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-04-26 12:33:37 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-04-26 12:33:37 +0000

    sys-kernel/gentoo-sources: gpio regression fix
    
    gpio: Request interrupts after IRQ is initialized
    
    Bug: https://bugs.gentoo.org/840942
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

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

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

commit dfa4514738e6278ad9da54a716eb65ffe1386814
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-04-26 12:32:27 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-04-26 12:32:27 +0000

    sys-kernel/gentoo-sources: gpio regression fix
    
    gpio: Request interrupts after IRQ is initialized
    
    Bug: https://bugs.gentoo.org/840942
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources-5.10.112-r1.ebuild              | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-26 16:05:47 UTC
I've pushed revbumps for sys-kernel/gentoo-kernel* and removed broken versions.  Let's wait for upstream release with (unsupported) sys-kernel/vanilla-kernel, and then close the bug.
Comment 7 Jouni Kosonen 2022-04-26 19:38:36 UTC
(In reply to Michał Górny from comment #6)
> I've pushed revbumps for sys-kernel/gentoo-kernel* and removed broken
> versions.  Let's wait for upstream release with (unsupported)
> sys-kernel/vanilla-kernel, and then close the bug.

Did commit 81c34c59b actually fix this for 5.15.35? The contents of genpatches-5.15-39 are same as those of genpatches-5.15-38.
Comment 8 Jouni Kosonen 2022-04-26 19:45:55 UTC
(In reply to Jouni Kosonen from comment #7)
> (In reply to Michał Górny from comment #6)
> > I've pushed revbumps for sys-kernel/gentoo-kernel* and removed broken
> > versions.  Let's wait for upstream release with (unsupported)
> > sys-kernel/vanilla-kernel, and then close the bug.
> 
> Did commit 81c34c59b actually fix this for 5.15.35? The contents of
> genpatches-5.15-39 are same as those of genpatches-5.15-38.

Sorry for the noise, just saw the #2800 in genpatches-5.15-39.base .
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-27 17:08:05 UTC
All kernels bumped and buggy versions removed.