From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH] net/ixgbe: fix crash on detach Date: Wed, 30 May 2018 15:48:46 +0100 Message-ID: <5b964ef5-0b58-4eaa-f814-0ac46186cd3f@intel.com> References: <20180530063156.17902-1-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Pablo de Lara , wenzhuo.lu@intel.com, konstantin.ananyev@intel.com Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 6A9742BF3 for ; Wed, 30 May 2018 16:48:49 +0200 (CEST) In-Reply-To: <20180530063156.17902-1-pablo.de.lara.guarch@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 30-May-18 7:31 AM, Pablo de Lara wrote: > When detaching a port bound to ixgbe PMD, if the port > does not have any VFs, *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. > > Steps to reproduce: > > ./testpmd -- -i > testpmd> port stop all > testpmd> port close all > testpmd> port detach 0 > > Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") > > Reported-by: Anatoly Burakov > Signed-off-by: Pablo de Lara > --- Tested-by: Anatoly Burakov -- Thanks, Anatoly