]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:48:01 +0000 (08:48 +0100)
commit9a2590b400d47c71fb6deef5a935af91748efff0
tree02ff731d97a7f479626c35e6e6788e9c4360c632
parent61a982f9a57533d97b14d80edfcdaf2c4d3eb6f9
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