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 DEBDB43819; Thu, 4 Jan 2024 18:51:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C7844029B; Thu, 4 Jan 2024 18:51:21 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id CD79D4029A; Thu, 4 Jan 2024 18:51:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704390680; x=1735926680; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VhuDPzU3AA4ak8ymr5PPu5RAN+gtcVK4AbRsy8du3nI=; b=HHY0vp/c3YZPSAzCse8wzmzyobvs5xZhood9jvC4mej0JB78E/8VHRx6 SXblJjzl7gYubVZn+Zd39OzNtJ6jTOWgAj3UTI+f4iHSkmR9+oyIg8Bug eJGHw16yAskXPeJOXbIYRgT6cWkL9ghME9PetZIMY9fIkxMBmE1YGssGt 5dX9Sy/BnoscPC3z5Lql7EswysJ4Ic6GUqRCw8K4+HiWCbWr6MqEHJabt v0pT+1wsrzflz91n1PHEp4UawJn95+OsU5SmG4c/kVOUe9ujkMOgUq9GW J7OV5C+TtDAWZ+Gq7fJF2Z6Tz45rUEqALek6fbcbBCWT6pBzxHn6QXzKA g==; X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="4133219" X-IronPort-AV: E=Sophos;i="6.04,331,1695711600"; d="scan'208";a="4133219" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2024 09:51:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10943"; a="871000792" X-IronPort-AV: E=Sophos;i="6.04,331,1695711600"; d="scan'208";a="871000792" Received: from silpixa00400902.ir.intel.com ([10.243.23.146]) by FMSMGA003.fm.intel.com with ESMTP; 04 Jan 2024 09:51:13 -0800 From: Sivaramakrishnan Venkat To: Cc: dev@dpdk.org, stable@dpdk.org, Sivaramakrishnan Venkat Subject: [dpdk-dev v4 2/2] net/tap: fix buffer overflow for ptypes list Date: Thu, 4 Jan 2024 17:51:09 +0000 Message-Id: <20240104175111.2190075-1-venkatx.sivaramakrishnan@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231221184001.928922-1-venkatx.sivaramakrishnan@intel.com> References: <20231221184001.928922-1-venkatx.sivaramakrishnan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 [PATCH 1] - net/tap: fix buffer overflow for ptypes list through updation of last element. The first patch is for drivers for backporting [PATCH 2] - net/tap: fix buffer overflow for ptypes list through through driver API update. The second patch is for drivers API update Sivaramakrishnan Venkat (2): net/tap: fix buffer overflow for ptypes list through updation of last element. net/tap: fix buffer overflow for ptypes list through driver API update drivers/net/atlantic/atl_ethdev.c | 13 ++++++++----- drivers/net/axgbe/axgbe_ethdev.c | 13 ++++++++----- drivers/net/bnxt/bnxt_ethdev.c | 7 ++++--- drivers/net/cnxk/cnxk_ethdev.h | 3 ++- drivers/net/cnxk/cnxk_lookup.c | 7 ++++--- drivers/net/cpfl/cpfl_ethdev.c | 7 ++++--- drivers/net/cxgbe/cxgbe_ethdev.c | 10 ++++++---- drivers/net/cxgbe/cxgbe_pfvf.h | 3 ++- drivers/net/dpaa/dpaa_ethdev.c | 8 ++++++-- drivers/net/dpaa2/dpaa2_ethdev.c | 10 ++++++---- drivers/net/e1000/igb_ethdev.c | 13 ++++++++----- drivers/net/enetc/enetc_ethdev.c | 7 ++++--- drivers/net/enic/enic_ethdev.c | 17 ++++++++++------- drivers/net/failsafe/failsafe_ops.c | 5 +++-- drivers/net/fm10k/fm10k_ethdev.c | 15 +++++++++------ drivers/net/hns3/hns3_rxtx.c | 16 +++++++++------- drivers/net/hns3/hns3_rxtx.h | 3 ++- drivers/net/i40e/i40e_rxtx.c | 11 +++++++---- drivers/net/i40e/i40e_rxtx.h | 3 ++- drivers/net/iavf/iavf_ethdev.c | 10 ++++++---- drivers/net/ice/ice_dcf_ethdev.c | 7 ++++--- drivers/net/ice/ice_rxtx.c | 23 ++++++++++++++--------- drivers/net/ice/ice_rxtx.h | 3 ++- drivers/net/idpf/idpf_ethdev.c | 7 ++++--- drivers/net/igc/igc_ethdev.c | 10 ++++++---- drivers/net/ionic/ionic_rxtx.c | 7 ++++--- drivers/net/ionic/ionic_rxtx.h | 3 ++- drivers/net/ixgbe/ixgbe_ethdev.c | 18 ++++++++++++------ drivers/net/mana/mana.c | 7 ++++--- drivers/net/mlx4/mlx4.h | 3 ++- drivers/net/mlx4/mlx4_ethdev.c | 17 ++++++++++------- drivers/net/mlx5/mlx5.h | 3 ++- drivers/net/mlx5/mlx5_ethdev.c | 11 +++++++---- drivers/net/mvneta/mvneta_ethdev.c | 4 +++- drivers/net/mvpp2/mrvl_ethdev.c | 4 +++- drivers/net/netvsc/hn_var.h | 3 ++- drivers/net/netvsc/hn_vf.c | 5 +++-- drivers/net/nfp/nfp_net_common.c | 14 ++++++++++---- drivers/net/nfp/nfp_net_common.h | 3 ++- drivers/net/ngbe/ngbe_ethdev.c | 9 ++++++--- drivers/net/ngbe/ngbe_ethdev.h | 3 ++- drivers/net/ngbe/ngbe_ptypes.c | 3 ++- drivers/net/ngbe/ngbe_ptypes.h | 2 +- drivers/net/octeontx/octeontx_ethdev.c | 11 +++++++---- drivers/net/pfe/pfe_ethdev.c | 8 ++++++-- drivers/net/qede/qede_ethdev.c | 11 +++++++---- drivers/net/sfc/sfc_dp_rx.h | 2 +- drivers/net/sfc/sfc_ef10.h | 3 ++- drivers/net/sfc/sfc_ef100_rx.c | 7 ++++--- drivers/net/sfc/sfc_ef10_rx.c | 11 ++++++----- drivers/net/sfc/sfc_ethdev.c | 5 +++-- drivers/net/sfc/sfc_rx.c | 7 ++++--- drivers/net/tap/rte_eth_tap.c | 6 ++++-- drivers/net/thunderx/nicvf_ethdev.c | 8 +++++--- drivers/net/txgbe/txgbe_ethdev.c | 9 ++++++--- drivers/net/txgbe/txgbe_ethdev.h | 3 ++- drivers/net/txgbe/txgbe_ptypes.c | 6 +++--- drivers/net/txgbe/txgbe_ptypes.h | 2 +- drivers/net/vmxnet3/vmxnet3_ethdev.c | 14 +++++++++----- lib/ethdev/ethdev_driver.h | 3 ++- lib/ethdev/rte_ethdev.c | 10 ++++++---- 61 files changed, 295 insertions(+), 181 deletions(-) -- 2.25.1