Nathan Huckleberry
9f6035af06
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: 34f7f6c30112 ("crypto: x86/polyval - Add PCLMULQDQ accelerated implementation of POLYVAL")
Reported-by: Bruno Goncalves <bgoncalv@redhat.com>
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-10-21 19:05:05 +08:00
..
2020-03-25 11:50:48 +01:00
2021-12-08 12:25:37 +01:00
2020-01-09 11:30:53 +08:00
2022-06-10 16:40:17 +08:00
2022-02-22 16:21:34 +00:00
2021-12-08 12:25:37 +01:00
2022-06-10 16:40:17 +08:00
2022-09-24 16:14:44 +08:00
2022-09-24 16:14:44 +08:00
2022-09-24 16:14:44 +08:00
2021-12-08 12:25:37 +01:00
2022-06-10 16:43:49 +08:00
2022-07-15 16:43:22 +08:00
2022-09-26 10:13:15 -07:00
2021-01-14 17:10:30 +11:00
2021-01-14 17:10:30 +11:00
2022-04-08 16:13:31 +08:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:30 +11:00
2021-01-14 17:10:29 +11:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:29 +11:00
2021-12-08 12:25:37 +01:00
2020-08-20 14:04:28 +10:00
2021-12-08 12:25:37 +01:00
2022-03-25 16:21:05 +12:00
2021-12-08 12:25:37 +01:00
2022-06-13 09:47:58 +02:00
2021-03-21 23:50:28 +01:00
2020-08-21 14:45:28 +10:00
2022-03-15 10:32:36 +01:00
2021-12-08 12:25:37 +01:00
2020-03-24 21:36:06 +01:00
2021-12-24 14:18:22 +11:00
2022-02-23 15:28:32 +12:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:29 +11:00
2021-12-08 12:25:37 +01:00
2020-03-24 21:36:06 +01:00
2021-01-14 17:10:28 +11:00
2021-01-14 17:10:28 +11:00
2022-09-24 16:14:44 +08:00
2022-09-24 16:14:44 +08:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2020-08-20 14:04:28 +10:00
2020-08-20 14:04:28 +10:00
2021-04-02 18:28:12 +11:00
2022-03-25 16:21:06 +12:00
2022-06-10 16:40:17 +08:00
2022-10-21 19:05:05 +08:00
2022-04-08 16:13:31 +08:00
2021-01-14 17:10:30 +11:00
2021-01-14 17:10:30 +11:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:30 +11:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:30 +11:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2020-11-20 14:45:33 +11:00
2021-12-08 12:25:37 +01:00
2020-11-20 14:45:33 +11:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2022-08-19 18:39:39 +08:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2022-01-28 16:51:11 +11:00
2022-03-30 16:33:11 +12:00
2021-08-27 16:30:18 +08:00
2021-08-27 16:30:18 +08:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-08-27 16:30:18 +08:00
2021-01-14 17:10:30 +11:00
2022-04-08 16:13:31 +08:00
2022-04-08 16:13:31 +08:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-12-08 12:25:37 +01:00
2021-01-14 17:10:30 +11:00