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
> -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
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
3 matches
Mail list logo