Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114058/?format=api
https://patches.dpdk.org/api/patches/114058/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/5001c75008d9423c885747b51cb1ad55@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": "<5001c75008d9423c885747b51cb1ad55@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/5001c75008d9423c885747b51cb1ad55@huawei.com", "date": "2022-07-20T01:28:59", "name": "答复: [dpdk-dev] [PATCH] net/bonding: fix array overflow in Rx burst", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "856d681779c4d3c3d76e492ff53a29b0a4233118", "submitter": { "id": 1944, "url": "https://patches.dpdk.org/api/people/1944/?format=api", "name": "humin (Q)", "email": "humin29@huawei.com" }, "delegate": { "id": 3961, "url": "https://patches.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/5001c75008d9423c885747b51cb1ad55@huawei.com/mbox/", "series": [ { "id": 24032, "url": "https://patches.dpdk.org/api/series/24032/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24032", "date": "2022-07-20T01:28:59", "name": "答复: [dpdk-dev] [PATCH] net/bonding: fix array overflow in Rx burst", "version": 1, "mbox": "https://patches.dpdk.org/series/24032/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/114058/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/114058/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 BEA65A0032;\n\tWed, 20 Jul 2022 03:29:03 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1F01D41147;\n\tWed, 20 Jul 2022 03:29:03 +0200 (CEST)", "from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])\n by mails.dpdk.org (Postfix) with ESMTP id 43BF340697;\n Wed, 20 Jul 2022 03:29:01 +0200 (CEST)", "from kwepemi500012.china.huawei.com (unknown [172.30.72.57])\n by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LndP92tcZzFqL0;\n Wed, 20 Jul 2022 09:27:57 +0800 (CST)", "from kwepemi500012.china.huawei.com (7.221.188.12) by\n kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.24; Wed, 20 Jul 2022 09:28:59 +0800", "from kwepemi500012.china.huawei.com ([7.221.188.12]) by\n kwepemi500012.china.huawei.com ([7.221.188.12]) with mapi id 15.01.2375.024;\n Wed, 20 Jul 2022 09:28:59 +0800" ], "From": "\"humin (Q)\" <humin29@huawei.com>", "To": "wangyunjian <wangyunjian@huawei.com>, \"dev@dpdk.org\" <dev@dpdk.org>", "CC": "\"chas3@att.com\" <chas3@att.com>, Huangshaozhang\n <huangshaozhang@huawei.com>, \"jilei (F)\" <jilei8@huawei.com>,\n \"stable@dpdk.org\" <stable@dpdk.org>", "Subject": "\n =?eucgb2312_cn?b?tPC4tDogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC9ib25kaW5nOiBmaXgg?=\n\t=?eucgb2312_cn?b?YXJyYXkgb3ZlcmZsb3cgaW4gUnggYnVyc3Q=?=", "Thread-Topic": "[dpdk-dev] [PATCH] net/bonding: fix array overflow in Rx burst", "Thread-Index": "AQHYmqeDTAgsz+azdk+mjaelaDT9u62GeoEg", "Date": "Wed, 20 Jul 2022 01:28:59 +0000", "Message-ID": "<5001c75008d9423c885747b51cb1ad55@huawei.com>", "References": "<20210810064323.4161835-1-jilei8@huawei.com>\n <23483205275b4639324b82c1607cd867327bf783.1658146483.git.wangyunjian@huawei.com>", "In-Reply-To": "\n <23483205275b4639324b82c1607cd867327bf783.1658146483.git.wangyunjian@huawei.com>", "Accept-Language": "zh-CN, en-US", "Content-Language": "zh-CN", "X-MS-Has-Attach": "", "X-MS-TNEF-Correlator": "", "x-originating-ip": "[10.78.23.197]", "Content-Type": "text/plain; charset=\"gb2312\"", "Content-Transfer-Encoding": "base64", "MIME-Version": "1.0", "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": "Acked-by: Min Hu (Connor) <humin29@huawei.com>\n\n-----邮件原件-----\n发件人: wangyunjian <wangyunjian@huawei.com> \n发送时间: 2022年7月18日 21:09\n收件人: dev@dpdk.org\n抄送: chas3@att.com; humin (Q) <humin29@huawei.com>; Huangshaozhang <huangshaozhang@huawei.com>; jilei (F) <jilei8@huawei.com>; wangyunjian <wangyunjian@huawei.com>; stable@dpdk.org\n主题: [dpdk-dev] [PATCH] net/bonding: fix array overflow in Rx burst\n\nIn bond_ethdev_rx_burst() function, we check the validity of the 'active_slave' as this code:\nif (++active_slave == slave_count)\n\tactive_slave = 0;\nHowever, the value of 'active_slave' maybe equal to 'slave_count', when a slave is down. This is wrong and it can cause buffer overflow.\nThis patch fixes the issue by using '>=' instead of '=='.\n\nFixes: e1110e977648 (\"net/bonding: fix Rx slave fairness\")\nCc: stable@dpdk.org\n\nSigned-off-by: Lei Ji <jilei8@huawei.com>\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\n---\n drivers/net/bonding/rte_eth_bond_pmd.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\n--\n2.27.0", "diff": "diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c\r\nindex 73e6972035..6f8a6da108 100644\r\n--- a/drivers/net/bonding/rte_eth_bond_pmd.c\r\n+++ b/drivers/net/bonding/rte_eth_bond_pmd.c\r\n@@ -82,7 +82,7 @@ bond_ethdev_rx_burst(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)\r\n \t\t\t\t\t bufs + num_rx_total, nb_pkts);\r\n \t\tnum_rx_total += num_rx_slave;\r\n \t\tnb_pkts -= num_rx_slave;\r\n-\t\tif (++active_slave == slave_count)\r\n+\t\tif (++active_slave >= slave_count)\r\n \t\t\tactive_slave = 0;\r\n \t}\r\n \r\n", "prefixes": [] }{ "id": 114058, "url": "