Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/93174/?format=api
https://patches.dpdk.org/api/patches/93174/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210512023041.30507-1-cheng1.jiang@intel.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": "<20210512023041.30507-1-cheng1.jiang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210512023041.30507-1-cheng1.jiang@intel.com", "date": "2021-05-12T02:30:41", "name": "vhost: fix unintended sign extension in async split ring", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ad66014b5420c78e8e4c1fe0407fafd747618c4a", "submitter": { "id": 1530, "url": "https://patches.dpdk.org/api/people/1530/?format=api", "name": "Jiang, Cheng1", "email": "Cheng1.jiang@intel.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210512023041.30507-1-cheng1.jiang@intel.com/mbox/", "series": [ { "id": 16936, "url": "https://patches.dpdk.org/api/series/16936/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16936", "date": "2021-05-12T02:30:41", "name": "vhost: fix unintended sign extension in async split ring", "version": 1, "mbox": "https://patches.dpdk.org/series/16936/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/93174/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/93174/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 C09F2A0A0E;\n\tWed, 12 May 2021 04:44:47 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 61B8B410F6;\n\tWed, 12 May 2021 04:44:43 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id D5E674003E\n for <dev@dpdk.org>; Wed, 12 May 2021 04:44:41 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 May 2021 19:44:40 -0700", "from dpdk_jiangcheng.sh.intel.com ([10.67.119.112])\n by fmsmga008.fm.intel.com with ESMTP; 11 May 2021 19:44:30 -0700" ], "IronPort-SDR": [ "\n Fgy0uTBV3R9abI27UMoEC6CA+I/WKWfbgHWNUXxRlOYfMcRDrPngSS91ILs6jg/e29V21X8Dyk\n hGFcbvM4fhdg==", "\n RijuHAey9/DpPA+OXrcQoi6AYWcR8koixH/uZ4fJ5piiavYZui/tjJl79L1qT+d7Kt3D1YRzK+\n 26qVLOQbpkyQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,9981\"; a=\"220569403\"", "E=Sophos;i=\"5.82,292,1613462400\"; d=\"scan'208\";a=\"220569403\"", "E=Sophos;i=\"5.82,292,1613462400\"; d=\"scan'208\";a=\"434890755\"" ], "X-ExtLoop1": "1", "From": "Cheng Jiang <cheng1.jiang@intel.com>", "To": "maxime.coquelin@redhat.com,\n\tchenbo.xia@intel.com", "Cc": "dev@dpdk.org,\n\tCheng Jiang <cheng1.jiang@intel.com>", "Date": "Wed, 12 May 2021 02:30:41 +0000", "Message-Id": "<20210512023041.30507-1-cheng1.jiang@intel.com>", "X-Mailer": "git-send-email 2.29.2", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] vhost: fix unintended sign extension in async\n split ring", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Change the variable type in store_dma_desc_info_split() to fix\nsuspicious implicit sign extension.\n\nCoverity issue: 370604, 370607, 370609\nFixes: 3d6cb86b0de5 (vhost: refactor async split ring functions)\n\nSigned-off-by: Cheng Jiang <cheng1.jiang@intel.com>\n---\n lib/vhost/virtio_net.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c\nindex 8e36f4c340..9137a9923b 100644\n--- a/lib/vhost/virtio_net.c\n+++ b/lib/vhost/virtio_net.c\n@@ -1474,7 +1474,7 @@ static __rte_always_inline void\n store_dma_desc_info_split(struct vring_used_elem *s_ring, struct vring_used_elem *d_ring,\n \t\tuint16_t ring_size, uint16_t s_idx, uint16_t d_idx, uint16_t count)\n {\n-\tuint16_t elem_size = sizeof(struct vring_used_elem);\n+\tsize_t elem_size = sizeof(struct vring_used_elem);\n \n \tif (d_idx + count <= ring_size) {\n \t\trte_memcpy(d_ring + d_idx, s_ring + s_idx, count * elem_size);\n", "prefixes": [] }{ "id": 93174, "url": "