]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: authenc - Fix sleep in atomic context in decrypt_tail
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 19 Jan 2022 06:58:40 +0000 (17:58 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:32 +0000 (13:57 +0200)
commitca7c1bb2b2cf57b22a55fb3c8f6b6d587edc58d5
tree1fe0e023bbc2a5fda64163510299ac5b6249d4c5
parent596ad215a310ff9dc3134e53ea04e3aaae4970b5
crypto: authenc - Fix sleep in atomic context in decrypt_tail

[ Upstream commit 66eae850333d639fc278d6f915c6fc01499ea893 ]

The function crypto_authenc_decrypt_tail discards its flags
argument and always relies on the flags from the original request
when starting its sub-request.

This is clearly wrong as it may cause the SLEEPABLE flag to be
set when it shouldn't.

Fixes: 92d95ba91772 ("crypto: authenc - Convert to new AEAD interface")
Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/authenc.c