Ard Biesheuvel
3cbf61fb9f
crypto: skcipher - fix crash in skcipher_walk_aead()
...
The new skcipher_walk_aead() may crash in the following way due to
the walk flag SKCIPHER_WALK_PHYS not being cleared at the start of the
walk:
Unable to handle kernel NULL pointer dereference at virtual address 00000001
[..]
Internal error: Oops: 96000044 [#1 ] PREEMPT SMP
[..]
PC is at skcipher_walk_next+0x208/0x450
LR is at skcipher_walk_next+0x1e4/0x450
pc : [<ffff2b93b7104e20>] lr : [<ffff2b93b7104dfc>] pstate: 40000045
sp : ffffb925fa517940
[...]
[<ffff2b93b7104e20>] skcipher_walk_next+0x208/0x450
[<ffff2b93b710535c>] skcipher_walk_first+0x54/0x148
[<ffff2b93b7105664>] skcipher_walk_aead+0xd4/0x108
[<ffff2b93b6e77928>] ccm_encrypt+0x68/0x158
So clear the flag at the appropriate time.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-11-30 20:01:43 +08:00
..
2016-07-18 12:19:47 +10:00
2016-10-05 06:18:09 +05:30
2015-06-25 23:29:24 +08:00
2016-10-25 11:08:33 +08:00
2016-06-23 18:29:53 +08:00
2016-07-18 17:35:46 +08:00
2016-10-25 11:08:31 +08:00
2016-07-18 17:35:43 +08:00
2015-01-13 22:29:11 +11:00
2016-01-18 18:16:33 +08:00
2016-07-01 23:45:03 +08:00
2015-12-09 20:03:57 +08:00
2016-07-01 23:45:11 +08:00
2016-11-28 21:23:20 +08:00
2016-04-05 20:35:41 +08:00
2016-11-22 15:02:24 +08:00
2015-04-22 09:30:21 +08:00
2016-02-06 15:23:55 +08:00
2015-04-22 09:30:18 +08:00
2014-11-24 22:43:57 +08:00
2016-11-28 21:23:18 +08:00
2014-11-24 22:43:57 +08:00
2016-11-01 08:37:17 +08:00
2016-11-01 08:37:17 +08:00
2016-09-13 18:44:57 +08:00
2011-09-22 21:25:25 +10:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2015-01-13 22:29:11 +11:00
2013-08-14 20:42:03 +10:00
2016-11-28 21:23:21 +08:00
2016-11-01 08:37:17 +08:00
2016-07-03 00:57:23 -04:00
2016-11-01 08:37:17 +08:00
2016-10-21 11:03:42 +08:00
2016-10-21 11:03:42 +08:00
2016-10-21 11:03:42 +08:00
2016-01-30 22:11:22 +08:00
2016-01-19 15:52:10 +08:00
2013-09-12 15:31:34 +10:00
2016-09-13 20:27:26 +08:00
2016-11-28 21:23:18 +08:00
2016-10-25 11:08:25 +08:00
2016-07-18 17:35:44 +08:00
2016-10-25 11:08:30 +08:00
2014-03-21 21:54:28 +08:00
2016-11-01 08:37:17 +08:00
2016-11-01 08:37:17 +08:00
2016-10-25 11:08:36 +08:00
2015-01-13 22:29:11 +11:00
2016-06-23 18:29:56 +08:00
2016-11-13 17:45:04 +08:00
2016-11-30 19:53:12 +08:00
2014-11-26 20:06:30 +08:00
2016-06-23 18:29:57 +08:00
2016-06-24 21:24:59 +08:00
2016-06-24 21:24:59 +08:00
2016-06-23 18:29:57 +08:00
2016-06-24 21:24:59 +08:00
2016-09-13 18:44:57 +08:00
2014-11-24 22:43:57 +08:00
2015-04-23 14:18:09 +08:00
2016-11-01 08:37:17 +08:00
2016-11-17 23:34:59 +08:00
2016-10-02 22:26:40 +08:00
2015-12-20 15:27:12 +02:00
2014-11-26 20:06:30 +08:00
2016-10-21 11:03:42 +08:00
2016-11-17 23:34:52 +08:00
2015-06-25 23:18:33 +08:00
2016-11-28 21:23:20 +08:00
2016-02-01 22:27:05 +08:00
2014-11-24 22:43:57 +08:00
2016-06-23 18:29:56 +08:00
2016-11-28 21:23:17 +08:00
2016-10-25 11:08:32 +08:00
2016-10-25 11:08:32 +08:00
2016-10-25 11:08:31 +08:00
2016-11-30 19:53:12 +08:00
2016-09-13 20:27:26 +08:00
2014-11-24 22:43:57 +08:00
2015-12-22 20:43:35 +08:00
2013-12-09 20:09:12 +08:00
2014-11-24 22:43:57 +08:00
2016-11-28 21:23:18 +08:00
2015-08-17 16:53:53 +08:00
2016-11-13 17:45:03 +08:00
2015-04-23 14:18:09 +08: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
2015-06-22 15:49:18 +08:00
2016-08-24 21:07:10 +08:00
2016-09-22 17:42:08 +08:00
2016-07-01 23:45:18 +08:00
2016-07-05 23:05:26 +08:00
2015-10-14 22:23:16 +08:00
2015-01-13 22:29:11 +11:00
2016-11-22 15:02:25 +08:00
2016-10-25 11:08:31 +08:00
2014-11-24 22:43:57 +08:00
2016-07-18 17:35:46 +08:00
2015-01-13 22:29:11 +11:00
2015-12-22 20:43:35 +08:00
2016-08-08 23:43:46 +08:00
2015-12-22 20:43:35 +08:00
2015-04-10 21:39:41 +08:00
2016-03-17 11:22:54 -07:00
2016-11-28 21:23:18 +08:00
2016-11-30 20:01:43 +08:00
2016-07-01 23:45:24 +08:00
2015-07-17 21:20:20 +08:00
2015-01-13 22:29:11 +11:00
2016-11-28 21:23:24 +08:00
2016-08-31 23:21:25 +08:00
2015-01-13 22:29:11 +11:00
2011-11-09 11:53:32 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2015-01-13 22:29:11 +11:00
2014-11-26 20:06:30 +08:00
2016-08-31 23:00:48 +08:00
2016-11-28 21:23:18 +08:00