From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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)" To: CC: , , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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(-) -- 2.7.4