[PATCH] crypto/openssl: fix asym memory leaks
Ji, Kai
kai.ji at intel.com
Tue Nov 7 00:14:16 CET 2023
Acked-by: Kai Ji <kai.ji at intel.com<mailto:kai.ji at intel.com>>
________________________________
From: Power, Ciara <ciara.power at intel.com>
Sent: 03 November 2023 15:45
To: dev at dpdk.org <dev at dpdk.org>
Cc: Power, Ciara <ciara.power at intel.com>; Ji, Kai <kai.ji at intel.com>; gmuthukrishn at marvell.com <gmuthukrishn at marvell.com>; sunila.sahu at caviumnetworks.com <sunila.sahu at caviumnetworks.com>; stable at dpdk.org <stable at dpdk.org>
Subject: [PATCH] crypto/openssl: fix asym memory leaks
Numerous memory leaks were detected by ASAN
in the OpenSSL PMD asymmetric code path.
These are now fixed to free all variables allocated
by OpenSSL functions such as BN_bin2bn and
OSSL_PARAM_BLD_new.
Some need to exist until the op is processed,
for example the BIGNUMs associated with DSA.
The pointers for these are added to the private
asym session so they can be accessed later when calling free.
Fixes: 4c7ae22f1f83 ("crypto/openssl: update DSA routine with 3.0 EVP API")
Fixes: c794b40c9258 ("crypto/openssl: update DH routine with 3.0 EVP API")
Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2")
Fixes: ac42813a0a7c ("crypto/openssl: add DH and DSA asym operations")
Fixes: d7bd42f6db19 ("crypto/openssl: update RSA routine with 3.0 EVP API")
Cc: kai.ji at intel.com
Cc: gmuthukrishn at marvell.com
Cc: sunila.sahu at caviumnetworks.com
Cc: stable at dpdk.org
Signed-off-by: Ciara Power <ciara.power at intel.com>
---
Depends-on: patch-133837 ("crypto/openssl: fix memory leaks in asym ops")
---
2.34.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20231106/85641e5e/attachment.htm>
More information about the stable
mailing list