From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA802A0567; Fri, 13 Mar 2020 07:31:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D8181C01E; Fri, 13 Mar 2020 07:31:18 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 30E911C011 for ; Fri, 13 Mar 2020 07:31:16 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:31:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208,217";a="243278262" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 12 Mar 2020 23:31:15 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:31:14 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 13 Mar 2020 14:31:12 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Fri, 13 Mar 2020 14:31:12 +0800 From: "Zhao, XinfengX" To: "dev@dpdk.org" CC: "Dybkowski, AdamX" Thread-Topic: RE: [dpdk-dev] [PATCH] cryptodev: fix missing device id range checking Thread-Index: AdX4/ZFrxFhqLSoRTDGlexjj1pmLxg== Date: Fri, 13 Mar 2020 06:31:12 +0000 Message-ID: <55eaf4b947074ab682ad3f950f159fe6@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] cryptodev: fix missing device id range checking X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Tested-by: Zhao, Xinfeng> > -----Original Message----- > From: Dybkowski, AdamX > > Sent: Thursday, February 20, 2020 3:04 PM > To: dev at dpdk.org; Trahe, Fiona >; akhil.goyal = at nxp.com > Cc: Dybkowski, AdamX >; stable at dpdk.org > Subject: [PATCH] cryptodev: fix missing device id range checking > > This patch adds range-checking of the device id passed from > the user app code. It prevents out-of-range array accesses > which in some situations resulted in an > application crash (segfault). > > Fixes: 3dd4435cf473 ("cryptodev: fix checks related to device id") > Cc: stable at dpdk.org > > Signed-off-by: Adam Dybkowski >