[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20287.1444922164@warthog.procyon.org.uk>
Date: Thu, 15 Oct 2015 16:16:04 +0100
From: David Howells <dhowells@...hat.com>
To: Sowmini Varadhan <sowmini.varadhan@...cle.com>
Cc: dhowells@...hat.com, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, herbert@...dor.apana.org.au,
davem@...emloft.net, marcel@...tmann.org, David.Woodhouse@...el.com
Subject: Re: [PATCH] crypto/pkcs7_verify: Fix unaligned access in pkcs7_verify()
Sowmini Varadhan <sowmini.varadhan@...cle.com> wrote:
> 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@...cle.com>
Acked-by: David Howells <dhowells@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists