[PATCH] net/mlx5: fix panic for non template age rules flush

Raslan Darawsheh rasland at nvidia.com
Mon Aug 18 08:36:36 CEST 2025


Hi,


On 10/08/2025 9:47 AM, Maayan Kashani wrote:
> When a user creates a non-template rule with both age and counter actions,
> both actions share the same counter.
> If a flow flush occurs, the rule is destroyed and the counter is released.
> However, the age sampling callback may still access the age/counter during
> the free, leading to a panic on assertion in debug mode.
> 
> This creates a race condition: one thread samples the age while another
> releases the age/counter info used by the age action.
> The fix is to ignore this case where the age is
> free and counter not freed yet,
> or the counter was freed during the age check.
> 
> Fixes: 04a4de756e14 ("net/mlx5: support flow age action with HWS")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the dev mailing list