[dpdk-dev] [PATCH] net/mlx5: fix mbufs double free in vectorized MPRQ

Raslan Darawsheh rasland at nvidia.com
Tue Dec 15 13:10:24 CET 2020


Hi,

> -----Original Message-----
> From: Alexander Kozyrev <akozyrev at nvidia.com>
> Sent: Thursday, December 10, 2020 5:14 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Slava
> Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad <matan at nvidia.com>
> Subject: [PATCH] net/mlx5: fix mbufs double free in vectorized MPRQ
> 
> Wrong index is used to find mbufs belonging to an application in
> the rxq_free_elts_sprq() function in the case of vectorized MPRQ.
> elts_ci points to the last allocated mbuf in this case, not rq_ci.
> Use this field to avoid double free of mbuf and segmentation fault.
> 
> Fixes: 0f20acbf5ed ("net/mlx5: implement vectorized MPRQ burst")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> ---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list