• Linus Torvalds's avatar
    Merge tag 'for-6.5/dm-changes' of... · 6cdbb090
    Linus Torvalds authored
    Merge tag 'for-6.5/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
    
    Pull device mapper updates from Mike Snitzer:
    
     - 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
    
    * tag 'for-6.5/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: (28 commits)
      dm: get rid of GFP_NOIO workarounds for __vmalloc and kvmalloc
      dm integrity: scale down the recalculate buffer if memory allocation fails
      dm integrity: only allocate recalculate buffer when needed
      dm integrity: reduce vmalloc space footprint on 32-bit architectures
      dm ioctl: Refuse to create device named "." or ".."
      dm ioctl: Refuse to create device named "control"
      dm ioctl: Avoid double-fetch of version
      dm ioctl: structs and parameter strings must not overlap
      dm ioctl: Avoid pointer arithmetic overflow
      dm ioctl: Check dm_target_spec is sufficiently aligned
      Documentation: dm-integrity: Document an example of how the tunables relate.
      Documentation: dm-integrity: Document default values.
      Documentation: dm-integrity: Document the meaning of "buffer".
      Documentation: dm-integrity: Fix minor grammatical error.
      dm integrity: Use %*ph for printing hexdump of a small buffer
      dm thin: disable discards for thin-pool if no_discard_passdown
      dm: remove stale/redundant dm_internal_{suspend,resume} prototypes in dm.h
      dm: skip dm-stats work in alloc_io() unless needed
      dm: avoid needless dm_io access if all IO accounting is disabled
      dm: support turning off block-core's io stats accounting
      ...
    6cdbb090
dm-ioctl.c 52 KB