]> Git Repo - linux.git/commit - crypto/testmgr.c
crypto: testmgr - dynamically allocate testvec_config
authorArnd Bergmann <[email protected]>
Tue, 18 Jun 2019 09:21:52 +0000 (11:21 +0200)
committerHerbert Xu <[email protected]>
Thu, 27 Jun 2019 06:28:01 +0000 (14:28 +0800)
commit6b5ca646ca9d99611e30f3c8f6b4837b9890eb73
tree3c8c9a93558e4ed654e530c65a351fb4884850e6
parentc8c74647b2945e3522b77b659917766d7e1c6ed9
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: 40153b10d91c ("crypto: testmgr - fuzz AEADs against their generic implementation")
Fixes: d435e10e67be ("crypto: testmgr - fuzz skciphers against their generic implementation")
Fixes: 9a8a6b3f0950 ("crypto: testmgr - fuzz hashes against their generic implementation")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/testmgr.c
This page took 0.043596 seconds and 4 git commands to generate.