diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-02 13:32:21 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-21 13:05:31 +0200 |
commit | aebe05a28d8c1dc92995dd0e26d3a4c75284fd06 (patch) | |
tree | 36e12a38610a239a523de16cf80dd000644e3521 /crypto/fcrypt.c | |
parent | 60259e04cf61df7c7696e7e9e3855488faf6638c (diff) | |
download | linux-crypto-aebe05a28d8c1dc92995dd0e26d3a4c75284fd06.tar.gz linux-crypto-aebe05a28d8c1dc92995dd0e26d3a4c75284fd06.zip |
crypto: af_alg - Fix regression on empty requests
[ Upstream commit 673136029221f5b7c0eea9efc9aabc1a081aa148 ]
Some user-space programs rely on crypto requests that have no
control metadata. This broke when a check was added to require
the presence of control metadata with the ctx->init flag.
This patch fixes the regression by setting ctx->init as long as
one sendmsg(2) has been made, with or without a control message.
Reported-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Fixes: a52eb0489f96 ("crypto: algif_aead - Only wake up when...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/fcrypt.c')
0 files changed, 0 insertions, 0 deletions