diff options
author | Kees Cook <keescook@chromium.org> | 2018-08-08 00:18:39 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-09-14 09:08:52 +0300 |
commit | 6d39a1241ebc3bdd61d654c3058f0955c28c13fd (patch) | |
tree | 96bb0af93ed1392637ac6dc974a55f36f0572d80 /lib/crc-t10dif.c | |
parent | a1b22a5f45fe884147a99e7c381bcc48d9b2acef (diff) | |
download | linux-6d39a1241ebc3bdd61d654c3058f0955c28c13fd.tar.xz |
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>
Diffstat (limited to 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions