tls: Only use data field in crypto completion function

[ Upstream commit 8d338c76f7 ]

The crypto_async_request passed to the completion is not guaranteed
to be the original request object.  Only the data field can be relied
upon.

Fix this by storing the socket pointer with the AEAD request.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: a2713257ee ("tls: Use size_add() in call to struct_size()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Herbert Xu 2023-02-06 18:22:27 +08:00 • committed by Greg Kroah-Hartman
commit 8ae1873864
2 changed files with 31 additions and 11 deletions