Ext4 data corruption bug in some kernels

Not sure where the best place for this is, search isn’t throwing anything up so I assume it hasn’t been mentioned yet. I’m very new to Nix/OS so please be gentle!

It appears there’s an ext4 data corruption bug in some kernels, in particular 6.1 before 6.1.66:

https://lore.kernel.org/stable/2023120643-evade-legal-ee74@gregkh/

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057843

6.1 seems to be the default for 23.05 and 23.11. I’ve been shown by one of the maintainers that 6.1.66 has been merged/backported to both of those in the last couple of days.

It’s not obvious to me how severe this is - I would have thought if it was easy to trigger there would have been more noise made about it by now. I haven’t researched the bug description in detail (very ‘low on spoons’ right now) but I wonder if it only affects one of the less commonly used I/O APIs?

I’m also not 100% clear which kernel series are affected. I think anything before 6.1 is OK, but don’t take my word for it.

3 Likes

https://github.com/NixOS/nixpkgs/issues/273375