Herbert Xu
f688979e42
crypto: api - Add crypto_clone_tfm
...
[ Upstream commit 3c3a24cb0ae46c9c45e4ce2272f84f0504831f59 ]
This patch adds the helper crypto_clone_tfm. The purpose is to
allocate a tfm object with GFP_ATOMIC. As we cannot sleep, the
object has to be cloned from an existing tfm object.
This allows code paths that cannot otherwise allocate a crypto_tfm
object to do so. Once a new tfm has been obtained its key could
then be changed without impacting other users.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: 1465036b10be ("llc: Improve setsockopt() handling of malformed user input")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:53:51 +01:00
..
2024-10-17 15:21:17 +02:00
2022-10-11 17:42:58 -06:00
2019-05-30 11:26:37 -07:00
2020-07-09 18:25:23 +10:00
2021-01-03 08:41:35 +11:00
2024-07-11 12:47:05 +02:00
2021-03-19 21:59:45 +11:00
2020-11-27 17:13:40 +11:00
2021-03-19 21:59:45 +11:00
2021-03-19 21:59:45 +11:00
2020-01-09 11:30:53 +08:00
2019-07-26 14:55:33 +10:00
2024-01-25 15:27:21 -08:00
2020-08-28 16:58:28 +10:00
2022-09-09 16:18:33 +08:00
2024-11-17 15:07:20 +01:00
2021-12-13 12:04:45 -06:00
2020-08-21 14:45:27 +10:00
2022-08-08 22:37:23 -04:00
2020-09-25 17:48:52 +10:00
2020-08-21 14:45:26 +10:00
2021-01-03 08:41:35 +11:00
2020-01-09 11:30:53 +08:00
2024-12-14 19:53:51 +01:00
2020-09-11 14:39:16 +10:00
2022-09-24 16:14:44 +08:00
2022-01-31 11:21:44 +11:00
2020-07-16 21:49:08 +10:00
2021-01-03 08:41:39 +11:00
2019-05-30 11:26:32 -07:00
2021-02-10 17:55:56 +11:00
2021-02-10 17:55:56 +11:00
2021-02-10 17:55:56 +11:00
2021-02-10 17:55:56 +11:00
2019-05-24 17:27:12 +02:00
2021-01-03 08:41:35 +11:00
2021-01-03 08:41:35 +11:00
2022-03-03 10:49:20 +12:00
2020-07-16 21:49:08 +10:00
2019-11-22 18:48:39 +08:00
2024-07-11 12:47:05 +02:00
2021-01-03 08:41:35 +11:00
2019-12-11 16:37:01 +08:00
2021-04-16 21:24:27 +10:00
2020-08-21 14:45:25 +10:00
2022-03-07 12:48:35 -07:00
2013-09-12 15:31:34 +10:00
2020-08-21 14:45:25 +10:00
2022-12-31 13:32:33 +01:00
2023-05-17 11:53:40 +02:00
2019-07-08 20:57:08 -07:00
2019-12-20 14:58:35 +08:00
2019-11-01 13:38:32 +08:00
2021-01-03 08:41:35 +11:00
2020-07-16 21:49:08 +10:00
2022-09-24 16:14:43 +08:00
2020-08-07 11:33:22 -07:00
2020-01-09 11:30:53 +08:00
2022-03-03 10:47:50 +12:00
2022-09-24 16:14:43 +08:00
2023-05-11 23:03:21 +09:00
2021-01-03 08:41:35 +11:00
2021-03-26 19:55:55 +11:00
2021-10-29 21:04:03 +08:00
2021-03-13 00:04:03 +11:00
2024-07-05 09:31:49 +02:00
2024-06-16 13:41:37 +02:00
2021-03-26 19:41:58 +11:00
2020-07-16 21:49:07 +10:00
2021-10-29 21:04:03 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2024-06-16 13:41:37 +02:00
2023-03-10 09:32:56 +01:00
2021-04-02 18:28:13 +11:00
2022-07-15 16:43:22 +08:00
2020-08-07 11:33:22 -07:00
2020-07-16 21:49:08 +10:00
2020-08-07 11:33:22 -07:00
2020-01-09 11:30:53 +08:00
2020-02-18 07:35:49 -05:00
2022-06-10 16:40:17 +08:00
2022-02-11 20:22:01 +11:00
2024-12-14 19:53:51 +01:00
2023-05-24 17:32:38 +01:00
2023-07-19 16:21:42 +02:00
2023-05-24 17:32:38 +01:00
2024-03-26 18:20:50 -04:00
2021-11-26 16:25:17 +11:00
2021-04-02 18:28:13 +11:00
2021-05-28 15:11:44 +08:00
2022-08-02 17:14:47 -06:00
2023-09-23 11:11:01 +02:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2022-09-24 16:14:44 +08:00
2019-06-13 14:31:39 +08:00
2020-02-28 08:43:21 +08:00
2021-02-10 17:55:55 +11:00
2020-01-16 15:18:12 +08:00
2021-01-03 08:41:35 +11:00
2021-01-03 08:41:35 +11:00
2024-12-14 19:53:17 +01:00
2020-01-16 15:18:12 +08:00
2022-06-10 16:40:17 +08:00
2020-09-25 17:48:15 +10:00
2021-01-29 16:07:04 +11:00
2019-07-08 20:57:08 -07:00
2021-04-02 18:28:12 +11:00
2019-05-30 11:26:32 -07:00
2023-09-13 09:42:26 +02:00
2022-09-24 16:14:43 +08:00
2016-07-05 23:05:26 +08:00
2015-10-14 22:23:16 +08:00
2019-05-30 11:26:32 -07:00
2024-01-25 15:27:23 -08:00
2020-12-04 18:13:16 +11:00
2023-03-10 09:32:56 +01:00
2021-03-07 15:13:15 +11:00
2020-11-20 14:45:33 +11:00
2020-07-23 17:34:20 +10:00
2021-12-31 18:10:54 +11:00
2021-08-27 16:30:19 +08:00
2022-08-02 17:14:47 -06:00
2024-10-17 15:21:39 +02:00
2021-08-21 15:44:58 +08:00
2022-09-24 16:14:43 +08:00
2020-09-25 17:48:54 +10:00
2022-01-28 16:51:11 +11:00
2022-04-08 16:11:48 +08:00
2021-07-30 10:58:30 +08:00
2022-04-08 16:12:46 +08:00
2019-08-15 21:52:14 +10:00
2022-12-31 13:32:34 +01:00
2020-08-21 14:45:27 +10:00
2019-07-08 20:57:08 -07:00
2023-05-24 17:32:53 +01:00
2022-07-22 16:22:04 +08:00
2022-07-22 16:22:04 +08:00
2021-02-10 17:55:57 +11:00
2021-01-03 08:41:35 +11:00
2021-08-12 19:32:17 +08:00
2021-01-03 08:41:35 +11:00
2022-06-10 16:40:16 +08:00
2024-10-17 15:20:36 +02:00
2023-09-23 11:11:01 +02:00
2020-01-09 11:30:53 +08:00
2021-11-08 16:55:21 -08:00