Linux 5.1.5 Kernel Fixes The Latest Data Corruption Bug

Written by Michael Larabel in Linux Storage on 26 May 2019 at 07:41 AM EDT. 27 Comments
LINUX STORAGE
For those concerned by the kernel's most recent data corruption bug involving LVM, dm-crypt, and Samsung SSD drive combinations leading to FSTRIM/Discard wiping too much data, the issue should be resolved in the newly-minted Linux 5.1.5 kernel.

The Linux 5.1.5 kernel debuted on Saturday with this fix as well as various other kernel fixes.

The fix is a two-line patch to the DeviceMapper code to ensure it obeys the max I/O length target boundary.


That fix is also now in the Linux 5.2 Git code as well ahead of today's 5.2-rc2 release, "Fix a particularly glaring oversight in a DM core commit from 5.1 that doesn't properly trim special IOs (e.g. discards) relative to corresponding target's max_io_len_target_boundary()."

Latest kernel releases as always at Kernel.org.
Related News
About The Author
Michael Larabel

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 20,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, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week