]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-integrity: fix leaking uninitialized kernel memory
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 9 Jul 2026 19:22:47 +0000 (21:22 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 10 Jul 2026 12:38:50 +0000 (14:38 +0200)
commit7bb03b2b01b814a9fc14afbfc2cbb2cca5b34750
treeae08e2458a6c9f3d78157f4e037477225edcfb2f
parent24d7e5e39b04c1ef8eee0688ca1527e879b22a40
dm-integrity: fix leaking uninitialized kernel memory

If hash size is less than device's tuple size, dm-integrity is supposed
to zero the remaining space. There was a bug in the code that zeroing
didn't work. This commit fixes it.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-4.6
Fixes: fb0987682c62 ("dm-integrity: introduce the Inline mode")
Cc: stable@vger.kernel.org
drivers/md/dm-integrity.c