Page 1 of 1

[Software] Kernel Bug - 6.1.64-1 EXT4 data corruption

Posted: 2023-12-10 10:33
by Ardouos
After the 12.3 upgrade it seem there is a kernel bug with 6.1.64-1 which will be fixed in 6.1.66-1. It may be fixed by the time you have read this. If you are running 6.1.64-1 you hopefully should be able to use the previous kernel for now: 6.1.55-1

https://bugs.debian.org/cgi-bin/bugrepo ... ug=1057843

Re: [Software] Kernel Bug - 6.1.64-1 EXT4 data corruption

Posted: 2023-12-10 11:32
by fabien
Thank you very much.
Too bad, I updated a day too early. For now I have purged linux-image-amd64 and linux-image-6.1.0-14-amd64 (to unattended-updates users: this will prevent linux-image-6.1.0-13-amd64 to be automatically removed. You reinstall linux-image-amd64 when a new kernel is released).

https://bugs.debian.org/cgi-bin/bugrepo ... 1057843#38
The bug appears to be triggered when an ->end_io handler returns a non-
zero value to iomap after a direct IO write.
[...]
The bug corrupts file data during a direct write operation
Direct I/O
Direct I/O is a feature of the file system whereby file reads and writes go directly from the applications to the storage device, bypassing the operating system read and write caches. Direct I/O is used only by applications (such as databases) that manage their own caches.
If I'm right, the bug shouldn't affect desktop users too much.

Re: [Software] Kernel Bug - 6.1.64-1 EXT4 data corruption

Posted: 2023-12-10 14:57
by Ardouos
It does look like there an announcement on the top of this board:
viewtopic.php?t=157711

Sorry for reposting. I tried looking at active threads and didn't see it, as it does not seem to appear there.

Re: [Software] Kernel Bug - 6.1.64-1 EXT4 data corruption

Posted: 2023-12-10 20:51
by fabien
The new kernel is released

Code: Select all

$> apt --installed list linux-image-*
Listing... Done
linux-image-6.1.0-13-amd64/stable,now 6.1.55-1 amd64 [installed,automatic]
linux-image-6.1.0-15-amd64/stable,now 6.1.66-1 amd64 [installed,automatic]
linux-image-amd64/stable,now 6.1.66-1 amd64 [installed]
$> ls -l /initrd.img*
lrwxrwxrwx 1 root root 30 Dec 10 21:36 /initrd.img -> boot/initrd.img-6.1.0-15-amd64
lrwxrwxrwx 1 root root 30 Dec  9 22:51 /initrd.img.old -> boot/initrd.img-6.1.0-13-amd64
$> cat /etc/debian_version 
12.4
And we have seen the shortest lived Debian version.