Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134300/?format=api
http://patchwork.dpdk.org/api/patches/134300/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20231114112407.3496460-20-huangdengdui@huawei.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20231114112407.3496460-20-huangdengdui@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231114112407.3496460-20-huangdengdui@huawei.com", "date": "2023-11-14T11:23:43", "name": "[v2,19/43] crypto/caam_jr: use rte strerror", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "322f2304a11132bcce93afd279bf5fdb6864ef73", "submitter": { "id": 3066, "url": "http://patchwork.dpdk.org/api/people/3066/?format=api", "name": "huangdengdui", "email": "huangdengdui@huawei.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20231114112407.3496460-20-huangdengdui@huawei.com/mbox/", "series": [ { "id": 30292, "url": "http://patchwork.dpdk.org/api/series/30292/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=30292", "date": "2023-11-14T11:23:25", "name": "replace strerror", "version": 2, "mbox": "http://patchwork.dpdk.org/series/30292/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/134300/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/134300/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3DCE443329;\n\tTue, 14 Nov 2023 12:26:24 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 40E5F40EDC;\n\tTue, 14 Nov 2023 12:24:36 +0100 (CET)", "from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])\n by mails.dpdk.org (Postfix) with ESMTP id 5CC21402EE\n for <dev@dpdk.org>; Tue, 14 Nov 2023 12:24:12 +0100 (CET)", "from dggpeml500011.china.huawei.com (unknown [172.30.72.55])\n by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SV3jM71b5zMmpY;\n Tue, 14 Nov 2023 19:19:35 +0800 (CST)", "from localhost.huawei.com (10.50.165.33) by\n dggpeml500011.china.huawei.com (7.185.36.84) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Tue, 14 Nov 2023 19:24:10 +0800" ], "From": "Dengdui Huang <huangdengdui@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@amd.com>, <stephen@networkplumber.org>,\n <lihuisong@huawei.com>, <fengchengwen@huawei.com>, <liuyonglong@huawei.com>", "Subject": "[PATCH v2 19/43] crypto/caam_jr: use rte strerror", "Date": "Tue, 14 Nov 2023 19:23:43 +0800", "Message-ID": "<20231114112407.3496460-20-huangdengdui@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20231114112407.3496460-1-huangdengdui@huawei.com>", "References": "<20231114082539.1858594-44-huangdengdui@huawei.com>\n <20231114112407.3496460-1-huangdengdui@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.50.165.33]", "X-ClientProxiedBy": "dggems705-chm.china.huawei.com (10.3.19.182) To\n dggpeml500011.china.huawei.com (7.185.36.84)", "X-CFilter-Loop": "Reflected", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "The function strerror() is insecure in a multi-thread environment.\nThis patch uses rte_strerror() to replace it.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Dengdui Huang <huangdengdui@huawei.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n drivers/crypto/caam_jr/caam_jr_uio.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/crypto/caam_jr/caam_jr_uio.c b/drivers/crypto/caam_jr/caam_jr_uio.c\nindex 583ba3b523..b612407c41 100644\n--- a/drivers/crypto/caam_jr/caam_jr_uio.c\n+++ b/drivers/crypto/caam_jr/caam_jr_uio.c\n@@ -17,6 +17,7 @@\n #include <rte_malloc.h>\n #include <rte_crypto.h>\n #include <rte_security.h>\n+#include <rte_errno.h>\n \n #include <caam_jr_config.h>\n #include <caam_jr_hw_specific.h>\n@@ -355,7 +356,7 @@ free_job_ring(int uio_fd)\n \tif (munmap(job_ring->register_base_addr, job_ring->map_size)) {\n \t\tCAAM_JR_INFO(\"cannot munmap(%p, 0x%lx): %s\",\n \t\t\tjob_ring->register_base_addr,\n-\t\t\t(unsigned long)job_ring->map_size, strerror(errno));\n+\t\t\t(unsigned long)job_ring->map_size, rte_strerror(errno));\n \t} else\n \t\tCAAM_JR_DEBUG(\"JR UIO memory is unmapped\");\n \n@@ -419,7 +420,7 @@ sec_configure(void)\n \td = opendir(SEC_UIO_DEVICE_SYS_ATTR_PATH);\n \tif (d == NULL) {\n \t\tprintf(\"\\nError opening directory '%s': %s\\n\",\n-\t\t\tSEC_UIO_DEVICE_SYS_ATTR_PATH, strerror(errno));\n+\t\t\tSEC_UIO_DEVICE_SYS_ATTR_PATH, rte_strerror(errno));\n \t\treturn -1;\n \t}\n \n", "prefixes": [ "v2", "19/43" ] }{ "id": 134300, "url": "