]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:37:54 +0000 (14:37 +0200)
commit072f8d2f920de13f3ac0d6e53a7279c1bb7fc694
treea2649c67ffc7787b69b67839b348f108ae0470ea
parent58d8c8cf99a15a451318ee4a8f172250938f5086
crypto: authenc - Fix sleep in atomic context in decrypt_tail

BugLink: https://bugs.launchpad.net/bugs/1969110
[ 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>
(cherry picked from commit af3c34eb94104035c5f65d046126aa79199acece)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
crypto/authenc.c