summaryrefslogtreecommitdiff
path: root/drivers/crypto/qce/cipher.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-09-19 05:10:54 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-09-28 07:46:08 +0300
commitd1e4ba83b0286b3a0888b2fd361082ecd86fd07a (patch)
tree14b1182515070c33e6ee822ab3d8330d498e3b86 /drivers/crypto/qce/cipher.h
parentba70152b60e81270338d86ce7c7b71e756530430 (diff)
downloadlinux-d1e4ba83b0286b3a0888b2fd361082ecd86fd07a.tar.xz
crypto: qce - 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 Cc: Himanshu Jha <himanshujha199640@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qce/cipher.h')
-rw-r--r--drivers/crypto/qce/cipher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qce/cipher.h b/drivers/crypto/qce/cipher.h
index 2b0278bb6e92..ee055bfe98a0 100644
--- a/drivers/crypto/qce/cipher.h
+++ b/drivers/crypto/qce/cipher.h
@@ -22,7 +22,7 @@
struct qce_cipher_ctx {
u8 enc_key[QCE_MAX_KEY_SIZE];
unsigned int enc_keylen;
- struct crypto_skcipher *fallback;
+ struct crypto_sync_skcipher *fallback;
};
/**