OSDN Git Service

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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jan 2022 00:21:44 +0000 (11:21 +1100)
commit66eae850333d639fc278d6f915c6fc01499ea893
tree762c1725b95e6da5650e3af44230401967c84fbe
parentc2a28fdb2f4e0b1676709426d80a986dd601200e
crypto: authenc - Fix sleep in atomic context in decrypt_tail

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>
crypto/authenc.c