mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH-next 0/2] dm: fix quiesce asymmetry and null pointer in suspend/load race
@ 2025-08-26  7:42 Zheng Qixing
  2025-08-26  7:42 ` [PATCH-next 1/2] dm: fix queue start/stop imbalance under suspend/load/resume races Zheng Qixing
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zheng Qixing @ 2025-08-26  7:42 UTC (permalink / raw)
  To: agk, snitzer, mpatocka, axboe, ming.lei
  Cc: dm-devel, linux-kernel, yukuai3, yi.zhang, yangerkun, houtao1,
	zhengqixing

From: Zheng Qixing <zhengqixing@huawei.com>

Hello,

During reliability testing of the dm module, we discovered two bugs when
performing create/remove and suspend/resume operations at high frequency.

Analysis revealed that race conditions between suspend and table load
operations cause asymmetric handling of q->quiesce_depth and null pointer
dereference issues with q->tag_set.

To address the q->tag_set null pointer issue, patch 2 determines whether
to perform certain suspend actions for request-based devices based on the
existence of the table (map).

For detailed information, please refer to the patch commits.

Additionally, since modern Linux kernels have indeed transitioned to
multi-queue as the default (and single-queue is largely deprecated),
is using queue_is_mq() to determine dm_request_based() obsolete?

Zheng Qixing (2):
  dm: fix queue start/stop imbalance under suspend/load/resume races
  dm: fix NULL pointer dereference in __dm_suspend()

 drivers/md/dm-core.h |  1 +
 drivers/md/dm.c      | 13 ++++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-26 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-26  7:42 [PATCH-next 0/2] dm: fix quiesce asymmetry and null pointer in suspend/load race Zheng Qixing
2025-08-26  7:42 ` [PATCH-next 1/2] dm: fix queue start/stop imbalance under suspend/load/resume races Zheng Qixing
2025-08-26  7:42 ` [PATCH-next 2/2] dm: fix NULL pointer dereference in __dm_suspend() Zheng Qixing
2025-08-26 14:50 ` [PATCH-next 0/2] dm: fix quiesce asymmetry and null pointer in suspend/load race Mikulas Patocka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®