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:32:51 +0000 (09:32 +0100)
commit476dadca0b981b42f9612b551da56a6163fb8ba1
treea5b0ec53cc9277279f217b23fa9ab2d8d11c979f
parent700aec11cbfce38c4e7fe0aafe21de03660eb99c
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