automatic DPDK test reports
 help / color / mirror / Atom feed
From: qemudev@loongson.cn
To: test-report@dpdk.org
Cc: Ciara Power <ciara.power@intel.com>, zhoumin@loongson.cn
Subject: |WARNING| pw133842 [PATCH] crypto/openssl: fix asym memory leaks
Date: Fri, 3 Nov 2023 23:25:18 +0800	[thread overview]
Message-ID: <202311031525.3A3FPIS63341196@localhost.localdomain> (raw)
In-Reply-To: <20231103154516.3456536-1-ciara.power@intel.com>

Test-Label: loongarch-compilation
Test-Status: WARNING
http://dpdk.org/patch/133842

_apply patch failure_

Submitter: Ciara Power <ciara.power@intel.com>
Date: Fri,  3 Nov 2023 15:45:16 +0000
DPDK git baseline: Repo:dpdk-next-crypto
  Branch: for-main
  CommitID: 11e5ca63c77b355d0397f642989f28a7a0318cbc

Apply patch set 133842 failed:

Checking patch drivers/crypto/openssl/openssl_pmd_private.h...
Checking patch drivers/crypto/openssl/rte_openssl_pmd.c...
error: while searching for:
err_dsa_sign:
	if (params)
		OSSL_PARAM_free(params);
	if (key_ctx)
		EVP_PKEY_CTX_free(key_ctx);
	if (dsa_ctx)
		EVP_PKEY_CTX_free(dsa_ctx);

	EVP_PKEY_free(pkey);
	return ret;
}

error: patch failed: drivers/crypto/openssl/rte_openssl_pmd.c:1958
error: drivers/crypto/openssl/rte_openssl_pmd.c: patch does not apply
Checking patch drivers/crypto/openssl/rte_openssl_pmd_ops.c...
Hunk #1 succeeded at 1104 (offset -2 lines).
Hunk #2 succeeded at 1129 (offset -2 lines).
Hunk #3 succeeded at 1146 (offset -2 lines).
error: while searching for:

err_dh:
		OPENSSL_LOG(ERR, " failed to set dh params\n");
		BN_free(p);
		BN_free(g);
		return -1;
	}
	case RTE_CRYPTO_ASYM_XFORM_DSA:
	{
#if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
		BIGNUM *p = NULL, *g = NULL;
		BIGNUM *q = NULL, *priv_key = NULL;
		BIGNUM *pub_key = NULL;
		OSSL_PARAM_BLD *param_bld = NULL;

		p = BN_bin2bn((const unsigned char *)
				xform->dsa.p.data,
				xform->dsa.p.length,
				p);

		g = BN_bin2bn((const unsigned char *)
				xform->dsa.g.data,
				xform->dsa.g.length,
				g);

		q = BN_bin2bn((const unsigned char *)
				xform->dsa.q.data,
				xform->dsa.q.length,
				q);
		if (!p || !q || !g)
			goto err_dsa;

		priv_key = BN_bin2bn((const unsigned char *)
				xform->dsa.x.data,
				xform->dsa.x.length,
				priv_key);
		if (priv_key == NULL)
			goto err_dsa;

		param_bld = OSSL_PARAM_BLD_new();

error: patch failed: drivers/crypto/openssl/rte_openssl_pmd_ops.c:1177
error: drivers/crypto/openssl/rte_openssl_pmd_ops.c: patch does not apply


       reply	other threads:[~2023-11-03 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20231103154516.3456536-1-ciara.power@intel.com>
2023-11-03 15:25 ` qemudev [this message]
2023-11-03 15:46 ` checkpatch
2023-11-03 17:18 dpdklab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202311031525.3A3FPIS63341196@localhost.localdomain \
    --to=qemudev@loongson.cn \
    --cc=ciara.power@intel.com \
    --cc=test-report@dpdk.org \
    --cc=zhoumin@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).