From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] drivers/net: fix segfault in secondary process Date: Thu, 19 Jul 2018 09:32:00 -0700 Message-ID: <20180719093200.6095b52c@xeon-e3> References: <20180719164556.93162-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "John W. Linville" , Declan Doherty , Chas Williams , Gaetan Rivet , Tetsuya Mukawa , Santosh Shukla , Jerin Jacob , Keith Wiles , Maxime Coquelin , Tiwei Bie , Zhihong Wang , dev@dpdk.org, stable@dpdk.org, Vipin Varghese To: Ferruh Yigit Return-path: Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 534C2548B for ; Thu, 19 Jul 2018 18:32:04 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id x5-v6so4225266pgp.7 for ; Thu, 19 Jul 2018 09:32:04 -0700 (PDT) In-Reply-To: <20180719164556.93162-1-ferruh.yigit@intel.com> 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 Thu, 19 Jul 2018 17:45:56 +0100 Ferruh Yigit wrote: > Calling rte_eth_dev_info_get() on secondary process cause a crash > because eth_dev->device is not set properly. > > Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process") > Cc: stable@dpdk.org > > Signed-off-by: Ferruh Yigit Good catch. Maybe eth_dev should do this for the device drivers? Better to make device drivers as simple and safe as possible. There seem to be a lot of bugs related to secondary process model. Do we have a test suite for that.