flashcache is not usable on kernel version 4.8 and later
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flashcache (Debian) |
Fix Released
|
Unknown
|
|||
flashcache (Ubuntu) |
Fix Released
|
High
|
Stefan Bader | ||
Xenial |
Fix Released
|
Medium
|
Stefan Bader | ||
Zesty |
Fix Released
|
High
|
Stefan Bader |
Bug Description
SRU justification:
Impact:
The flashcache DKMS module is building but due to an incomplete adaptation for the bi_op/bi_opf split the resulting device-mapper logical volume is not properly writing back data to the backing device.
!!! It is possible to write to the volume but the data is LOST !!!
Fix:
When setting up internal device-mapper IO structures we *must* also initialize bi_op_flags. At least when the structure is on the stack and is set up with individual assignments. Maybe it would not be required for the { ... } form but better be explicit in all cases.
Testcase:
- prereq: two block devices (disks or partitions), for testing this can also
be loop devices. also need flashcache-utils and flashcache-dkms
- run "sudo flashcache-create -p back <name> <cache-dev> <backing-dev>"
- run "sudo mkfs.ext4 /dev/mapper/<name>"
- run "sudo fsck -f /dev/mapper/<name>"
- run "sudo dmsetup remove <name>" (this can take a bit)
- run "sudo fsck -f <backing-dev>"
Regression Potential:
None. The fix is only properly initializing otherwise uninitialized struct fields.
tags: | added: patch |
Changed in flashcache (Ubuntu Xenial): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in flashcache (Ubuntu Zesty): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in flashcache (Debian): | |
status: | Unknown → New |
Changed in flashcache (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package flashcache - 3.1.3+git201507 01-5ubuntu1
--------------- git20150701- 5ubuntu1) artful; urgency=medium
flashcache (3.1.3+
* Initialize bi_op_flags in dm_io_request structures (LP: #1714185).
* Fix DKMS compile for 4.13+ kernels (LP: #1706426).
-- Stefan Bader <email address hidden> Wed, 30 Aug 2017 16:49:59 +0200