crypto: null - Remove VLA usage of skcipher
In the quest to remove all stack VLA usage from the kernel[1], this replaces struct crypto_skcipher and SKCIPHER_REQUEST_ON_STACK() usage with struct crypto_sync_skcipher and SYNC_SKCIPHER_REQUEST_ON_STACK(), which uses a fixed stack size. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Signed-off-by:Kees Cook <keescook@chromium.org> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/algif_aead.c 6 additions, 6 deletionscrypto/algif_aead.c
- crypto/authenc.c 4 additions, 4 deletionscrypto/authenc.c
- crypto/authencesn.c 4 additions, 4 deletionscrypto/authencesn.c
- crypto/crypto_null.c 5 additions, 6 deletionscrypto/crypto_null.c
- crypto/echainiv.c 2 additions, 2 deletionscrypto/echainiv.c
- crypto/gcm.c 4 additions, 4 deletionscrypto/gcm.c
- crypto/seqiv.c 2 additions, 2 deletionscrypto/seqiv.c
- include/crypto/internal/geniv.h 1 addition, 1 deletioninclude/crypto/internal/geniv.h
- include/crypto/null.h 1 addition, 1 deletioninclude/crypto/null.h
Loading
Please register or sign in to comment