]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-integrity: fix mismatched queue limits
authorKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2026 19:36:06 +0000 (12:36 -0700)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 27 Mar 2026 21:18:56 +0000 (22:18 +0100)
commit6ebf3b6c6f16fda0568aa4207c6cd398f983c354
tree5d941319a2dd22e649dae1740ad36aa95c4ce8dc
parent5387815aa821a8d6dd87ba3aa6869e3c9c709b2a
dm-integrity: fix mismatched queue limits

A user can integritysetup a device with a backing device using a 4k
logical block size, but request the dm device use 1k or 2k. This
mismatch creates an inconsistency such that the dm device would report
limits for IO that it can't actually execute. Fix this by using the
backing device's limits if they are larger.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-integrity.c