summaryrefslogtreecommitdiff
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-11-27 22:38:12 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-11-28 23:33:18 +0800
commit5aeeb42eca4edc92bd0fd9ed99a36e6ad95f4e44 (patch)
tree32e1e7ff04c33304f7e9f5656172a30e5af50571 /crypto/cipher.c
parentd04559b19f65b04ca6cf45c80c934c75e5030507 (diff)
downloadlinux-crypto-5aeeb42eca4edc92bd0fd9ed99a36e6ad95f4e44.tar.gz
linux-crypto-5aeeb42eca4edc92bd0fd9ed99a36e6ad95f4e44.zip
crypto: algif_skcipher - Fixed blocking recvmsg
As most (all?) users of algif_skcipher are single-threaded and therefore always write before reading from an algif_skcipher socket, they never block and exercise that code-path. It turns out that code path doesn't even work because we never reload ctx->used after waking up so we never even see the new data and immediately return an error (and a loud WARN_ON). This patch fixes this by always reloading ctx->used. Reported-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Stephan Mueller <smueller@chronox.de>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions