The "EXT4 Corruption Issue" Has Been Fixed In Linux 4.20, Backport Pending To 4.19
Written by Michael Larabel in Linux Storage on 5 December 2018 at 06:30 PM EST. 21 Comments
LINUX STORAGE --
The EXT4 file-system corruption issue on Linux 4.19 that also affected 4.20 development builds is now case closed for this pesky data corruption issue.

As outlined yesterday, this "EXT4 file-system corruption problem" was actually an issue in the BLK-MQ code within the kernel's block subsystem. That article yesterday has more background information and that problem in the multi-queue block I/O code indeed turned out to be what was causing the problem that's been happening going back to Linux 4.19-rc1 and persisting through the various Linux 4.19 point releases and also Linux 4.20 Git. Disks on Linux 4.19+ were only vulnerable if using BLK-MQ and using no I/O scheduler.

Fortunately, as of this evening, Jens Axboe submitted a pull request with the fix and it's now landed in Linux 4.20 Git. Axboe commented, "Under a combination of circumstance, the direct issue path in blk-mq could corrupt data. This wasn't easy to hit, but the ones that are affected by it, seem to hit it pretty easily. None of the regular filesystem and storage testing has triggered it, even though it's been around since 4.19-rc1."


The patch is quite small and should be back-ported to Linux 4.19 for its next stable point release, which will be Linux 4.19.8. The code did not land in time for today's Linux 4.19.7 point release.

About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Linux Storage News
Popular News This Week