Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 686518

Summary: >=sys-kernel/gentoo-sources-5.1: device mapper and discard can lead to data loss
Product: Gentoo Linux Reporter: Zoltan Puskas <zoltan>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zoltan Puskas 2019-05-22 00:50:23 UTC
When using and SSD, where the storage stack includes device mapper (e.g. LVM, dm-luks, etc), can potentially lead to data loss when discard is enabled (or running fstrim).

Apparently it effects kernels >=5.1.

Related discussion:
https://www.redhat.com/archives/dm-devel/2019-May/msg00082.html

Apparent fix:
https://www.redhat.com/archives/dm-devel/2019-May/msg00102.html
Comment 1 Mike Pagano gentoo-dev 2019-05-27 19:54:23 UTC
All affected 5.1 kernels removed from vanilla and gentoo-sources.

Thanks for reporting.