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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:33 +0000 (13:32 +0100)
commitb5be6724f222890f407d499e2d3daa2dfa7bfcc8
tree534460fea9b604e3220762e2246d08e5393f21be
parent677f01f396aee868082ebc2eebb5fdb9c6efd493
crypto: cryptd - Use request context instead of stack for sub-request

[ Upstream commit 3a58c231172537f7b0e19d93ed33decd04f80eab ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/cryptd.c