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 B650FA00C3; Thu, 14 May 2020 08:41:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 93DA51D5D8; Thu, 14 May 2020 08:41:17 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D84211D5D5 for ; Thu, 14 May 2020 08:41:15 +0200 (CEST) IronPort-SDR: B+9AfCikpdtpJAFk81hFlqu0GRdCM4hsTqhOnki4ti6tIscpfTtI+BvW7O10t2+CXuHn130DkN i8iKudCTyVVA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 23:41:15 -0700 IronPort-SDR: upShnmFGeDFZaqosn69WjhSUbgUngxL7C+srtqcezSKpEQWM6up7UGpjbq5ZHBhI/VfIupFxDR JDll35hDuzbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,390,1583222400"; d="scan'208";a="262740519" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 13 May 2020 23:41:14 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 May 2020 23:41:14 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 14 May 2020 14:41:12 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Thu, 14 May 2020 14:41:12 +0800 From: "Di, ChenxuX" To: "Guo, Jia" , "dev@dpdk.org" CC: "Xing, Beilei" Thread-Topic: [PATCH v3] net/i40e: fix out of bounds read issue Thread-Index: AQHWKM8/J0muFPUiJUO5nuvhe0BlPKilDgSAgAG6exD//85gAIAAijoQ Date: Thu, 14 May 2020 06:41:12 +0000 Message-ID: <7727d7be670b4820a8d1400ebeff8fe8@intel.com> References: <20200507030928.42082-1-chenxux.di@intel.com> <20200513022645.37302-1-chenxux.di@intel.com> <479b7e59-053c-1675-3b0d-b1990a42eca3@intel.com> In-Reply-To: <479b7e59-053c-1675-3b0d-b1990a42eca3@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] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] net/i40e: fix out of bounds read issue 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" SGkgDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogR3VvLCBKaWENCj4g U2VudDogVGh1cnNkYXksIE1heSAxNCwgMjAyMCAyOjE3IFBNDQo+IFRvOiBEaSwgQ2hlbnh1WCA8 Y2hlbnh1eC5kaUBpbnRlbC5jb20+OyBkZXZAZHBkay5vcmcNCj4gQ2M6IFhpbmcsIEJlaWxlaSA8 YmVpbGVpLnhpbmdAaW50ZWwuY29tPg0KPiBTdWJqZWN0OiBSZTogW1BBVENIIHYzXSBuZXQvaTQw ZTogZml4IG91dCBvZiBib3VuZHMgcmVhZCBpc3N1ZQ0KPiANCj4gDQo+IE9uIDUvMTQvMjAyMCA5 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