Re: [PATCH] net/vhost: fix access to freed memory

2022-05-05 Thread Maxime Coquelin
On 3/11/22 17:35, Yuan Wang wrote: This patch fixes heap-use-after-free reported by ASan. It is possible for the rte_vhost_dequeue_burst() to access the vq is freed when numa_realloc() gets called in the device running state. The control plane will set the vq->access_lock to protected the vq

Re: [PATCH] net/vhost: fix access to freed memory

2022-05-05 Thread Maxime Coquelin
Hi Yuan, On 3/11/22 17:35, Yuan Wang wrote: This patch fixes heap-use-after-free reported by ASan. It is possible for the rte_vhost_dequeue_burst() to access the vq is freed when numa_realloc() gets called in the device running state. The control plane will set the vq->access_lock to protected

RE: [PATCH] net/vhost: fix access to freed memory

2022-03-14 Thread Ling, WeiX
> -Original Message- > From: Wang, YuanX > Sent: Saturday, March 12, 2022 12:35 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Ling, WeiX > ; Wang, YuanX > Subject: [PATCH] net/vhost: fix access to freed memory > > This patc

[PATCH] net/vhost: fix access to freed memory

2022-03-11 Thread Yuan Wang
This patch fixes heap-use-after-free reported by ASan. It is possible for the rte_vhost_dequeue_burst() to access the vq is freed when numa_realloc() gets called in the device running state. The control plane will set the vq->access_lock to protected the vq from the data plane. Unfortunately the l