patch 'vdpa/mlx5: fix memory leak with no enabled Rx queue' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:02 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/9733e7937687c8e04705d6ce9f26eb041a70f79a
Thanks.
Kevin
---
>From 9733e7937687c8e04705d6ce9f26eb041a70f79a Mon Sep 17 00:00:00 2001
From: Maayan Kashani <mkashani at nvidia.com>
Date: Sun, 25 Oct 2026 10:16:39 +0200
Subject: [PATCH] vdpa/mlx5: fix memory leak with no enabled Rx queue
[ upstream commit 5114c0ea672f39b30f32808c307573e5e9755bb4 ]
mlx5_vdpa_rqt_prepare() allocates RQT attributes with rte_zmalloc() but
returns without freeing them when no enabled receive queue is found
(k == 0). Every steering update that hits this path leaks the
allocation.
Free attr before returning on the no-enabled-RQ path.
Fixes: 9f09b1ca15c5 ("vdpa/mlx5: recreate a virtq becoming enabled")
Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
index b1bca7f0f7..5dd9ca40eb 100644
--- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
+++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
@@ -86,7 +86,9 @@ mlx5_vdpa_rqt_prepare(struct mlx5_vdpa_priv *priv, bool is_dummy)
}
}
- if (k == 0)
+ if (k == 0) {
/* No enabled RQ to configure for RSS. */
+ rte_free(attr);
return 0;
+ }
num = (int)k;
for (j = 0; k != rqt_n; ++k, ++j)
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.820521402 +0000
+++ 0376-vdpa-mlx5-fix-memory-leak-with-no-enabled-Rx-queue.patch 2026-12-03 12:52:39.286450831 +0000
@@ -1 +1 @@
-From 5114c0ea672f39b30f32808c307573e5e9755bb4 Mon Sep 17 00:00:00 2001
+From 9733e7937687c8e04705d6ce9f26eb041a70f79a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5114c0ea672f39b30f32808c307573e5e9755bb4 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list