Skip to content

dm cache: fix OOB and error handling in cache creation and resizing

Ming-Hung Tsai dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dm cache: correct the number of origin blocks to match the target lengthdrivers/md/dm-cache-target.c+4 -41 reply
2/5dm cache: fix flushing uninitialized delayed_work on cache_ctr errordrivers/md/dm-cache-target.c+15 -91 reply
3/5dm cache: fix out-of-bounds access to the dirty bitset when resizingdrivers/md/dm-cache-target.c+1 -11 reply
4/5dm cache: optimize dirty bit checking with find_next_bit when resizingdrivers/md/dm-cache-target.c+8 -81 reply
5/5dm cache: fix potential out-of-bounds access on the first resumedrivers/md/dm-cache-target.c+16 -211 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] 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