[dpdk-stable] [dpdk-dev] [PATCH] drivers/net: fix segfault in secondary process

Stephen Hemminger stephen at networkplumber.org
Thu Jul 19 18:32:00 CEST 2018


On Thu, 19 Jul 2018 17:45:56 +0100
Ferruh Yigit <ferruh.yigit at intel.com> 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 at dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

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.


More information about the stable mailing list