dm cache: fix OOB and error handling in cache creation and resizing
cover dm cache: fix OOB and error handling in cache creation and resizing
This patch series addresses various issues during cache device initialization and resizing, includes out-of-bounds memory accesses, flushing uninitialized delayed_work, and optimizing bitset checking.
Ming-Hung Tsai (5):
dm cache: correct the number of origin blocks to match the target
length
dm cache: fix flushing uninitialized delayed_work on cache_ctr error dm cache: fix out-of-bounds access to the dirty bitset when resizing dm cache: optimize dirty bit checking with find_next_bit when resizing dm cache: fix potential out-of-bounds access on the first resume
drivers/md/dm-cache-target.c | 59 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 29 deletions(-)
Signature · 1 line
2.47.0