dm-verity: align struct dm_verity_fec_io properly
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 28 Nov 2023 13:50:23 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:16 +0000 (08:52 +0100)
commit99277dd29051e2c28d865c5100e355d32803a997
treeeba9c30b7b7ede6faa537a0b3b9aafaf93b465f9
parent5368a515a37fdbc65f85d3c08374e667a40a7981
dm-verity: align struct dm_verity_fec_io properly

commit 38bc1ab135db87577695816b190e7d6d8ec75879 upstream.

dm_verity_fec_io is placed after the end of two hash digests. If the hash
digest has unaligned length, struct dm_verity_fec_io could be unaligned.

This commit fixes the placement of struct dm_verity_fec_io, so that it's
aligned.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: a739ff3f543a ("dm verity: add support for forward error correction")
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-verity-fec.c
drivers/md/dm-verity.h