[dpdk-dev] [PATCH] net/virtio-user: fix crash when detaching device

Yuanhan Liu yliu at fridaylinux.org
Tue Jul 4 11:25:17 CEST 2017


On Fri, Jun 23, 2017 at 08:41:37AM -0400, Allain Legacy wrote:
> The rte_eth_dev.data pointer is set to a reference to a static table.
> Attempting to rte_free() it leads to a panic.  For example, the
> following commands result in a panic if run in testpmd
> 
>   testpmd> port attach virtio_user0,path=/dev/vhost-net,iface=test0
>   testpmd> port stop 2
>   testpmd> port close 2
>   testpmd> port detach 2
> 
> Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device")

Note that it's prefered (and asked) to add stable tag inside the commit log.

    Cc: stable at dpdk.org

Applied to dpdk-next-virtio, with above tag added.

Thanks.

	--yliu


More information about the dev mailing list