[dpdk-stable] [dpdk-dev] [PATCH] net/mlx5: fix validation of hash Rx queue pointer

Raslan Darawsheh rasland at nvidia.com
Thu Feb 4 17:41:18 CET 2021


Hi,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dekel Peled
> Sent: Wednesday, February 3, 2021 12:09 PM
> To: Matan Azrad <matan at nvidia.com>; Shahaf Shuler
> <shahafs at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix validation of hash Rx queue
> pointer
> 
> Implementation of mlx5_hrxq_get() tries to get pointer to a hrxq
> object, by reusing an existing hrxq, or creating a new one.
> There is no check of the obtained pointer, so using it might result
> in error.
> 
> This patch adds check of the pointer before using it, and return 0
> if the pointer is NULL to indicate error.
> 
> Fixes: e1592b6c4dea ("net/mlx5: make Rx queue thread safe")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dekel Peled <dekelp 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