crypto: cryptd - Use request context instead of stack for sub-request
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Nov 2022 09:59:17 +0000 (17:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Nov 2022 08:59:34 +0000 (16:59 +0800)
commit3a58c231172537f7b0e19d93ed33decd04f80eab
tree937df6e4f0eb1e87094b07411f1512d7908e22fa
parent824db5cd1ec9b95c254fc317c3999f6b53e98b12
crypto: cryptd - Use request context instead of stack for sub-request

cryptd is buggy as it tries to use sync_skcipher without going
through the proper sync_skcipher interface.  In fact it doesn't
even need sync_skcipher since it's already a proper skcipher and
can easily access the request context instead of using something
off the stack.

Fixes: 36b3875a97b8 ("crypto: cryptd - Remove VLA usage of skcipher")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c