All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Korsgaard <peter@korsgaard.com>,
	linux-block@vger.kernel.org, dm-devel@redhat.com,
	Mikulas Patocka <mpatocka@redhat.com>,
	Luo Meng <luomeng12@huawei.com>,
	Zhihao Cheng <chengzhihao1@huawei.com>,
	Alasdair G Kergon <agk@redhat.com>
Subject: [dm-devel] [git pull] device mapper changes for 6.2
Date: Mon, 12 Dec 2022 17:36:13 -0500	[thread overview]
Message-ID: <Y5es3Sf0DU0QEHPP@redhat.com> (raw)

Hi Linus,

The following changes since commit b7b275e60bcd5f89771e865a8239325f86d9927d:

  Linux 6.1-rc7 (2022-11-27 13:31:48 -0800)

are available in the Git repository at:

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

for you to fetch changes up to 7991dbff6849f67e823b7cc0c15e5a90b0549b9f:

  dm thin: Use last transaction's pmd->root when commit failed (2022-12-08 12:17:09 -0500)

Please pull, thanks.
Mike

----------------------------------------------------------------
- Fix use-after-free races due to missing resource cleanup during DM
  target destruction in DM targets: thin-pool, cache, integrity and
  clone.

- Fix ABBA deadlocks in DM thin-pool and cache targets due to their
  use of a bufio client (that has a shrinker whose locking can cause
  the incorrect locking order).

- Fix DM cache target to set its needs_check flag after first aborting
  the metadata (whereby using reset persistent-data objects to update
  the superblock with, otherwise the superblock update could be
  dropped due to aborting metadata).  This was found with
  code-inspection when comparing with the equivalent in DM thinp
  code.

- Fix DM thin-pool's presume to continue resuming the device even if
  the pool in is fail mode -- otherwise bios may never be failed up
  the IO stack (which will prevent resetting the thin-pool target via
  table reload)

- Fix DM thin-pool's metadata to use proper btree root (from previous
  transaction) if metadata commit failed.

- Add 'waitfor' module param to DM module (dm_mod) to allow dm-init to
  wait for the specified device before continuing with its DM target
  initialization.

----------------------------------------------------------------
Luo Meng (5):
      dm thin: Fix UAF in run_timer_softirq()
      dm clone: Fix UAF in clone_dtr()
      dm cache: Fix UAF in destroy()
      dm integrity: Fix UAF in dm_integrity_dtr()
      dm thin: resume even if in FAIL mode

Mike Snitzer (2):
      dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
      dm cache: set needs_check flag after aborting metadata

Mikulas Patocka (2):
      dm ioctl: a small code cleanup in list_version_get_info
      dm ioctl: fix a couple ioctl codes

Peter Korsgaard (1):
      dm init: add dm-mod.waitfor to wait for asynchronously probed block devices

Zhihao Cheng (2):
      dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
      dm thin: Use last transaction's pmd->root when commit failed

 .../admin-guide/device-mapper/dm-init.rst          |  8 +++
 drivers/md/dm-cache-metadata.c                     | 54 ++++++++++++++++---
 drivers/md/dm-cache-target.c                       | 11 ++--
 drivers/md/dm-clone-target.c                       |  1 +
 drivers/md/dm-init.c                               | 22 +++++++-
 drivers/md/dm-integrity.c                          |  2 +
 drivers/md/dm-ioctl.c                              |  6 +--
 drivers/md/dm-thin-metadata.c                      | 60 +++++++++++++++++++---
 drivers/md/dm-thin.c                               | 18 +++++--
 9 files changed, 154 insertions(+), 28 deletions(-)

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


WARNING: multiple messages have this Message-ID (diff)
From: Mike Snitzer <snitzer@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: dm-devel@redhat.com, linux-block@vger.kernel.org,
	Alasdair G Kergon <agk@redhat.com>,
	Luo Meng <luomeng12@huawei.com>,
	Mikulas Patocka <mpatocka@redhat.com>,
	Peter Korsgaard <peter@korsgaard.com>,
	Zhihao Cheng <chengzhihao1@huawei.com>
Subject: [git pull] device mapper changes for 6.2
Date: Mon, 12 Dec 2022 17:36:13 -0500	[thread overview]
Message-ID: <Y5es3Sf0DU0QEHPP@redhat.com> (raw)

Hi Linus,

The following changes since commit b7b275e60bcd5f89771e865a8239325f86d9927d:

  Linux 6.1-rc7 (2022-11-27 13:31:48 -0800)

are available in the Git repository at:

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

for you to fetch changes up to 7991dbff6849f67e823b7cc0c15e5a90b0549b9f:

  dm thin: Use last transaction's pmd->root when commit failed (2022-12-08 12:17:09 -0500)

Please pull, thanks.
Mike

----------------------------------------------------------------
- Fix use-after-free races due to missing resource cleanup during DM
  target destruction in DM targets: thin-pool, cache, integrity and
  clone.

- Fix ABBA deadlocks in DM thin-pool and cache targets due to their
  use of a bufio client (that has a shrinker whose locking can cause
  the incorrect locking order).

- Fix DM cache target to set its needs_check flag after first aborting
  the metadata (whereby using reset persistent-data objects to update
  the superblock with, otherwise the superblock update could be
  dropped due to aborting metadata).  This was found with
  code-inspection when comparing with the equivalent in DM thinp
  code.

- Fix DM thin-pool's presume to continue resuming the device even if
  the pool in is fail mode -- otherwise bios may never be failed up
  the IO stack (which will prevent resetting the thin-pool target via
  table reload)

- Fix DM thin-pool's metadata to use proper btree root (from previous
  transaction) if metadata commit failed.

- Add 'waitfor' module param to DM module (dm_mod) to allow dm-init to
  wait for the specified device before continuing with its DM target
  initialization.

----------------------------------------------------------------
Luo Meng (5):
      dm thin: Fix UAF in run_timer_softirq()
      dm clone: Fix UAF in clone_dtr()
      dm cache: Fix UAF in destroy()
      dm integrity: Fix UAF in dm_integrity_dtr()
      dm thin: resume even if in FAIL mode

Mike Snitzer (2):
      dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
      dm cache: set needs_check flag after aborting metadata

Mikulas Patocka (2):
      dm ioctl: a small code cleanup in list_version_get_info
      dm ioctl: fix a couple ioctl codes

Peter Korsgaard (1):
      dm init: add dm-mod.waitfor to wait for asynchronously probed block devices

Zhihao Cheng (2):
      dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
      dm thin: Use last transaction's pmd->root when commit failed

 .../admin-guide/device-mapper/dm-init.rst          |  8 +++
 drivers/md/dm-cache-metadata.c                     | 54 ++++++++++++++++---
 drivers/md/dm-cache-target.c                       | 11 ++--
 drivers/md/dm-clone-target.c                       |  1 +
 drivers/md/dm-init.c                               | 22 +++++++-
 drivers/md/dm-integrity.c                          |  2 +
 drivers/md/dm-ioctl.c                              |  6 +--
 drivers/md/dm-thin-metadata.c                      | 60 +++++++++++++++++++---
 drivers/md/dm-thin.c                               | 18 +++++--
 9 files changed, 154 insertions(+), 28 deletions(-)

             reply	other threads:[~2022-12-12 22:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 22:36 Mike Snitzer [this message]
2022-12-12 22:36 ` [git pull] device mapper changes for 6.2 Mike Snitzer
2022-12-13 19:02 ` [dm-devel] " pr-tracker-bot
2022-12-13 19:02   ` pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y5es3Sf0DU0QEHPP@redhat.com \
    --to=snitzer@kernel.org \
    --cc=agk@redhat.com \
    --cc=chengzhihao1@huawei.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=luomeng12@huawei.com \
    --cc=mpatocka@redhat.com \
    --cc=peter@korsgaard.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.