summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorKees Cook2018-03-08 22:57:02 +0100
committerHerbert Xu2018-03-16 16:35:53 +0100
commit14de52112ee70ca289fa77bf2d9cbc79fd2c811f (patch)
treeaadb21d93cde2da9a059f4660d8c8376485526c2 /crypto/testmgr.h
parentcrypto: ccp - Validate buffer lengths for copy operations (diff)
downloadkernel-qcow2-linux-14de52112ee70ca289fa77bf2d9cbc79fd2c811f.tar.gz
kernel-qcow2-linux-14de52112ee70ca289fa77bf2d9cbc79fd2c811f.tar.xz
kernel-qcow2-linux-14de52112ee70ca289fa77bf2d9cbc79fd2c811f.zip
crypto: ecc - Remove stack VLA usage
On the quest to remove all VLAs from the kernel[1], this switches to a pair of kmalloc regions instead of using the stack. This also moves the get_random_bytes() after all allocations (and drops the needless "nbytes" variable). [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions