From: Herbert Xu Date: Thu, 27 Nov 2014 14:38:12 +0000 (+0800) Subject: crypto: algif_skcipher - Fixed blocking recvmsg X-Git-Tag: omap-for-v3.19/fixes-rc1~99^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e104f9a251b46787c3efc2bc9c8c496dead294b;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu Acked-by: Stephan Mueller --- Reading git-diff-tree failed