[PATCH] net/mlx5: fix invalid memory access in port closing
Raslan Darawsheh
rasland at nvidia.com
Sun Nov 20 16:33:27 CET 2022
Hi,
> -----Original Message-----
> From: Michael Baum <michaelba at nvidia.com>
> Sent: Thursday, November 17, 2022 5:28 PM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>; Michael
> Baum <michaelba at nvidia.com>
> Subject: [PATCH] net/mlx5: fix invalid memory access in port closing
>
> The shared IB device (sh) has per port data updated in port creation.
> In port closing this port data is updated even when the SH still exist.
>
> However, this updating is happened after SH has been released and for last
> port it actually accesses to freed memory.
>
> This patch updates the port data before SH releasing.
>
> Fixes: 13c5c093905c ("net/mlx5: fix port event cleaning order")
> Cc: michaelba at nvidia.com
>
> Signed-off-by: Michael Baum <michaelba 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 dev
mailing list