patch 'net/memif: unregister callback on error in listener handler' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 13:59:01 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/826b31c9e66ebda434d8e18a263fcc2dc2676324

Thanks.

Kevin

---
>From 826b31c9e66ebda434d8e18a263fcc2dc2676324 Mon Sep 17 00:00:00 2001
From: Dmitriy Matveichev <matveichev.dmitriy at gmail.com>
Date: Thu, 6 Aug 2026 17:03:33 +0300
Subject: [PATCH] net/memif: unregister callback on error in listener handler

[ upstream commit b8b5fab571e2b902bb40529b8c2acf34c350e845 ]

Fix the crash if a memif client disconnects before a server says hello

Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle")

Signed-off-by: Dmitriy Matveichev <matveichev.dmitriy at gmail.com>
---
 .mailmap                         |  1 +
 drivers/net/memif/memif_socket.c | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.mailmap b/.mailmap
index 203e659f57..901342ab49 100644
--- a/.mailmap
+++ b/.mailmap
@@ -407,4 +407,5 @@ Diogo Behrens <diogo.behrens at huawei.com>
 Dirk-Holger Lenz <dirk.lenz at ng4t.com>
 Dmitri Epshtein <dima at marvell.com>
+Dmitriy Matveichev <matveichev.dmitriy at gmail.com>
 Dmitriy Yakovlev <bombermag at gmail.com>
 Dmitry Eremin-Solenikov <dmitry.ereminsolenikov at linaro.org>
diff --git a/drivers/net/memif/memif_socket.c b/drivers/net/memif/memif_socket.c
index 649f8d0e61..898ad75fa6 100644
--- a/drivers/net/memif/memif_socket.c
+++ b/drivers/net/memif/memif_socket.c
@@ -879,12 +879,14 @@ memif_listener_handler(void *arg)
 
  error:
-	if (sockfd >= 0) {
-		close(sockfd);
-		sockfd = -1;
-	}
 	if (cc != NULL) {
+		rte_intr_callback_unregister(cc->intr_handle, memif_intr_handler,
+					 cc);
 		rte_intr_instance_free(cc->intr_handle);
 		rte_free(cc);
 	}
+	if (sockfd >= 0) {
+		close(sockfd);
+		sockfd = -1;
+	}
 }
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:39.785277259 +0000
+++ 0015-net-memif-unregister-callback-on-error-in-listener-h.patch	2026-12-03 12:52:39.025192221 +0000
@@ -1 +1 @@
-From b8b5fab571e2b902bb40529b8c2acf34c350e845 Mon Sep 17 00:00:00 2001
+From 826b31c9e66ebda434d8e18a263fcc2dc2676324 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b8b5fab571e2b902bb40529b8c2acf34c350e845 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index cc79a026e7..194ca853b9 100644
+index 203e659f57..901342ab49 100644
@@ -21 +22 @@
-@@ -412,4 +412,5 @@ Diogo Behrens <diogo.behrens at huawei.com>
+@@ -407,4 +407,5 @@ Diogo Behrens <diogo.behrens at huawei.com>



More information about the stable mailing list