diff options
author | Kees Cook | 2018-08-07 14:18:39 -0700 |
---|---|---|
committer | Herbert Xu | 2018-09-14 14:08:52 +0800 |
commit | 6d39a1241ebc3bdd61d654c3058f0955c28c13fd (patch) | |
tree | 96bb0af93ed1392637ac6dc974a55f36f0572d80 /lib | |
parent | a1b22a5f45fe884147a99e7c381bcc48d9b2acef (diff) |
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')
0 files changed, 0 insertions, 0 deletions