Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134224/?format=api
https://patches.dpdk.org/api/patches/134224/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231114082539.1858594-39-huangdengdui@huawei.com/", "project": { "id": 1, "url": "https://patches.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": "<20231114082539.1858594-39-huangdengdui@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231114082539.1858594-39-huangdengdui@huawei.com", "date": "2023-11-14T08:25:34", "name": "[38/43] net/vhost: use rte strerror", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "336634bbfe9d0287adbc9fdcd249f88b93d0f4e9", "submitter": { "id": 3066, "url": "https://patches.dpdk.org/api/people/3066/?format=api", "name": "huangdengdui", "email": "huangdengdui@huawei.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231114082539.1858594-39-huangdengdui@huawei.com/mbox/", "series": [ { "id": 30285, "url": "https://patches.dpdk.org/api/series/30285/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30285", "date": "2023-11-14T08:25:01", "name": "replace strerror", "version": 1, "mbox": "https://patches.dpdk.org/series/30285/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/134224/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/134224/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 A1D7443325;\n\tTue, 14 Nov 2023 09:29:23 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 223AA42C24;\n\tTue, 14 Nov 2023 09:26:25 +0100 (CET)", "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id 5E0A64027B\n for <dev@dpdk.org>; Tue, 14 Nov 2023 09:25:47 +0100 (CET)", "from dggpeml500011.china.huawei.com (unknown [172.30.72.55])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4STzrN6GyxzWhKY;\n Tue, 14 Nov 2023 16:25:24 +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 16:25:46 +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 38/43] net/vhost: use rte strerror", "Date": "Tue, 14 Nov 2023 16:25:34 +0800", "Message-ID": "<20231114082539.1858594-39-huangdengdui@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20231114082539.1858594-1-huangdengdui@huawei.com>", "References": "<20231114082539.1858594-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": "dggems703-chm.china.huawei.com (10.3.19.180) 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/net/vhost/rte_eth_vhost.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex 21bbb008e0..75b48dc31e 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -567,7 +567,7 @@ eth_vhost_update_intr(struct rte_eth_dev *eth_dev, uint16_t rxq_idx)\n \tif (vq->kickfd >= 0 && vq->kickfd != vring.kickfd) {\n \t\tif (epoll_ctl(vq->ev.data.fd, EPOLL_CTL_DEL, vq->kickfd, &vq->ev) < 0) {\n \t\t\tVHOST_LOG(DEBUG, \"Failed to unregister %d from rxq-%d epoll: %s\\n\",\n-\t\t\t\tvq->kickfd, rxq_idx, strerror(errno));\n+\t\t\t\tvq->kickfd, rxq_idx, rte_strerror(errno));\n \t\t} else {\n \t\t\tVHOST_LOG(DEBUG, \"Unregistered %d from rxq-%d epoll\\n\",\n \t\t\t\tvq->kickfd, rxq_idx);\n@@ -579,7 +579,7 @@ eth_vhost_update_intr(struct rte_eth_dev *eth_dev, uint16_t rxq_idx)\n \tif (vq->kickfd != vring.kickfd && vring.kickfd >= 0) {\n \t\tif (epoll_ctl(vq->ev.data.fd, EPOLL_CTL_ADD, vring.kickfd, &vq->ev) < 0) {\n \t\t\tVHOST_LOG(ERR, \"Failed to register %d in rxq-%d epoll: %s\\n\",\n-\t\t\t\tvring.kickfd, rxq_idx, strerror(errno));\n+\t\t\t\tvring.kickfd, rxq_idx, rte_strerror(errno));\n \t\t} else {\n \t\t\tvq->kickfd = vring.kickfd;\n \t\t\tVHOST_LOG(DEBUG, \"Registered %d in rxq-%d epoll\\n\",\n@@ -730,7 +730,7 @@ eth_vhost_unconfigure_intr(struct rte_eth_dev *eth_dev)\n \t\tif (vq->kickfd >= 0) {\n \t\t\tif (epoll_ctl(vq->ev.data.fd, EPOLL_CTL_DEL, vq->kickfd, &vq->ev) < 0) {\n \t\t\t\tVHOST_LOG(DEBUG, \"Failed to unregister %d from rxq-%d epoll: %s\\n\",\n-\t\t\t\t\tvq->kickfd, i, strerror(errno));\n+\t\t\t\t\tvq->kickfd, i, rte_strerror(errno));\n \t\t\t} else {\n \t\t\t\tVHOST_LOG(DEBUG, \"Unregistered %d from rxq-%d epoll\\n\",\n \t\t\t\t\tvq->kickfd, i);\n", "prefixes": [ "38/43" ] }{ "id": 134224, "url": "