patch 'net/netvsc: fix double-free of primary Rx queue on uninit' has been queued to stable release 24.11.5

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Mar 19 23:02:36 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.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 03/21/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/7dc21f0c95fa26893716053e76374683358626af

Thanks.

Luca Boccassi

---
>From 7dc21f0c95fa26893716053e76374683358626af Mon Sep 17 00:00:00 2001
From: Long Li <longli at microsoft.com>
Date: Tue, 3 Mar 2026 12:54:05 -0800
Subject: [PATCH] net/netvsc: fix double-free of primary Rx queue on uninit

[ upstream commit d2e85dc8144995b595021d08a14de6ee5e0ad72d ]

eth_hn_dev_uninit() calls hn_dev_close() which calls hn_dev_free_queues()
that frees all rx queues including hv->primary via hn_rx_queue_free(rxq,
false). After that, eth_hn_dev_uninit() calls rte_free(hv->primary) again,
resulting in a double-free.

Remove the redundant rte_free(hv->primary) since hn_dev_free_queues()
already handles freeing it.

Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")

Signed-off-by: Long Li <longli at microsoft.com>
---
 drivers/net/netvsc/hn_ethdev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 81daf9bafb..1e4b7c8d8c 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -1431,7 +1431,6 @@ eth_hn_dev_uninit(struct rte_eth_dev *eth_dev)
 	}
 
 	rte_vmbus_chan_close(hv->channels[0]);
-	rte_free(hv->primary);
 	ret = rte_eth_dev_owner_delete(hv->owner.id);
 	if (ret != 0)
 		return ret;
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-03-19 22:00:49.383892695 +0000
+++ 0044-net-netvsc-fix-double-free-of-primary-Rx-queue-on-un.patch	2026-03-19 22:00:47.814359367 +0000
@@ -1 +1 @@
-From d2e85dc8144995b595021d08a14de6ee5e0ad72d Mon Sep 17 00:00:00 2001
+From 7dc21f0c95fa26893716053e76374683358626af Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d2e85dc8144995b595021d08a14de6ee5e0ad72d ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 354217479a..5a5b77aa4c 100644
+index 81daf9bafb..1e4b7c8d8c 100644
@@ -26 +27 @@
-@@ -1486,7 +1486,6 @@ eth_hn_dev_uninit(struct rte_eth_dev *eth_dev)
+@@ -1431,7 +1431,6 @@ eth_hn_dev_uninit(struct rte_eth_dev *eth_dev)


More information about the stable mailing list