[PATCH] net/mlx5: fix destroying empty matchers list

Raslan Darawsheh rasland at nvidia.com
Wed Mar 2 11:20:07 CET 2022


Hi,

> -----Original Message-----
> From: Adham Masarwah <adham at nvidia.com>
> Sent: Wednesday, February 23, 2022 11:32 AM
> To: dev at dpdk.org
> Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>;
> Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Tal Shnaiderman <talshn at nvidia.com>; Tamer
> Hleihel <tamerh at nvidia.com>; erfrimod at microsoft.com; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix destroying empty matchers list
> 
> The table remove callback function is trying to destroy the
> matchers list associated with table entries without checking
> if the list is valid, which causes nullptr dereference.
> Fixed by validating the matchers list before destroying it.
> 
> Issue can be reproduced with testpmd on Windows, when you run:
> port close all
> 
> Fixes: 1872635570be ("net/mlx5: make matcher list thread safe")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Adham Masarwah <adham 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