Hi Linus
The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:
Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
tags/for-7.4/dm-fixes
for you to fetch changes up to e92cd41e8e5ee5616c6c7cd4378661d942f0a7c0:
dm: fail a REQ_PREFLUSH bio with data when its preflush fails (2026-11-13
22:18:14 +0100)
Please, pull. Thanks.
Mikulas
----------------------------------------------------------------
dm:
- fix infinite loop when removing a zoned device
- fix misbehavior if kobject_init_and_add fails
- fix refcount underflow if zone reset failed
- fix misbehavior if we attempt to load a table after previous table
load failed
- fix use-after-free if we open a device read-only and then re-open it
read-write
- fix error being ignored if flush failed
dm-pcache:
- fix misbehavior on flush failure
dm-raid:
- validate array_position after it is read from the superblock
dm-cache:
- fix a crash if dm_kcopyd_client_create fails
- fix divide by zero on extremely large device
- fix NULL pointer dereference on open failure
- fix misbehavior if dm_bitset_cursor_begin fails
dm-snapshot:
- properly advertise discard_granularity in the queue limits
- fix data corruption on unaligned discards
dm-crypt:
- fix a crash on invalid table line
- fix scheduling in atomic context when using no_write_workqueue and
asynchronous completion cipher
- fix misbehavior if percpu_counter_init fails
dm-thin:
- fix integer overflow if no_space_timeout is too high
- fix data corruption if discard races with regular I/O
- fix leak if __set_snapshot_details fails
- fix parsing of feature arguments
dm-mpath:
- fix buffer overflow when parsing the table string
- fix integer overflow in queue_if_no_path_timeout_secs
dm-log-userspace:
- fix open device leak on initialization error
dm-zoned:
- back off when reclaim cannot make progress
- do not reclaim a random zone into another random zone
dm-integrity:
- don't recalculate with HMAC because of a dirty bitmap
- don't attempt to commit journal on disabled device
dm-persistent-data:
- don't ignore the return value of node_copy
- fix buffer leak if find_leaf fails
dm-verity:
- don't restart or panic on errors during system shutdown
dm-raid:
- flush a work item in raid_dtr, fix use-after-free
-----BEGIN PGP SIGNATURE-----
iIoEABYKADIWIQRnH8MwLyZDhyYfesYTAyx9YGnhbQUCavmh5xQcbXBhdG9ja2FA
cmVkaGF0LmNvbQAKCRATAyx9YGnhbUIJAP0VOhn3E0tgcZD1ubnywmancR6pgsnR
e8iLmafZubLvSAEAwqc9m31fcb8LUUMfehLJhfn2KrFqK4qXmRkf7wYWQwM=
=L52n
-----END PGP SIGNATURE-----
----------------------------------------------------------------
Chen Cheng (2):
dm snapshot: split discards on chunk boundaries
dm snapshot: fix discard writing into the next COW chunk
Daejun Park (1):
dm: fail a REQ_PREFLUSH bio with data when its preflush fails
Edward Adam Davis (1):
dm cache: reject kcopyd client destory if it setup failed
Jay Vadayath (1):
dm-raid: bound array_position before indexing failed_devices
Josef Schlehofer (1):
dm-crypt: defer async write submission to write thread
Kirtikumar Anandrao Ramchandani (2):
dm: Reject table setup after queue or disk teardown
dm cache: validate the discard block size before narrowing
Kyrylo Biryuk (2):
dm zoned: back off when reclaim cannot make progress
dm zoned: do not reclaim a random zone into another random zone
Li Youhong (1):
dm-raid: fix use-after-free in raid_dtr()
Mark Bundschuh (1):
dm: fix infinite loop in dm_blk_do_report_zones()
Mikulas Patocka (10):
dm-sysfs: fix misbehavior if kobject_init_and_add fails
dm-cache: fix NULL pointer dereference on open failure
dm-cache: fix ending a cursor that never began
dm-thin: fix data corruption if discard races with regular I/O
dm-thin: fix leak if __set_snapshot_details fails
dm-thin: fix parsing of feature arguments
dm persistent data: test return value of node_copy
dm persistent data: don't ignore writeback errors
dm persistent data: don't leak bufio buffer if find_leaf fails
dm-integrity: don't attempt to commit journal on disabled device
Ming-Hung Tsai (1):
dm: fix use-after-free when dm_get_device() widens the open mode
Sinan Polat (1):
dm-integrity: don't recalculate with HMAC because of a dirty bitmap
Weijiang Zhou (1):
dm-verity: don't restart or panic on errors during system shutdown
Yaohan Li (1):
dm: avoid double-dropping the zone reset submission reference
Yingjie Wang (2):
dm thin: avoid wrapping no_space_timeout
dm mpath: cap queue_if_no_path_timeout_secs
Zhao Feng (1):
dm crypt: fix use of uninitialized percpu_counter in ctr error path
guolingxing (1):
dm-pcache: do not advance dirty_tail after backing flush failure
[email protected] (2):
dm mpath: fix buffer overflow in parse_hw_handler()
dm log userspace: drop the device reference on error
wuyuehong (1):
dm snapshot: fix discard_granularity unit in snapshot_io_hints
xietangxin (1):
dm-crypt: reject integrity_key_size with non-authenc AEAD ciphers
drivers/md/dm-cache-metadata.c | 4 +-
drivers/md/dm-cache-target.c | 15 ++-
drivers/md/dm-crypt.c | 22 ++--
drivers/md/dm-integrity.c | 30 ++++-
drivers/md/dm-ioctl.c | 2 +-
drivers/md/dm-log-userspace-base.c | 6 +-
drivers/md/dm-mpath.c | 6 +-
drivers/md/dm-pcache/backing_dev.c | 4 +-
drivers/md/dm-pcache/backing_dev.h | 2 +-
drivers/md/dm-pcache/cache_writeback.c | 28 +++--
drivers/md/dm-raid.c | 5 +-
drivers/md/dm-snap.c | 18 +--
drivers/md/dm-sysfs.c | 17 ++-
drivers/md/dm-table.c | 142 +++++++++++++----------
drivers/md/dm-thin-metadata.c | 5 +-
drivers/md/dm-thin.c | 7 +-
drivers/md/dm-verity-target.c | 27 +++--
drivers/md/dm-zone.c | 2 +
drivers/md/dm-zoned-reclaim.c | 18 ++-
drivers/md/dm.c | 21 +++-
drivers/md/dm.h | 18 ++-
drivers/md/persistent-data/dm-btree-remove.c | 13 ++-
drivers/md/persistent-data/dm-btree.c | 8 +-
drivers/md/persistent-data/dm-space-map-common.c | 9 +-
24 files changed, 298 insertions(+), 131 deletions(-)