]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccm - Remove VLA usage
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 7 Aug 2018 21:18:37 +0000 (14:18 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Sep 2018 03:35:03 +0000 (11:35 +0800)
commitfd07f032b875d03d5093dac61071ab28effeac33
treeeae178d2f083b217fd9033081e20c37cb2ffd90c
parent083c90906ed92546125bf9177095ce81f1884897
crypto: ccm - Remove VLA usage

In the quest to remove all stack VLA usage from the kernel[1], this drops
AHASH_REQUEST_ON_STACK by preallocating the ahash request area combined
with the skcipher area (which are not used at the same time).

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

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ccm.c