From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0D7E72C18; Fri, 20 Jul 2018 00:19:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2018 15:19:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,376,1526367600"; d="scan'208";a="68341891" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 19 Jul 2018 15:19:19 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Jul 2018 15:19:19 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Jul 2018 15:19:18 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.100]) by shsmsx102.ccr.corp.intel.com ([169.254.2.124]) with mapi id 14.03.0319.002; Fri, 20 Jul 2018 06:19:15 +0800 From: "Zhang, Qi Z" To: "Yigit, Ferruh" , "John W. Linville" , "Doherty, Declan" , "Chas Williams" , Gaetan Rivet , "Tetsuya Mukawa" , Santosh Shukla , Jerin Jacob , "Wiles, Keith" , Maxime Coquelin , "Bie, Tiwei" , "Wang, Zhihong" CC: "dev@dpdk.org" , "Yigit, Ferruh" , "stable@dpdk.org" , "Varghese, Vipin" Thread-Topic: [dpdk-dev] [PATCH] drivers/net: fix segfault in secondary process Thread-Index: AQHUH3ezmf8OaJuB2kuTddhdwE69rqSXHBLg Date: Thu, 19 Jul 2018 22:19:15 +0000 Message-ID: <039ED4275CED7440929022BC67E706115325C8FB@SHSMSX103.ccr.corp.intel.com> References: <20180719164556.93162-1-ferruh.yigit@intel.com> In-Reply-To: <20180719164556.93162-1-ferruh.yigit@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTEwOTE2NTktMmNhZS00M2IzLTg1NTAtNzdjYjFjNjJjNTU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYUR5Tk94c0ljR082Q3RKMnFLZlhYS0lQam4wR3ZcL0ZpU1lSUmtnYzF1R3NlS3NabzFHN3dNVFhyTlwvOHVPYnZNIn0= 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] drivers/net: fix segfault in secondary process 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, 19 Jul 2018 22:19:21 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit > Sent: Friday, July 20, 2018 12:46 AM > To: John W. Linville ; Doherty, Declan > ; Chas Williams ; Gaetan Rivet > ; Tetsuya Mukawa ; > Santosh Shukla ; Jerin Jacob > ; Wiles, Keith ; > Maxime Coquelin ; Bie, Tiwei > ; Wang, Zhihong > Cc: dev@dpdk.org; Yigit, Ferruh ; stable@dpdk.org= ; > Varghese, Vipin > Subject: [dpdk-dev] [PATCH] drivers/net: fix segfault in secondary proces= s >=20 > Calling rte_eth_dev_info_get() on secondary process cause a crash because > eth_dev->device is not set properly. >=20 > Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process") > Cc: stable@dpdk.org >=20 > Signed-off-by: Ferruh Yigit Yes, this is the same issue I met when detaching the device from a secondar= y process. The backend device should be assigned on secondary. Reviewed-by: Qi Zhang