]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm vdo: add upfront validation for logical size
authorBruce Johnston <bjohnsto@redhat.com>
Tue, 24 Mar 2026 18:06:47 +0000 (14:06 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 26 Mar 2026 17:18:25 +0000 (18:18 +0100)
commitbeced130a367e0b99fa9424505ee7f07ddea86de
treed62e674b847de7397a4696e04b567d4555c12114
parent2fb98e4170c4a0d9ebe091ca2421121daa352de0
dm vdo: add upfront validation for logical size

Add a validation check that the logical size passed via the table line
does not exceed MAXIMUM_VDO_LOGICAL_BLOCKS.

Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Reviewed-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/dm-vdo-target.c