patch 'vdpa/mlx5: fix memory leak with no enabled Rx queue' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:29 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/b21bfa09d156431a618addc32344fd51bd8ea124
Thanks.
Luca Boccassi
---
>From b21bfa09d156431a618addc32344fd51bd8ea124 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
@@ -85,9 +85,11 @@ mlx5_vdpa_rqt_prepare(struct mlx5_vdpa_priv *priv, bool is_dummy)
k++;
}
}
- 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)
attr->rq_list[k] = attr->rq_list[j];
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:17.124497076 +0000
+++ 0015-vdpa-mlx5-fix-memory-leak-with-no-enabled-Rx-queue.patch 2026-11-16 22:52:16.428231895 +0000
@@ -1 +1 @@
-From 5114c0ea672f39b30f32808c307573e5e9755bb4 Mon Sep 17 00:00:00 2001
+From b21bfa09d156431a618addc32344fd51bd8ea124 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