diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2022-01-19 17:58:40 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-15 14:18:04 +0200 |
commit | bb9743873c3e7e396f50da47e290cb4d39492c48 (patch) | |
tree | a06d2e8628d14d0d255d2e49a21e8282f51eecbe /crypto/michael_mic.c | |
parent | 4f7a0bc04e4e7d8e8b558d2733ef485bc1f2a4be (diff) | |
download | linux-crypto-bb9743873c3e7e396f50da47e290cb4d39492c48.tar.gz linux-crypto-bb9743873c3e7e396f50da47e290cb4d39492c48.zip |
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: c53e75d5b112 ("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>
Diffstat (limited to 'crypto/michael_mic.c')
0 files changed, 0 insertions, 0 deletions