Commit 2ac3611c authored by Nathan Huckleberry's avatar Nathan Huckleberry Committed by Todd Kjos
Browse files

UPSTREAM: crypto: x86/polyval - Fix crashes when keys are not 16-byte aligned



crypto_tfm::__crt_ctx is not guaranteed to be 16-byte aligned on x86-64.
This causes crashes due to movaps instructions in clmul_polyval_update.

Add logic to align polyval_tfm_ctx to 16 bytes.

Cc: <stable@vger.kernel.org>
Fixes: 34f7f6c3 ("crypto: x86/polyval - Add PCLMULQDQ accelerated implementation of POLYVAL")
Reported-by: default avatarBruno Goncalves <bgoncalv@redhat.com>
Signed-off-by: default avatarNathan Huckleberry <nhuck@google.com>
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

Bug: 233652475
(cherry picked from commit 9f6035af)
Change-Id: I6f95f67b7118d5ad981a93641adb62af5cac3768
Signed-off-by: default avatarNathan Huckleberry <nhuck@google.com>
parent 379be12c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment