Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919675 - sys-kernel/gentoo-sources: ext4 data corruption
Summary: sys-kernel/gentoo-sources: ext4 data corruption
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PMASKED
Depends on: 919482 919485
Blocks:
  Show dependency tree
 
Reported: 2023-12-10 01:51 UTC by Tomáš Mózes
Modified: 2023-12-18 06:31 UTC (History)
2 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 Tomáš Mózes 2023-12-10 01:51:17 UTC
There is a problem in multiple stable kernel releases that is causing data corruption in ext4 filesystems. It is caused by a problematic commit that is in multiple stable kernels:

    The commit got merged in 6.5-rc1 so all stable kernels that have 91562895f803 ("ext4: properly sync file size update after O_SYNC direct IO") before 6.5 are corrupting data - I've noticed at least 6.1 is still carrying the problematic commit. 

More information can be found in a Debian bug report. It has also delayed the release of Debian 12.3 images. ""Please do not upgrade any systems at this time, we urge caution for users with UnattendeUpgrades configured."" 

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057843
https://lore.kernel.org/stable/20231205122122.dfhhoaswsfscuhc3@quack3/
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-10 09:54:32 UTC
It's probably useful to have a bug for discussion but FWIW, we're all done here, I think.

Fixed kernels are stabled, bad ones have been cleaned up, and we've masked the affected ones too.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-10 09:54:51 UTC
commit 866d1ca2c40dc6725f81bea276fbc451dd5ac4da
Author: Sam James <sam@gentoo.org>
Date:   Sat Dec 9 22:10:49 2023 +0000

    profiles: fixup ext4 mask

    dwfreed pointed out that the 5.10/5.15 bits got caught before
    release. Also, fix a typo in the other versions.

    Fixes: 512caa31a15438aae68016ff721df42899a7cb2b
    Signed-off-by: Sam James <sam@gentoo.org>

commit 512caa31a15438aae68016ff721df42899a7cb2b
Author: Sam James <sam@gentoo.org>
Date:   Sat Dec 9 22:03:46 2023 +0000

    profiles: mask kernels affected by ext4 corruption bug

    See https://lore.kernel.org/stable/20231205122122.dfhhoaswsfscuhc3@quack3/.

    Signed-off-by: Sam James <sam@gentoo.org>
Comment 3 Larry the Git Cow gentoo-dev 2023-12-10 09:56:25 UTC
The bug has been referenced in the following commit(s):

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

commit c0277472824e0c09b82e3f8f2ca4c3d0dd12cf0c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-10 09:55:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-10 09:55:40 +0000

    profiles: add bug ref to mask
    
    (Bug didn't exist at the time.)
    
    Bug: https://bugs.gentoo.org/919675
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Tomáš Mózes 2023-12-10 14:10:49 UTC
Thanks, glad we're safe!