Re: [dpdk-dev] [PATCH v2] examples/vhost: fix use-after-free on drain vhost

2021-10-21 Thread Maxime Coquelin
On 9/24/21 19:23, Wenwu Ma wrote: When a vdev is removed in destroy_device function, the corresponding vhost TX buffer will also be freed, but the vhost TX buffer may still be used in the drain_vhost function, which will cause an error of heap-use-after-free. Therefore, before accessing vhost

Re: [dpdk-dev] [PATCH v2] examples/vhost: fix use-after-free on drain vhost

2021-09-29 Thread Xia, Chenbo
> -Original Message- > From: Ma, WenwuX > Sent: Saturday, September 25, 2021 1:23 AM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; Jiang, > Cheng1 ; Hu, Jiayu ; Yang, YvonneX > ; Ma, WenwuX ; sta...@dpdk.org > Subject: [PATCH v2] examples/vhost: fix use-after-free on d

[dpdk-dev] [PATCH v2] examples/vhost: fix use-after-free on drain vhost

2021-09-23 Thread Wenwu Ma
When a vdev is removed in destroy_device function, the corresponding vhost TX buffer will also be freed, but the vhost TX buffer may still be used in the drain_vhost function, which will cause an error of heap-use-after-free. Therefore, before accessing vhost TX buffer, we need to check whether the