Re: [dpdk-dev] [PATCH v7] vhost: fix crash on port deletion

2021-09-14 Thread Maxime Coquelin
On 9/2/21 5:45 PM, Gaoxiang Liu wrote: > The rte_vhost_driver_unregister() and vhost_user_read_cb() > can be called at the same time by 2 threads. > when memory of vsocket is freed in rte_vhost_driver_unregister(), > the invalid memory of vsocket is accessed in vhost_user_read_cb(). > It's a bug

Re: [dpdk-dev] [PATCH v7] vhost: fix crash on port deletion

2021-09-05 Thread Xia, Chenbo
> -Original Message- > From: Gaoxiang Liu > Sent: Thursday, September 2, 2021 11:46 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; liugaoxi...@huawei.com; Gaoxiang Liu > Subject: [PATCH v7] vhost: fix crash on port deletion > > The rte_vhost_driver_unregister() and

Re: [dpdk-dev] [PATCH v7] vhost: fix crash on port deletion

2021-09-05 Thread Xia, Chenbo
Hi, > -Original Message- > From: Gaoxiang Liu > Sent: Thursday, September 2, 2021 11:46 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; liugaoxi...@huawei.com; Gaoxiang Liu > Subject: [PATCH v7] vhost: fix crash on port deletion > > The rte_vhost_driver_unregister(

[dpdk-dev] [PATCH v7] vhost: fix crash on port deletion

2021-09-02 Thread Gaoxiang Liu
The rte_vhost_driver_unregister() and vhost_user_read_cb() can be called at the same time by 2 threads. when memory of vsocket is freed in rte_vhost_driver_unregister(), the invalid memory of vsocket is accessed in vhost_user_read_cb(). It's a bug of both mode for vhost as server or client. E.g.,