diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2022-01-19 09:58:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:23:05 +0300 |
commit | af3c34eb94104035c5f65d046126aa79199acece (patch) | |
tree | 1827377d09936131f5352448de08878e622df770 /security/selinux/hooks.c | |
parent | 8f10a38c9212d8ff3ca7b240a3ea9f9f371b078f (diff) | |
download | linux-af3c34eb94104035c5f65d046126aa79199acece.tar.xz |
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>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions