Commit 7e745666 authored by Eric Biggers's avatar Eric Biggers Committed by sanglipeng
Browse files

crypto: x86/ghash - fix unaligned access in ghash_setkey()

stable inclusion
from stable-v5.10.173
commit 6e43b2d9d166286c232d91302906108063e33181
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6e43b2d9d166286c232d91302906108063e33181



--------------------------------

[ Upstream commit 116db270 ]

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

Fixes: 8ceee728 ("crypto: ghash-clmulni-intel - use C implementation for setkey()")
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent f2fc158c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment