]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:26:19 +0000 (13:26 +0100)
commitbeb794fa05caac4d90edbff19da1b7b9e05f758d
tree25a18184040b305ee6fbdb3076abdff58773b689
parent85a5eeb68dac5984500fac5fb3109ace821aba43
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