summaryrefslogtreecommitdiff
path: root/crypto/gf128mul.c
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2015-10-13 10:54:01 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-14 22:23:38 +0800
commitd71dd976730ea22f97ed43d26fe5ee02fdf84422 (patch)
treedd7a56ed0d1a9f69fc52dc0aeb68b5de19429da5 /crypto/gf128mul.c
parent9999042127f0f1a2efb18f6a88bfee07853b1f18 (diff)
downloadlinux-crypto-d71dd976730ea22f97ed43d26fe5ee02fdf84422.tar.gz
linux-crypto-d71dd976730ea22f97ed43d26fe5ee02fdf84422.zip
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>
Diffstat (limited to 'crypto/gf128mul.c')
0 files changed, 0 insertions, 0 deletions