[dpdk-stable] [dpdk-dev] [PATCH] net/mlx5: fix RxQ resource cleanup
Raslan Darawsheh
rasland at nvidia.com
Wed Oct 20 21:35:54 CEST 2021
Hi,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dmitry Kozlyuk
> Sent: Monday, October 18, 2021 8:25 PM
> To: dev at dpdk.org
> Cc: Michael Baum <michaelba at oss.nvidia.com>; stable at dpdk.org; Matan
> Azrad <matan at oss.nvidia.com>; Viacheslav Ovsiienko
> <viacheslavo at oss.nvidia.com>
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix RxQ resource cleanup
>
> mlx5_rxq_start() allocates rxq_ctrl->obj and frees it on failure, but did not
> set it to NULL. Later mlx5_rxq_release() could not recognize this object is
> already freed and attempted to release its resources, resulting in a crash:
>
> Configuring Port 0 (socket 0)
> mlx5_common: Failed to create RQ using DevX
> mlx5_common: Can't create DevX RQ object.
> mlx5_net: Port 0 Rx queue 0 RQ creation failure.
> Segmentation fault
>
> Set rxq_ctrl->obj to NULL after it is freed to skip resource release.
>
> Fixes: 1260a87b2889 ("net/mlx5: share Rx control code")
> Cc: Michael Baum <michaelba at nvidia.com>
> Cc: stable at dpdk.org
>
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the stable
mailing list