[git pull] device mapper changes for 7.3

Mikulas Patocka <[email protected]>
Newsgroups dev.linux.lists.dm-devel
Message-ID <[email protected]>
Hi Linus

The following changes since commit a13c140cc289c0b7b3770bce5b3ad42ab35074aa:

  Linux 7.2-rc3 (2026-07-12 14:16:39 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-7.3/dm-changes

for you to fetch changes up to 39c5aa3bd8ec3912d2cd0b3fe092642b0d2b0713:

  dm-era: fix shadowed superblock leak on take-snap failure (2026-08-06 13:55:01 +0200)

Please, pull. Thanks.

Mikulas

----------------------------------------------------------------
- 6 minor cleanups found by Claude Opus 4.6

- small cleanups in dm core, dm-cache, dm-switch, dm-inlinecrypt, dm-vdo

- improve validation of metadata in dm-pcache

- dm: fix resume-vs-remove ioctl race condition

- dm: fix race condition when issuing table load ioctls concurrently

- fix dm-raid1 and dm-io, so that they work with unaligned bio vectors

- dm-integrity: use keyed markers as discard fillers

- improve metadata validation in dm-array

- fix dm-stats crash on memory allocation failure

- fix dm-dust, so that it works if it is not the first target in a table

- dm-era: fix superblock refcount leak on snapshot failure
-----BEGIN PGP SIGNATURE-----

iIoEABYIADIWIQRnH8MwLyZDhyYfesYTAyx9YGnhbQUCaoNttBQcbXBhdG9ja2FA
cmVkaGF0LmNvbQAKCRATAyx9YGnhbThWAQCYDN/SclnydRYV7IKzV/yyd75esUOi
lWC3kMbiykSD0AEAmdQeMEqwxpX8i1njnPrcm67i4+LEKMK4X+ApLwV30gQ=
=SOAs
-----END PGP SIGNATURE-----

----------------------------------------------------------------
Bryam Vargas (13):
      dm-pcache: validate seg_id fields from persistent memory
      dm-pcache: validate geometry fields from on-disk cache_info
      dm-pcache: validate kset key_num and intra-segment bounds
      dm-pcache: bound the persisted tail-position offset
      dm-pcache: reject a kset that overruns its segment
      dm-pcache: detect a cycle in the last-kset chain during replay
      dm-pcache: bound the logical key offset from persistent memory
      dm-pcache: clamp the tail kset read to the segment data region
      dm-pcache: validate on-media seg_num against the cache device size
      dm-pcache: validate the persisted dirty_tail chain at load
      dm-pcache: only hand out initialized cache segments
      dm array: validate array block headers on read
      dm array: reject an array block whose value size is not the caller's

David Laight (3):
      dm: __list_versions(): Only process targets once
      dm: list_devices(): Only process devices once
      dm: lookup_ioctl(): Use designated array initialers

Haotian Zhang (1):
      dm-switch: use WRITE_ONCE() in switch_region_table_write()

Ilya Krutskih (1):
      dm raid1: reserve space for NUL-terminator in build_constructor_string()

Jiangong.Han (1):
      dm: use `clear_and_wake_up_bit()` in device mapper

Jianyun Gao (6):
      dm-pcache: fix implicit u8 truncation of gc_percent in message handler
      dm-pcache: fix use-after-free and invalid seg operations in kset_replay()
      dm-pcache: replace tabs with spaces in comments to fix ASCII diagram alignment
      dm-pcache: remove unused 'allocated' variable in cache_data_alloc()
      dm-pcache: remove unused miss_read_end_work_fn declaration
      dm-pcache: remove unused 'cache' parameter from cache_key_gc()

Keith Busch (1):
      dm-io: clone the source bio instead of copying its biovec

Matthew Sakai (1):
      dm vdo: don't read repair field in loop condition

Mikulas Patocka (11):
      dm-integrity: fix error message
      dm-integrity: clean-up error handling
      dm-integrity: fix wrong fallthrough in integrity_bio_wait
      dm-ioctl: delete a useless condition
      dm-table: fix spelling
      dm-verity: remove pointless nested "bio" declaration
      dm-inlinecrypt: don't overwrite the error with -EINVAL
      dm: fix resume-vs-remove race
      dm: fix race when loading and unloading a table
      dm-io: report non-retryable errors separatedly
      dm-stats: fix a crash if allocation of per-cpu data fails

Samuel Moelius (2):
      dm cache: parse invalidate_cblocks with kstrtouint()
      dm dust: make badblock messages target-relative

Shukai Ni (1):
      dm-integrity: replace forgeable discard filler with a keyed sector marker

bui duc phuc (1):
      dm: drop redundant nonseekable_open() return check

corwin (2):
      dm vdo indexer: simplify sub-index parameter calculations
      dm vdo indexer: embed geometry in parent structures

liyouhong (1):
      dm-era: fix shadowed superblock leak on take-snap failure

shaikh.kamal (1):
      docs: device-mapper: dm-inlinecrypt: fix 'bellow' spelling

 Documentation/admin-guide/device-mapper/dm-ima.rst |   7 +-
 .../admin-guide/device-mapper/dm-inlinecrypt.rst   |   2 +-
 .../admin-guide/device-mapper/dm-integrity.rst     |  13 ++
 drivers/md/dm-bufio.c                              |  10 +-
 drivers/md/dm-cache-target.c                       |  56 +++---
 drivers/md/dm-dust.c                               |  16 +-
 drivers/md/dm-era-target.c                         |   5 +
 drivers/md/dm-inlinecrypt.c                        |   1 -
 drivers/md/dm-integrity.c                          | 175 +++++++++++++----
 drivers/md/dm-io.c                                 |  96 +++++----
 drivers/md/dm-ioctl.c                              | 216 +++++++++------------
 drivers/md/dm-kcopyd.c                             |  10 +-
 drivers/md/dm-log-userspace-base.c                 |   1 +
 drivers/md/dm-log.c                                |   4 +-
 drivers/md/dm-pcache/cache.c                       |  29 +++
 drivers/md/dm-pcache/cache.h                       |  43 +++-
 drivers/md/dm-pcache/cache_dev.c                   |  22 ++-
 drivers/md/dm-pcache/cache_gc.c                    |  36 +++-
 drivers/md/dm-pcache/cache_key.c                   | 128 ++++++++++--
 drivers/md/dm-pcache/cache_req.c                   |  19 +-
 drivers/md/dm-pcache/cache_segment.c               |  12 +-
 drivers/md/dm-pcache/cache_writeback.c             |  38 +++-
 drivers/md/dm-pcache/dm_pcache.c                   |   4 +-
 drivers/md/dm-raid1.c                              |  26 ++-
 drivers/md/dm-snap-persistent.c                    |   4 +-
 drivers/md/dm-snap.c                               |   4 +-
 drivers/md/dm-stats.c                              |   6 +-
 drivers/md/dm-switch.c                             |   2 +-
 drivers/md/dm-table.c                              |   2 +-
 drivers/md/dm-vdo/indexer/config.c                 |  34 ++--
 drivers/md/dm-vdo/indexer/config.h                 |   2 +-
 drivers/md/dm-vdo/indexer/geometry.c               |  92 ++++-----
 drivers/md/dm-vdo/indexer/geometry.h               |  13 +-
 drivers/md/dm-vdo/indexer/index-layout.c           |   2 +-
 drivers/md/dm-vdo/indexer/index.c                  |  30 +--
 drivers/md/dm-vdo/indexer/open-chapter.c           |   2 +-
 drivers/md/dm-vdo/indexer/open-chapter.h           |   2 +-
 drivers/md/dm-vdo/indexer/volume-index.c           | 190 +++++++++---------
 drivers/md/dm-vdo/indexer/volume.c                 |  74 ++++---
 drivers/md/dm-vdo/indexer/volume.h                 |   2 +-
 drivers/md/dm-vdo/repair.c                         |   6 +-
 drivers/md/dm-verity-target.c                      |   4 +-
 drivers/md/dm-writecache.c                         |  14 +-
 drivers/md/dm-zoned-metadata.c                     |   8 +-
 drivers/md/dm-zoned-reclaim.c                      |   4 +-
 drivers/md/dm.c                                    |  14 +-
 drivers/md/persistent-data/dm-array.c              |  53 ++++-
 include/linux/dm-io.h                              |   6 +-
 48 files changed, 928 insertions(+), 611 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.