patch 'app/procinfo: fix module EEPROM dump of multiple ports' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:06:12 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/99a17b185b490b016eecffefc6dc827aa0a58a54

Thanks.

Kevin

---
>From 99a17b185b490b016eecffefc6dc827aa0a58a54 Mon Sep 17 00:00:00 2001
From: Roman Khromenok <roma55592 at yandex.ru>
Date: Thu, 29 Oct 2026 20:20:32 +0200
Subject: [PATCH] app/procinfo: fix module EEPROM dump of multiple ports

[ upstream commit 8b10621b79e2a33ad32944177d4b5ad675f8455d ]

The --show-module-eeprom option stopped at the first port whose
module EEPROM could not be read, so a port without a module, or
a driver without the operation, hid the modules of all the next
ports. Report the error and go on with the next port, with the
port number in the message since several ports can now fail.

The EEPROM was also read into a fixed size buffer with the length
reported by the driver, without checking it. Skip the port if the
length does not fit the buffer.

Fixes: 0084463ea004 ("app/procinfo: dump module EEPROM info")

Signed-off-by: Roman Khromenok <roma55592 at yandex.ru>
---
 app/proc-info/main.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 5925bbb765..2d94a959bc 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1871,7 +1871,13 @@ show_module_eeprom_info(void)
 		ret = rte_eth_dev_get_module_info(i, &module_info);
 		if (ret != 0) {
-			fprintf(stderr, "Module EEPROM information read error: %s\n",
-				strerror(-ret));
-			return;
+			fprintf(stderr, "Port %u module EEPROM information read error: %s\n",
+				i, strerror(-ret));
+			continue;
+		}
+
+		if (module_info.eeprom_len > sizeof(bytes_eeprom)) {
+			fprintf(stderr, "Port %u module EEPROM too long: %u bytes\n",
+				i, module_info.eeprom_len);
+			continue;
 		}
 
@@ -1882,7 +1888,7 @@ show_module_eeprom_info(void)
 		ret = rte_eth_dev_get_module_eeprom(i, &eeprom_info);
 		if (ret != 0) {
-			fprintf(stderr, "Module EEPROM read error: %s\n",
-				strerror(-ret));
-			return;
+			fprintf(stderr, "Port %u module EEPROM read error: %s\n",
+				i, strerror(-ret));
+			continue;
 		}
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:51.794172678 +0000
+++ 0446-app-procinfo-fix-module-EEPROM-dump-of-multiple-port.patch	2026-12-03 12:52:39.338193419 +0000
@@ -1 +1 @@
-From 8b10621b79e2a33ad32944177d4b5ad675f8455d Mon Sep 17 00:00:00 2001
+From 99a17b185b490b016eecffefc6dc827aa0a58a54 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8b10621b79e2a33ad32944177d4b5ad675f8455d ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 9c22fb8f01..d918a0a3c8 100644
+index 5925bbb765..2d94a959bc 100644
@@ -28 +29 @@
-@@ -1870,7 +1870,13 @@ show_module_eeprom_info(void)
+@@ -1871,7 +1871,13 @@ show_module_eeprom_info(void)
@@ -45 +46 @@
-@@ -1881,7 +1887,7 @@ show_module_eeprom_info(void)
+@@ -1882,7 +1888,7 @@ show_module_eeprom_info(void)



More information about the stable mailing list