[PATCH v2 1/2] vhost: fix memory leak in Virtio Tx split path

Maxime Coquelin maxime.coquelin at redhat.com
Tue Feb 6 15:59:08 CET 2024



On 1/31/24 20:53, Maxime Coquelin wrote:
> When vIOMMU is enabled and Virtio device is bound to kernel
> driver in guest, rte_vhost_dequeue_burst() will often return
> early because of IOTLB misses.
> 
> This patch fixes a mbuf leak occurring in this case.
> 
> Fixes: 242695f6122a ("vhost: allocate and free packets in bulk in Tx split")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
> 
> Changes in v2:
> ==============
> - Fix descriptors leak (David)
> - Rebased on top of next-virtio
> 
> ---
>   lib/vhost/virtio_net.c | 24 ++++++------------------
>   1 file changed, 6 insertions(+), 18 deletions(-)
> 

Applied to next-virtio tree.

Thanks,
Maxime



More information about the stable mailing list