summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-04-26 19:57:28 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-05 14:52:53 +0800
commitc946e3602165945515acf9d24ffe074143c5d5c7 (patch)
tree3123379bdb29f6e614ab7d4738b02f8caee95958 /crypto/testmgr.c
parentd1fc6ad1e97f8095d0965f82b1ea35e149f96d59 (diff)
downloadlinux-crypto-c946e3602165945515acf9d24ffe074143c5d5c7.tar.gz
linux-crypto-c946e3602165945515acf9d24ffe074143c5d5c7.zip
crypto: tcrypt - Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this allocates the return code buffers before starting jiffie timers, rather than using stack space for the array. Additionally cleans up some exit paths and make sure that the num_mb module_param() is used only once per execution to avoid possible races in the value changing. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions