Description
In the Linux kernel, the following vulnerability has been resolved: dm-pcache: do not advance dirty_tail after backing flush failure After all writeback bios for a kset complete, writeback_ctx_end() flushes the backing device and then advances the persistent dirty_tail. However, backing_dev_flush() discards the error returned by blkdev_issue_flush(), so dirty_tail is advanced even when the written data is not known to be durable. dirty_tail points to the first kset that still requires writeback. Advancing it causes recovery to treat the preceding kset as clean and allows its cache copy to eventually be reclaimed by garbage collection. If the backing device flush failed, a subsequent power failure may therefore result in data loss. Make backing_dev_flush() return the flush status and handle a flush failure like a writeback I/O failure. Leave dirty_tail unchanged so that the same kset will be retried.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 to < 6c674eb2ba966d1db238cf2ab421b2b05724f28caffected1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 to < 4b18793197878a0744b8d2ae5ef4878967a8c1b8affected1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 to < b1310cb291935c788f34ed6eb1e7e9b42cfac045affected
Linux Linux
Default version status: affected
6.18affected0 to < 6.18unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected