Sowmini Varadhan
62f57d05e2
crypto: pkcs7 - Fix unaligned access in pkcs7_verify()
...
On sparc, we see unaligned access messages on each modprobe[-r]:
Kernel unaligned access at TPC[6ad9b4] pkcs7_verify [..]
Kernel unaligned access at TPC[6a5484] crypto_shash_finup [..]
Kernel unaligned access at TPC[6a5390] crypto_shash_update [..]
Kernel unaligned access at TPC[10150308] sha1_sparc64_update [..]
Kernel unaligned access at TPC[101501ac] __sha1_sparc64_update [..]
These ware triggered by mod_verify_sig() invocations of pkcs_verify(), and
are are being caused by an unaligned desc at (sha1, digest_size is 0x14)
desc = digest + digest_size;
To fix this, pkcs7_verify needs to make sure that desc is pointing
at an aligned value past the digest_size, and kzalloc appropriately,
taking alignment values into consideration.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-10-14 22:23:38 +08:00
..
2015-10-14 22:23:38 +08:00
2015-04-22 08:00:42 +10:00
2015-06-25 23:29:24 +08:00
2015-05-11 15:06:43 +08:00
2015-03-31 21:21:04 +08:00
2015-06-22 15:49:16 +08:00
2015-08-17 16:53:53 +08:00
2015-01-13 22:29:11 +11:00
2015-06-24 16:49:49 -07:00
2015-01-26 11:34:22 +11:00
2015-06-25 23:18:32 +08:00
2015-07-14 14:56:45 +08:00
2015-08-17 16:53:41 +08:00
2015-08-25 21:13:20 +08:00
2015-04-11 15:53:35 -04:00
2015-04-22 09:30:21 +08:00
2015-08-17 08:12:54 -06:00
2015-04-22 09:30:18 +08:00
2014-11-24 22:43:57 +08:00
2015-03-31 21:21:03 +08:00
2014-11-24 22:43:57 +08:00
2015-08-17 16:53:53 +08:00
2015-08-17 16:53:53 +08:00
2015-05-13 10:31:34 +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
2014-11-26 20:06:30 +08:00
2015-08-17 08:12:54 -06:00
2015-07-17 21:20:21 +08:00
2015-08-17 16:53:53 +08:00
2015-06-22 15:49:28 +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
2015-01-13 22:29:11 +11:00
2013-09-12 15:31:34 +10:00
2015-01-13 22:29:11 +11:00
2015-08-17 16:53:53 +08:00
2015-05-22 11:25:55 +08:00
2015-08-17 16:53:41 +08:00
2014-03-21 21:54:28 +08:00
2014-11-26 20:06:30 +08:00
2015-01-20 14:44:15 +11:00
2014-11-24 22:43:57 +08:00
2015-01-13 22:29:11 +11:00
2015-06-11 21:55:28 +08:00
2014-11-26 20:06:30 +08:00
2015-08-17 16:53:46 +08:00
2015-06-22 15:49:28 +08:00
2014-11-24 22:43:57 +08:00
2015-04-23 14:18:09 +08:00
2015-09-02 13:22:38 -07:00
2011-07-08 17:21:21 +08:00
2015-01-13 22:29:11 +11:00
2013-10-25 17:14:03 -04:00
2014-11-26 20:06:30 +08:00
2015-04-23 14:18:10 +08:00
2015-10-14 22:23:16 +08:00
2015-06-25 23:18:33 +08:00
2015-09-21 22:01:06 +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
2015-10-14 22:23:16 +08:00
2015-03-31 21:21:13 +08:00
2014-11-24 22:43:57 +08:00
2015-05-18 12:20:18 +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
2015-04-21 10:19:55 +08:00
2015-08-17 16:53:53 +08:00
2015-07-17 21:20:26 +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
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +08:00
2015-01-13 22:29:11 +11:00
2015-06-03 10:51:25 +08:00
2014-11-24 22:43:57 +08:00
2015-08-17 16:53:46 +08:00
2015-01-13 22:29:11 +11:00
2015-04-10 21:39:40 +08:00
2015-04-10 21:39:41 +08:00
2015-04-10 21:39:41 +08:00
2015-04-21 10:19:54 +08:00
2015-10-01 21:56:57 +08:00
2015-09-21 22:00:36 +08:00
2015-07-17 21:20:20 +08:00
2015-01-13 22:29:11 +11:00
2015-10-14 22:23:16 +08:00
2015-10-14 22:23:16 +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
2012-10-11 13:42:32 +11:00
2014-11-26 20:06:30 +08:00
2015-05-01 11:16:37 +08:00