From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1609E1B91E; Thu, 21 Jun 2018 15:31:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 06:31:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,252,1526367600"; d="scan'208";a="59095736" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jun 2018 06:31:46 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 21 Jun 2018 06:31:46 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 21 Jun 2018 06:31:46 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.51]) by shsmsx102.ccr.corp.intel.com ([169.254.2.223]) with mapi id 14.03.0319.002; Thu, 21 Jun 2018 21:31:44 +0800 From: "Zhang, Qi Z" To: "De Lara Guarch, Pablo" , "Lu, Wenzhuo" , "Ananyev, Konstantin" CC: "dev@dpdk.org" , "De Lara Guarch, Pablo" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3] net/ixgbe: fix crash on detach Thread-Index: AQHT+MUvi1lQ78EuhkWOG6DkhRWr3KRq1P2w Date: Thu, 21 Jun 2018 13:31:44 +0000 Message-ID: <039ED4275CED7440929022BC67E706115323B414@SHSMSX103.ccr.corp.intel.com> References: <20180530063156.17902-1-pablo.de.lara.guarch@intel.com> <20180531095307.13390-1-pablo.de.lara.guarch@intel.com> In-Reply-To: <20180531095307.13390-1-pablo.de.lara.guarch@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjE5ZGI2MTMtZWMxYS00NjAyLThkNmItM2U1ODM3YTc5MWE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUU1iNnRCbVg2em91U3VSUzhzYWhNOW05dlNPeVZld3c5UWRzTVp5WTgybSs2dUV3bWJiSkdhUFFqaTRtVlZrdSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] net/ixgbe: fix crash on detach 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: , X-List-Received-Date: Thu, 21 Jun 2018 13:31:48 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Thursday, May 31, 2018 5:53 PM > To: Lu, Wenzhuo ; Ananyev, Konstantin > > Cc: dev@dpdk.org; De Lara Guarch, Pablo ; > stable@dpdk.org > Subject: [dpdk-dev] [PATCH v3] net/ixgbe: fix crash on detach >=20 > When detaching a port bound to ixgbe PMD, if the port does not have any V= Fs, > *vfinfo is not set and there is a NULL dereference attempt, when calling > rte_eth_switch_domain_free(), which expects VFs to be used, causing a > segmentation fault. >=20 > Steps to reproduce: >=20 > ./testpmd -- -i > testpmd> port stop all > testpmd> port close all > testpmd> port detach 0 >=20 > Bugzilla ID: 57 > Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") > Cc: stable@dpdk.org >=20 > Reported-by: Anatoly Burakov > Signed-off-by: Pablo de Lara > Tested-by: Anatoly Burakov > Acked-by: Remy Horton Applied to dpdk-next-net-intel Thanks! Qi