Message ID | 1616830688-65506-1-git-send-email-humin29@huawei.com (mailing list archive) |
---|---|
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]) by inbox.dpdk.org (Postfix) with ESMTP id BB44DA0A02; Sat, 27 Mar 2021 08:38:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78E49140DA0; Sat, 27 Mar 2021 08:37:52 +0100 (CET) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by mails.dpdk.org (Postfix) with ESMTP id 23BE7140D7C for <dev@dpdk.org>; Sat, 27 Mar 2021 08:37:49 +0100 (CET) Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6rH45bSQz93y9; Sat, 27 Mar 2021 15:35:44 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:37:41 +0800 From: "Min Hu (Connor)" <humin29@huawei.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <thomas@monjalon.net>, <andrew.rybchenko@oktetlabs.ru> Date: Sat, 27 Mar 2021 15:38:05 +0800 Message-ID: <1616830688-65506-1-git-send-email-humin29@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH 0/3] fix miss input validation 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>, <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>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series | fix miss input validation | |
Message
humin (Q)
March 27, 2021, 7:38 a.m. UTC
The validity verification of input parameters should be performed at API layer, not in the PMD. This set of patches fix miss input validation. Chengchang Tang (3): ethdev: fix miss input validation in module EEPROM dump API ethdev: fix miss input validation when access reg info ethdev: fix miss input validation when access EEPROM info drivers/net/e1000/igb_ethdev.c | 3 --- drivers/net/hns3/hns3_regs.c | 5 ----- drivers/net/i40e/i40e_ethdev.c | 3 --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 4 ++-- drivers/net/octeontx2/otx2_ethdev_ops.c | 3 +-- lib/librte_ethdev/rte_ethdev.c | 10 ++++++++++ lib/librte_ethdev/rte_ethdev.h | 5 +++++ 8 files changed, 18 insertions(+), 18 deletions(-)
Comments
On 3/27/2021 7:38 AM, Min Hu (Connor) wrote: > The validity verification of input parameters should be performed at > API layer, not in the PMD. > > This set of patches fix miss input validation. > > Chengchang Tang (3): > ethdev: fix miss input validation in module EEPROM dump API > ethdev: fix miss input validation when access reg info > ethdev: fix miss input validation when access EEPROM info > The function updated in ethdev header file, and the ethdev .c file seems mixes within the patches [1], can you please send a new version to fix it, you can keep the acks to this version. [1] 1/3: * in .h: 'rte_eth_dev_get_module_info()', 'rte_eth_dev_set_eeprom()' * in .c: 'rte_eth_dev_get_module_info()', 'rte_eth_dev_get_module_eeprom()' 3/3: * in .h: 'rte_eth_dev_get_eeprom()', 'rte_eth_dev_get_module_eeprom()' * in .c: 'rte_eth_dev_get_eeprom()', 'rte_eth_dev_set_eeprom()'
在 2021/4/1 23:37, Ferruh Yigit 写道: > On 3/27/2021 7:38 AM, Min Hu (Connor) wrote: >> The validity verification of input parameters should be performed at >> API layer, not in the PMD. >> >> This set of patches fix miss input validation. >> >> Chengchang Tang (3): >> ethdev: fix miss input validation in module EEPROM dump API >> ethdev: fix miss input validation when access reg info >> ethdev: fix miss input validation when access EEPROM info >> > > The function updated in ethdev header file, and the ethdev .c file seems > mixes within the patches [1], can you please send a new version to fix > it, you can keep the acks to this version. > > [1] > 1/3: > * in .h: 'rte_eth_dev_get_module_info()', 'rte_eth_dev_set_eeprom()' > * in .c: 'rte_eth_dev_get_module_info()', 'rte_eth_dev_get_module_eeprom()' > > 3/3: > * in .h: 'rte_eth_dev_get_eeprom()', 'rte_eth_dev_get_module_eeprom()' > * in .c: 'rte_eth_dev_get_eeprom()', 'rte_eth_dev_set_eeprom()' > . Thanks Ferruh, Fixed done in v2.