patch 'net/memif: unregister callback on error in listener handler' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Tue Oct 27 12:48:27 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 10/29/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/aa425846a32230028c2a61853756303582a3347a
Thanks.
Luca Boccassi
---
>From aa425846a32230028c2a61853756303582a3347a 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 25f3b9a88fc..9c407d9ff2e 100644
--- a/.mailmap
+++ b/.mailmap
@@ -389,6 +389,7 @@ Ding Zhi <zhi.ding at 6wind.com>
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>
Dmitry Kozlyuk <dmitry.kozliuk at gmail.com> <dkozlyuk at nvidia.com>
diff --git a/drivers/net/memif/memif_socket.c b/drivers/net/memif/memif_socket.c
index 649f8d0e618..898ad75fa6f 100644
--- a/drivers/net/memif/memif_socket.c
+++ b/drivers/net/memif/memif_socket.c
@@ -878,14 +878,16 @@ memif_listener_handler(void *arg)
return;
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;
+ }
}
static struct memif_socket *
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-10-27 11:43:54.278538884 +0000
+++ 0013-net-memif-unregister-callback-on-error-in-listener-h.patch 2026-10-27 11:43:53.502059077 +0000
@@ -1 +1 @@
-From b8b5fab571e2b902bb40529b8c2acf34c350e845 Mon Sep 17 00:00:00 2001
+From aa425846a32230028c2a61853756303582a3347a 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 25f3b9a88fc..9c407d9ff2e 100644
@@ -21 +22 @@
-@@ -411,6 +411,7 @@ Ding Zhi <zhi.ding at 6wind.com>
+@@ -389,6 +389,7 @@ Ding Zhi <zhi.ding at 6wind.com>
@@ -30 +31 @@
-index 649f8d0e61..898ad75fa6 100644
+index 649f8d0e618..898ad75fa6f 100644
More information about the stable
mailing list