[PATCH] common/mlx5: fix shared MR ranges allocation
Raslan Darawsheh
rasland at nvidia.com
Tue Nov 23 23:38:23 CET 2021
Hi,
> -----Original Message-----
> From: Bing Zhao <bingz at nvidia.com>
> Sent: Tuesday, November 23, 2021 2:49 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Dmitry Kozlyuk
> <dkozlyuk at nvidia.com>
> Subject: [PATCH] common/mlx5: fix shared MR ranges allocation
>
> Memory regions (MRs) were allocated in one chunk of memory with a mempool
> registration object. However, MRs can be reused among different mempool
> registrations.
>
> When the registration that allocated the MRs originally was destroyed, the
> dangling pointers to the MRs could be left in other registrations sharing these
> MRs.
>
> Splitting the memory allocation of registration structure and MRs in this commit
> solves this pointer reference issue.
>
> Fixes: 690b2a88c2f7 ("common/mlx5: add mempool registration facilities")
>
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Reviewed-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list