crypto: x86/ghash - fix unaligned access in ghash_setkey()
authorEric Biggers <ebiggers@google.com>
Tue, 20 Dec 2022 05:40:40 +0000 (21:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:08 +0000 (09:39 +0100)
commit2b56df9102a8197c4743e1524713eae14a330a40
tree382c0f5bd5ec602779ca54c513b39619bb54df60
parent4f47453c39f3e60ea3f91deb41bf72a598e2cdb8
crypto: x86/ghash - fix unaligned access in ghash_setkey()

[ Upstream commit 116db2704c193fff6d73ea6c2219625f0c9bdfc8 ]

The key can be unaligned, so use the unaligned memory access helpers.

Fixes: 8ceee72808d1 ("crypto: ghash-clmulni-intel - use C implementation for setkey()")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/crypto/ghash-clmulni-intel_glue.c