dm-integrity: limit MAX_TAG_SIZE to 255

[ Upstream commit 77b8e6fbf9 ]

MAX_TAG_SIZE was 0x1a8 and it may be truncated in the "bi->metadata_size
= ic->tag_size" assignment. We need to limit it to 255.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Mikulas Patocka 2025-09-08 15:52:02 +02:00 • committed by Greg Kroah-Hartman
commit 9eb265e5aa