[PATCH v1] net/mlx5: fix secondary process query stats segfault

Raslan Darawsheh rasland at nvidia.com
Mon Jan 29 14:21:20 CET 2024


Hi,
> -----Original Message-----
> From: Rongwei Liu <rongweil at nvidia.com>
> Sent: Monday, January 22, 2024 9:44 AM
> To: dev at dpdk.org; Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>; Suanming Mou
> <suanmingm at nvidia.com>; NBU-Contact-Thomas Monjalon (EXTERNAL)
> <thomas at monjalon.net>
> Cc: stable at dpdk.org; Anatoly Burakov <anatoly.burakov at intel.com>
> Subject: [PATCH v1] net/mlx5: fix secondary process query stats segfault
> 
> The "outer_of_buffer" counter is owned by the primary process devx object
> and it is pointer by pointer in mlx5_priv structure. Actually, there are 4 levels'
> pointers in this piece of code.
> 
> The secondary process can't access this part directly since it belongs to another
> process' heap.
[Fixed] typo = process' => process's 
> 
> Return ENOTSUP as workaround.
> 
> Signed-off-by: Rongwei Liu <rongweil at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> Fixes: 750e48c7d ("common/mlx5: add DevX commands for queue counters")
> Cc: matan at nvidia.com
> Cc: stable at dpdk.org[
[Fixed] fixes tag and CC should be before signed-off by tag.

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the stable mailing list