diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-06-18 11:21:52 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-06-27 14:28:01 +0800 |
commit | 984be35f308de5d32700a849017047aa543cc631 (patch) | |
tree | ad021db64539b788ffb1037d9bb5d3d648747754 /crypto/asymmetric_keys/x509.asn1 | |
parent | 485d7ee28211c605513fb3cbb74f57b06516da3c (diff) | |
download | linux-crypto-984be35f308de5d32700a849017047aa543cc631.tar.gz linux-crypto-984be35f308de5d32700a849017047aa543cc631.zip |
crypto: testmgr - dynamically allocate testvec_config
On arm32, we get warnings about high stack usage in some of the functions:
crypto/testmgr.c:2269:12: error: stack frame size of 1032 bytes in function 'alg_test_aead' [-Werror,-Wframe-larger-than=]
static int alg_test_aead(const struct alg_test_desc *desc, const char *driver,
^
crypto/testmgr.c:1693:12: error: stack frame size of 1312 bytes in function '__alg_test_hash' [-Werror,-Wframe-larger-than=]
static int __alg_test_hash(const struct hash_testvec *vecs,
^
On of the larger objects on the stack here is struct testvec_config, so
change that to dynamic allocation.
Fixes: 4b772af62cb3 ("crypto: testmgr - fuzz AEADs against their generic implementation")
Fixes: 4ee79aa7c098 ("crypto: testmgr - fuzz skciphers against their generic implementation")
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/asymmetric_keys/x509.asn1')
0 files changed, 0 insertions, 0 deletions