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 58BD5A054F; Tue, 6 Sep 2022 06:47:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F108340143; Tue, 6 Sep 2022 06:47:54 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 1F256400D6 for ; Tue, 6 Sep 2022 06:47:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662439673; x=1693975673; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eYPIJif92kF8kUj5i4qx+g/wX0bhx3GnEkCNF8BuK0A=; b=g02cjiw+JeynRKSIqurK/+8SbzEf/LriD/EiV+j5fPd6UzanE1vwdTIv hy7YC11KjwbYnQwMsolZWD3ReE2H7wWzxbsgfladWj3QQzNsdJ6kszhJu Zv3hdI4oK1LYT1BajcHHdlWdKyZQ1jTwOUtUyc7YWRAtNngKqSi/vyi2f VnMG4cIuQ1MYAQnH3EgQ9QdS8cJckL2eKw1N2Ty+pUd2y7LamoCq1aBB6 1bdSlPuZH3cuGjn064BWhm60UYSwbNnXN4DgbVVJ0SF7bd3t27VsFZSAz 2P/dNudhn09S0LBeBNpga5DdIYgHaZi+lWrKNPXNKGd8VwgJ1n4o+kB7l A==; X-IronPort-AV: E=McAfee;i="6500,9779,10461"; a="294086922" X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="294086922" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 21:47:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="616582407" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP; 05 Sep 2022 21:47:52 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 5 Sep 2022 21:47:51 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 5 Sep 2022 21:47:51 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 5 Sep 2022 21:47:51 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 5 Sep 2022 21:47:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OOMW+y4zHIGlv2+fr74asAPi+kge8ycg8arsV4JXehLFLHd0xr2pWdktW3OGf2wFP8+d0/riNpt9HX8OBg7pGYYdy1KvhIaJIAXEVdk+KG4bei/VxD/g40/JsoGVx0taZA2p4v9SHFWYFTEixJXt77sf+UheLmZU6HxFVL32qUeOpW/Uz57pmwDDJpqEamPQea0YJcerKlH3ZufEYAXlaUPJl5cO/TGXo1AJUMwiURfY34LR0TPwhjnUjyAVq1fb9RsaWA1IaEg5+cgiDO6JVfuA+rMSbtps0I1mAtddVysGCs2GG+FjkGDyOWO0vF7QTQ9OOLzKRxcu4suOoNen+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eYPIJif92kF8kUj5i4qx+g/wX0bhx3GnEkCNF8BuK0A=; b=iTyv0V+PJzydNEccS3wGQUPVfXxBfNtgUQKd0045ccMT+Ht4zbtF0NhJejC68mSkBiuhuaP66aEeUqQCp1a8FzotRISoN28ZOJNV5InwGIdRwhYYGnh0o1OGzLvjLCE5O3ZTLnaTfW0EiqO8sJ5B+7vPqCZUBASoB4qgoENSrNBIlw+pNJFkrFVmxOiX9IbJ7MV+tRPBPDYNJF2rJ7V5kcEAXI1daOg4RrDcTW0OT/uCmNEzrdsEQBWi6hCfTGvylq4gdBidK0jcKIGHC8AJyBAJdTnaYPy/xh4S9SDYmb5iHezEGHl8G7QZj2QRzqbXRbba3V8cYrvKlqBav8W4zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by PH7PR11MB6931.namprd11.prod.outlook.com (2603:10b6:510:206::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.12; Tue, 6 Sep 2022 04:47:49 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::d94c:1798:9e3b:804e]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::d94c:1798:9e3b:804e%9]) with mapi id 15.20.5588.011; Tue, 6 Sep 2022 04:47:48 +0000 From: "Zhang, Qi Z" To: "Zeng, ZhichaoX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Zhou, YidingX" Subject: RE: [PATCH] net/ice: avoid out-of-bound access Thread-Topic: [PATCH] net/ice: avoid out-of-bound access Thread-Index: AQHYwZhCqNWtWHAzbUaa9v+MGueaCK3R1APQ Date: Tue, 6 Sep 2022 04:47:48 +0000 Message-ID: References: <20220906022859.159925-1-zhichaox.zeng@intel.com> In-Reply-To: <20220906022859.159925-1-zhichaox.zeng@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: db6afeb0-1179-416e-8229-08da8fc2f2f7 x-ms-traffictypediagnostic: PH7PR11MB6931:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: axjLt6s7jUaP278sThefa9sgpg+tyUWRw87UV/hi9qMhOfl503DFbZgVY0ncEgdB1besM/p96KHKpz4jiq5SUQPZUMsZCw/sNT/26LxqXFPpskayfgHHFFwlCivT2FSGYNqYe4VcvCcjo429UZz0vX4eM4CaM8hx8/qjlw17xTZqy3myAKGw4sMZVKFY8BTWq3AVOeCNXQA/MHDkIJgGp4OHMgJX6xLYnfj+Eu1voeV9vBbsSQqIP/K3c8w9McFFFLJzXUr+FmtWtFcTuPTkulbApDVur4/J5tB8u+sIPaM0o5j4UWaAVVweM8yDH+I/LIqJ0mAue7pp+VvmwP0+hgvgOfv7VDbmVH/fM4/RJbA0x6acpHAlxYDfZ5ezcsKy0uJ8LQlUBCcJ8IDTdzkz3kuOmKeNNMgZVedhsM9WU3uD3o5inWnkvjHC/Vjg/a06miFwzwN8kG8WxmksQttCY1MJ0ItwRt+t6RsnWzDfwY/C35CEPea8jyXmyZYjbKxE0kPjbuW8qRXv4vMT4tn7CDyn9Ps4rWlMXk3M9p0WAeRJtCDyUw23fJ45CLtpeZKy7EimI/B1lvmXgFHQ0Es8xKSpkfrzBkSTxboWLu3gjIBKou2+pH2GhnXhIE+09EdoCtj5rI2thD5f5qNzhz3LlDyIRCIQjEPXG9EOQMoZ8ecNNB9CmKx/Z/9FEW4tVf8564jnRsH/UrAJwDU0RWDlc2uO3t570w0+bRNrE3K7FS5rDtB08IGLQ8S+qiwkUZpHTc1Orc0WjEsg/QWxS5B6RG0ht7dudikEFZqr5enARSE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(396003)(39860400002)(346002)(376002)(136003)(66476007)(107886003)(66446008)(966005)(64756008)(76116006)(66946007)(4326008)(52536014)(2906002)(8936002)(5660300002)(33656002)(66556008)(316002)(71200400001)(41300700001)(8676002)(86362001)(478600001)(54906003)(110136005)(55016003)(4744005)(6506007)(7696005)(53546011)(186003)(38100700002)(26005)(122000001)(38070700005)(9686003)(82960400001)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hrxOkjpoESyryMOtPEV5+XtqI5kmgOLbfS0H6M5uM+kmQGC2O6kXSM+dnr0k?= =?us-ascii?Q?56ItnGTQT8Rj3Gc3VwR/0ubK7x/7amOmp5Tb9w+o34yHkHvYB8WoKSL2k2QA?= =?us-ascii?Q?ULzTsePutlxiPPlq8f+x0/BzD8N9llJ+DiUdc5EBZmsbx+5O7DBX7KE7LVZy?= =?us-ascii?Q?t1IGWniBPk9CfLtbC+eTY6mUBYzzyMeIcHsB2Psjuf6zr+IPO1/48yV79wnE?= =?us-ascii?Q?JPhYCnyOc+7PQBmw+m0U9rTSftUjcEsHdhJuMLsTo9kMZo2S/egxTWD/T6gN?= =?us-ascii?Q?QY3FP6zbFPUFG1WJ46k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wcXT4rV?= =?us-ascii?Q?DMKc7euGfQ8ip7lajgYqptvSgT3VXOp2RvF285zwZxAnGKbhNR+seYl/8yeK?= =?us-ascii?Q?hhKFPPY1NNMRVvYlNjnWnF2z7t8c8oIZNzPJ4RpHs5FV5JaOPFd4qhal6plb?= =?us-ascii?Q?PK8osQxoMNrxFKixpgTskf75km80wwKeE2KhrfcfK3uAAINnp1nyHgUcPyaq?= =?us-ascii?Q?s+WHg94aGvWf/dQQN7JNZa3d62seXlIfsFXWUS8dNtyN0AOvFwMog7G60DbK?= =?us-ascii?Q?vnVxndHurxjIMnWK4xH6YE9hrkfMvMoKX4CgYzhhyIdB+kyB5Dejz/i7JApH?= =?us-ascii?Q?KnE3+4Ts6ivRjU7srspE1FIM5p7FmMA3ikmj8C4FYQexibHBMGkzlox6aEtn?= =?us-ascii?Q?hAPgqp/v+TTDo1oLPncEeWx00Ozhagu1opVVBnuK?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: db6afeb0-1179-416e-8229-08da8fc2f2f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2022 04:47:48.8925 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: u5jPJ9j5tlDtr2hqheYpHcMogE/0PtLPUkaJzgNNCpy75jF3bMBzzAa97E7KSCA0+vaE1BqUK7ao7HtZv3exGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6931 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Zeng, ZhichaoX > Sent: Tuesday, September 6, 2022 10:29 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Zeng, ZhichaoX ; > Zhang, Qi Z > Subject: [PATCH] net/ice: avoid out-of-bound access >=20 > Add judgment on 'ethdev_port_id' to avoid out-of-bound accessing the > 'rte_eth_devices'. >=20 > Fixes: 6f8fba7e437e ("net/ice: support represented port flow action") >=20 > Signed-off-by: Zhichao Zeng Acked-by: Qi Zhang Squashed to the fix target patch as it has not been merged. https://patchwork.dpdk.org/project/dpdk/patch/20220725053549.4130777-1-zhic= haox.zeng@intel.com/ Thanks Qi