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
..
2020-08-28 16:58:28 +10:00
2024-12-14 19:53:51 +01:00
2022-03-03 10:49:20 +12:00
2021-03-26 19:55:55 +11:00
2023-03-10 09:32:56 +01:00
2022-06-10 16:40:17 +08:00
2024-12-14 19:53:51 +01:00
2022-08-02 17:14:47 -06:00
2020-02-28 08:43:21 +08:00
2023-03-10 09:32:56 +01:00
2022-08-02 17:14:47 -06:00
2021-08-21 15:44:58 +08:00
2022-04-08 16:12:46 +08:00
2022-06-10 16:40:16 +08:00
2024-10-17 15:20:36 +02:00
2021-11-08 16:55:21 -08:00