summaryrefslogtreecommitdiff
path: root/crypto/arc4.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-18 11:21:53 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-27 14:28:01 +0800
commit630ca5ef31e8132f72bf7d8d67939b205fb5d605 (patch)
treef471f0cd2929e50f8230acf8694ea3937c44dc41 /crypto/arc4.c
parent984be35f308de5d32700a849017047aa543cc631 (diff)
downloadlinux-crypto-630ca5ef31e8132f72bf7d8d67939b205fb5d605.tar.gz
linux-crypto-630ca5ef31e8132f72bf7d8d67939b205fb5d605.zip
crypto: testmgr - dynamically allocate crypto_shash
The largest stack object in this file is now the shash descriptor. Since there are many other stack variables, this can push it over the 1024 byte warning limit, in particular with clang and KASAN: crypto/testmgr.c:1693:12: error: stack frame size of 1312 bytes in function '__alg_test_hash' [-Werror,-Wframe-larger-than=] Make test_hash_vs_generic_impl() do the same thing as the corresponding eaed and skcipher functions by allocating the descriptor dynamically. We can still do better than this, but it brings us well below the 1024 byte limit. Suggested-by: Eric Biggers <ebiggers@kernel.org> Fixes: d5b14e972b3b ("crypto: testmgr - fuzz hashes against their generic implementation") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions