summaryrefslogtreecommitdiff
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-12-22 12:22:48 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-12-22 12:22:48 -0800
commitd5abe860ac298ebe723b37a6f63a5b2d404fca60 (patch)
tree0abd8646ad5a39bf4993faf67e0200c6be6a5e13 /crypto/af_alg.c
parent479a1006060c7452064ee0c83b25c7e648c479aa (diff)
parentbecd0fb2474ef9c1dc09bee93fb13d68681f7f47 (diff)
downloadlinux-crypto-d5abe860ac298ebe723b37a6f63a5b2d404fca60.tar.gz
linux-crypto-d5abe860ac298ebe723b37a6f63a5b2d404fca60.zip
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: "This fixes the following issues: - fix chacha20 crash on zero-length input due to unset IV - fix potential race conditions in mcryptd with spinlock - only wait once at top of algif recvmsg to avoid inconsistencies - fix potential use-after-free in algif_aead/algif_skcipher" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: af_alg - fix race accessing cipher request crypto: mcryptd - protect the per-CPU queue with a lock crypto: af_alg - wait for data at beginning of recvmsg crypto: skcipher - set walk.iv for zero-length inputs
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 415a54ce..444a387d 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -1138,12 +1138,6 @@ int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
if (!af_alg_readable(sk))
break;
- if (!ctx->used) {
- err = af_alg_wait_for_data(sk, flags);
- if (err)
- return err;
- }
-
seglen = min_t(size_t, (maxsize - len),
msg_data_left(msg));