summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorKees Cook2018-03-30 18:55:44 +0200
committerHerbert Xu2018-04-20 18:58:29 +0200
commitd5c3b17898993c3461fb3f0497f45098ffd72ac6 (patch)
tree8918812280a8d42919dd3cef54dc22aa80cc4bc1 /crypto/testmgr.h
parentcrypto: caam/qi - fix IV DMA mapping and updating (diff)
downloadkernel-qcow2-linux-d5c3b17898993c3461fb3f0497f45098ffd72ac6.tar.gz
kernel-qcow2-linux-d5c3b17898993c3461fb3f0497f45098ffd72ac6.tar.xz
kernel-qcow2-linux-d5c3b17898993c3461fb3f0497f45098ffd72ac6.zip
crypto: ecc - Actually remove stack VLA usage
On the quest to remove all VLAs from the kernel[1], this avoids VLAs by just using the maximum allocation size (4 bytes) for stack arrays. All the VLAs in ecc were either 3 or 4 bytes (or a multiple), so just make it 4 bytes all the time. Initialization routines are adjusted to check that ndigits does not end up larger than the arrays. This includes a removal of the earlier attempt at this fix from commit a963834b4742 ("crypto/ecc: Remove stack VLA usage") [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions