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:14:23 +0000 (13:14 +0100)
commit442caec12f4f1fe093500fc5f630c8752925a507
tree7ecf6ed9489488e6dc7c45ed80857084875111ba
parentab677729fc5c7e6696edfb2af0814ceed6859ecf
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