Skip to contentSkip to conversation

device mapper changes for 6.5

GIT PULL Merged Mike Snitzer 2 participants 2 messages Jun 29, 2023 – Jun 30, 2023

Subsystems (2)
lore
Share & tools
lore

Mike Snitzer

author maintainer
#0 lore raw

Hi Linus,

This pull is based on an earlier subset of changes that you already pulled in for 6.5 via the block tree.

The following changes since commit 245165658e1c9f95c0fecfe02b9b1ebd30a1198a:

blk-mq: fix NULL dereference on q->elevator in blk_mq_elv_switch_none (2023-06-16 10:12:25 -0600)

are available in the Git repository at:

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

for you to fetch changes up to e2c789cab60a493a72b42cb53eb5fbf96d5f1ae3:

dm: get rid of GFP_NOIO workarounds for __vmalloc and kvmalloc (2023-06-27 16:06:54 -0400)

Please pull, thanks.
Mike

----------------------------------------------------------------
- Update DM crypt to allocate compound pages if possible.

- Fix DM crypt target's crypt_ctr_cipher_new return value on invalid AEAD cipher.

- Fix DM flakey testing target's write bio corruption feature to corrupt the data of a cloned bio instead of the original.

- Add random_read_corrupt and random_write_corrupt features to DM flakey target.

- Fix ABBA deadlock in DM thin metadata by resetting associated bufio client rather than destroying and recreating it.

- A couple other small DM thinp cleanups.

- Update DM core to support disabling block core IO stats accounting and optimize away code that isn't needed if stats are disabled.

- Other small DM core cleanups.

- Improve DM integrity target to not require so much memory on 32 bit systems. Also only allocate the recalculate buffer as needed (and increasingly reduce its size on allocation failure).

- Update DM integrity to use %*ph for printing hexdump of a small buffer. Also update DM integrity documentation.

- Various DM core ioctl interface hardening. Now more careful about alignment of structures and processing of input passed to the kernel from userspace. Also disallow the creation of DM devices named "control", "." or ".."

- Eliminate GFP_NOIO workarounds for __vmalloc and kvmalloc in DM core's ioctl and bufio code.
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEJfWUX4UqZ4x1O2wixSPxCi2dA1oFAmScyjAACgkQxSPxCi2d A1pilwgAucNIAB6uN4ke4WZrMVxSFntUkqDTkCs2Ycw+W4Tf1Mtrj/4WeBzFdJaA oZMK04LUGaFFXn+halsCDzB354yT9C7V/KfXW8pCM1c9BRz4e8272i2HSN4WwD5n BU4gVaOV5BwxynfF3Z5siRraad1AwmdoRGGsqzVRESAKaObXU//1tnO42UhxRVhn nzFqhIm0xRcLAd8xIBlMsZQGIloicdDP9wZdWzTEDspQiwR2dFRmH9bUF8OmsS+h KwhtDty7aZO+4gJ1ccBImijzQCmbAo7dmFhDfoLXaA5Jt6UwTXMeBHm4aUPMnvQe NVXoRZJodDemwM642Q/Tx1SpsX6QmA==
=4R7u
-----END PGP SIGNATURE-----

----------------------------------------------------------------
Andy Shevchenko (1):
dm integrity: Use %*ph for printing hexdump of a small buffer

Christophe JAILLET (1):
dm zone: Use the bitmap API to allocate bitmaps

Demi Marie Obenour (6):
dm ioctl: Check dm_target_spec is sufficiently aligned dm ioctl: Avoid pointer arithmetic overflow
dm ioctl: structs and parameter strings must not overlap dm ioctl: Avoid double-fetch of version
dm ioctl: Refuse to create device named "control" dm ioctl: Refuse to create device named "." or ".."

Li Lingfeng (1):
dm thin metadata: Fix ABBA deadlock by resetting dm_bufio_client

Li Nan (1):
dm: support turning off block-core's io stats accounting

Mike Snitzer (6):
dm thin: remove return code variable in pool_map
dm thin: update .io_hints methods to not require handling discards last
dm: avoid needless dm_io access if all IO accounting is disabled
dm: skip dm-stats work in alloc_io() unless needed
dm: remove stale/redundant dm_internal_{suspend,resume} prototypes in dm.h dm thin: disable discards for thin-pool if no_discard_passdown

Mikulas Patocka (8):
dm crypt: allocate compound pages if possible
dm flakey: clone pages on write bio before corrupting them
dm flakey: introduce random_read_corrupt and random_write_corrupt options dm crypt: fix crypt_ctr_cipher_new return value on invalid AEAD cipher dm integrity: reduce vmalloc space footprint on 32-bit architectures dm integrity: only allocate recalculate buffer when needed
dm integrity: scale down the recalculate buffer if memory allocation fails
dm: get rid of GFP_NOIO workarounds for __vmalloc and kvmalloc

Russell Harmon (4):
Documentation: dm-integrity: Fix minor grammatical error.
Documentation: dm-integrity: Document the meaning of "buffer".
Documentation: dm-integrity: Document default values.
Documentation: dm-integrity: Document an example of how the tunables relate.

 .../admin-guide/device-mapper/dm-flakey.rst        |  10 +
 .../admin-guide/device-mapper/dm-integrity.rst     |  43 +++--
 drivers/md/dm-bufio.c                              |  24 +--
 drivers/md/dm-core.h                               |   3 +-
 drivers/md/dm-crypt.c                              |  51 +++--
 drivers/md/dm-flakey.c                             | 210 ++++++++++++++++++---
 drivers/md/dm-integrity.c                          |  85 ++++-----
 drivers/md/dm-ioctl.c                              |  98 +++++++---
 drivers/md/dm-thin-metadata.c                      |  58 +++---
 drivers/md/dm-thin.c                               |  41 ++--
 drivers/md/dm-zone.c                               |  15 +-
 drivers/md/dm.c                                    |  58 +++---
 drivers/md/dm.h                                    |   3 -
 drivers/md/persistent-data/dm-block-manager.c      |   6 +
 drivers/md/persistent-data/dm-block-manager.h      |   1 +
 drivers/md/persistent-data/dm-space-map.h          |   3 +-
 .../md/persistent-data/dm-transaction-manager.c    |   3 +
 include/linux/dm-bufio.h                           |   2 +
 18 files changed, 478 insertions(+), 236 deletions(-)

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel

merge bot Merged
#1 lore raw
The pull request you sent on Thu, 29 Jun 2023 16:52:20 -0400:

The pull request you sent on Thu, 29 Jun 2023 16:52:20 -0400:

Quoted 1 line

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

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/6cdbb0907a3c562723455e351c940037bdec9b7a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html