]> asedeno.scripts.mit.edu Git - linux.git/commit
dm: Remove VLA usage from hashes
authorKees Cook <keescook@chromium.org>
Tue, 7 Aug 2018 21:18:39 +0000 (14:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 Sep 2018 06:08:52 +0000 (14:08 +0800)
commit6d39a1241ebc3bdd61d654c3058f0955c28c13fd
tree96bb0af93ed1392637ac6dc974a55f36f0572d80
parenta1b22a5f45fe884147a99e7c381bcc48d9b2acef
dm: Remove VLA usage from hashes

In the quest to remove all stack VLA usage from the kernel[1], this uses
the new HASH_MAX_DIGESTSIZE from the crypto layer to allocate the upper
bounds on stack usage.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/md/dm-integrity.c
drivers/md/dm-verity-fec.c