Herbert Xu
1e104f9a25
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>
2014-11-28 23:33:18 +08:00
..
2014-10-12 10:13:55 -04:00
2014-08-21 10:20:52 -07:00
2014-11-24 22:43:57 +08:00
2013-10-07 14:16:57 +08:00
2013-10-30 09:51:45 +08:00
2013-02-19 20:27:03 +08:00
2014-11-24 22:43:57 +08:00
2014-07-31 21:54:00 +08:00
2014-08-25 20:27:16 +08:00
2014-11-26 20:06:30 +08:00
2013-06-25 19:15:17 +08:00
2014-11-25 22:50:39 +08:00
2014-11-28 23:33:18 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-03-10 20:17:11 +08:00
2011-09-22 21:25:25 +10:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-08-14 20:42:03 +10:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2010-02-16 20:31:37 +08:00
2014-11-26 20:06:30 +08:00
2010-02-16 20:31:04 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-09-12 15:31:34 +10:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:29 +08:00
2014-03-21 21:54:28 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-27 22:26:18 +08:00
2014-11-26 20:06:30 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2008-08-29 15:50:02 +10:00
2014-11-26 20:06:30 +08:00
2011-07-08 17:21:21 +08:00
2014-11-24 22:43:57 +08:00
2013-10-25 17:14:03 -04:00
2014-11-26 20:06:30 +08:00
2013-06-25 19:15:17 +08:00
2014-10-08 06:44:48 -04:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-08-25 20:32:25 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-12-09 20:09:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2013-02-19 20:27:03 +08:00
2014-11-26 20:06:30 +08:00
2011-10-31 19:31:11 -04:00
2008-07-10 20:35:12 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2013-02-19 20:27:03 +08:00
2014-11-24 22:43:57 +08:00
2013-08-21 21:27:58 +10:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-11-24 22:43:57 +08:00
2014-06-07 11:44:39 -07:00
2014-08-01 22:35:55 +08:00
2013-12-20 20:06:25 +08:00
2014-11-24 22:43:57 +08:00
2014-10-24 22:49:36 +08:00
2014-08-29 21:46:36 +08:00
2014-11-24 22:43:57 +08:00
2011-11-09 11:53:32 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00
2014-11-26 20:06:30 +08:00
2012-10-11 13:42:32 +11:00
2014-11-26 20:06:30 +08:00
2014-11-24 22:43:57 +08:00