Files
linux-stable-mirror/include/linux
Herbert Xu e7ce4ba116 crypto: api - Add scaffolding to change completion function signature
[ Upstream commit c35e03eaec ]

The crypto completion function currently takes a pointer to a
struct crypto_async_request object.  However, in reality the API
does not allow the use of any part of the object apart from the
data field.  For example, ahash/shash will create a fake object
on the stack to pass along a different data field.

This leads to potential bugs where the user may try to dereference
or otherwise use the crypto_async_request object.

This patch adds some temporary scaffolding so that the completion
function can take a void * instead.  Once affected users have been
converted this can be removed.

The helper crypto_request_complete will remain even after the
conversion is complete.  It should be used instead of calling
the completion function directly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: 4140aafcff ("crypto: engine - fix crypto_queue backlog handling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 11:50:20 +02:00
..
2023-02-01 08:27:20 +01:00
2022-08-17 14:23:11 +02:00
2022-10-26 12:35:12 +02:00
2022-08-31 17:16:34 +02:00
2022-07-07 17:53:26 +02:00
2023-03-30 12:47:50 +02:00
2022-10-26 12:35:26 +02:00
2022-04-13 20:59:03 +02:00
2022-08-17 14:24:08 +02:00
2022-07-12 16:35:08 +02:00
2022-06-09 10:23:32 +02:00
2023-03-17 08:49:02 +01:00
2022-11-03 23:59:15 +09:00
2022-07-02 16:41:17 +02:00
2022-07-12 16:35:08 +02:00
2022-07-29 17:25:32 +02:00
2022-09-15 11:30:05 +02:00