Herbert Xu
b61907bb42
crypto: shash - Fix zero-length shash ahash digest crash
...
The shash ahash digest adaptor function may crash if given a
zero-length input together with a null SG list. This is because
it tries to read the SG list before looking at the length.
This patch fixes it by checking the length first.
Cc: <stable@vger.kernel.org>
Reported-by: Stephan Müller<smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Stephan Müller <smueller@chronox.de>
2017-10-11 00:34:07 +08:00
..
2017-07-05 15:17:26 +08:00
2017-05-16 10:01:57 +05:30
2017-01-13 00:24:39 +08:00
2017-04-21 20:30:50 +08:00
2017-01-13 00:24:39 +08:00
2017-02-11 17:50:43 +08:00
2017-06-19 14:11:53 +08:00
2017-09-20 17:42:42 +08:00
2017-08-22 14:54:52 +08:00
2017-01-13 00:24:39 +08:00
2017-08-04 09:27:05 +08:00
2017-03-02 08:42:32 +01:00
2017-08-22 14:54:50 +08:00
2017-03-09 18:23:27 -08:00
2017-08-22 14:45:48 +08:00
2017-03-02 08:42:32 +01:00
2017-07-18 17:01:11 +08:00
2017-01-13 00:24:39 +08:00
2017-03-09 18:34:39 +08:00
2017-02-28 17:29:17 +08:00
2017-08-22 14:45:47 +08:00
2017-02-11 17:52:28 +08:00
2017-06-19 14:19:54 +08:00
2017-05-02 16:40:27 -07:00
2017-08-04 09:27:15 +08:00
2017-02-11 17:52:28 +08:00
2017-04-24 18:11:08 +08:00
2017-06-10 12:04:25 +08:00
2017-06-10 12:04:27 +08:00
2017-09-20 17:42:29 +08:00
2017-06-10 12:04:35 +08:00
2017-06-10 12:04:35 +08:00
2017-06-10 12:04:25 +08:00
2017-08-03 13:47:22 +08:00
2017-05-23 12:45:11 +08:00
2017-04-05 21:58:35 +08:00
2017-05-23 12:52:05 +08:00
2017-08-09 20:17:52 +08:00
2017-01-13 00:24:39 +08:00
2017-04-10 19:09:17 +08:00
2017-04-10 19:17:27 +08:00
2017-04-10 19:17:27 +08:00
2017-05-08 17:15:13 -07:00
2017-06-10 12:04:35 +08:00
2017-03-02 08:42:34 +01:00
2017-03-24 22:02:56 +08:00
2017-08-04 09:27:15 +08:00
2017-07-28 17:56:00 +08:00
2017-06-20 11:21:19 +08:00
2017-06-10 12:04:30 +08:00
2017-08-03 13:52:44 +08:00
2017-02-11 17:52:28 +08:00
2017-08-09 20:17:54 +08:00
2017-10-11 00:34:07 +08:00
2017-10-07 12:04:32 +08:00
2017-08-03 13:47:20 +08:00
2017-06-28 22:18:58 +08:00
2017-08-22 14:45:48 +08:00
2017-10-07 12:04:31 +08:00