crypto: af_alg - Disallow multiple in-flight AIO requests
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 Nov 2023 08:25:49 +0000 (16:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Dec 2023 03:59:44 +0000 (11:59 +0800)
commit67b164a871af1d736f131fd6fe78a610909f06f3
tree2d322c6b6f5be07ecb83d916ed2e52d97f11a5e0
parent431a2eb89cf664a9cf94f519402896f10d074db0
crypto: af_alg - Disallow multiple in-flight AIO requests

Having multiple in-flight AIO requests results in unpredictable
output because they all share the same IV.  Fix this by only allowing
one request at a time.

Fixes: 83094e5e9e49 ("crypto: af_alg - add async support to algif_aead")
Fixes: a596999b7ddf ("crypto: algif - change algif_skcipher to be asynchronous")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c
include/crypto/if_alg.h