mbox series

[0/5] dm cache: fix OOB and error handling in cache creation and resizing

Message ID 20241022070611.777552-1-mtsai@redhat.com (mailing list archive)
Headers show
Series dm cache: fix OOB and error handling in cache creation and resizing | expand

Message

Ming-Hung Tsai Oct. 22, 2024, 7:06 a.m. UTC
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(-)