patch 'net/gve: clear out shared memory region for statistics' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Thu Jul 30 11:16:21 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/04/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/43578d49f489015109ab97d1f011499c8f042435
Thanks.
Kevin
---
>From 43578d49f489015109ab97d1f011499c8f042435 Mon Sep 17 00:00:00 2001
From: Joshua Washington <joshwash at google.com>
Date: Wed, 8 Jul 2026 21:07:29 -0700
Subject: [PATCH] net/gve: clear out shared memory region for statistics
[ upstream commit 316cfac2c0c23d5a54996d8a9a5392c4e4b9c8bb ]
The stats report memzone is allocated from hugepage memory which could
possibly have had sensitive data from a previous DPDK invocation.
Clear out the buffer before sharing the memory region with the virtual
device to protect guest memory.
Fixes: 458b53dec01e ("net/gve: enable imissed stats for GQ format")
Signed-off-by: Joshua Washington <joshwash at google.com>
Reviewed-by: Mark Blasko <blasko at google.com>
---
drivers/net/gve/gve_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/gve/gve_ethdev.c b/drivers/net/gve/gve_ethdev.c
index 6341d89f39..67616c93c5 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -293,4 +293,6 @@ gve_alloc_stats_report(struct gve_priv *priv,
return -ENOMEM;
+ memset(priv->stats_report_mem->addr, 0, priv->stats_report_mem->len);
+
/* offset by skipping stats written by gve. */
priv->stats_start_idx = (GVE_TX_STATS_REPORT_NUM * nb_tx_queues) +
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-30 10:16:02.723434273 +0100
+++ 0042-net-gve-clear-out-shared-memory-region-for-statistic.patch 2026-07-30 10:16:01.482576606 +0100
@@ -1 +1 @@
-From 316cfac2c0c23d5a54996d8a9a5392c4e4b9c8bb Mon Sep 17 00:00:00 2001
+From 43578d49f489015109ab97d1f011499c8f042435 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 316cfac2c0c23d5a54996d8a9a5392c4e4b9c8bb ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 0b02dcb3ad..f73784a109 100644
+index 6341d89f39..67616c93c5 100644
@@ -25 +26 @@
-@@ -307,4 +307,6 @@ gve_alloc_stats_report(struct gve_priv *priv,
+@@ -293,4 +293,6 @@ gve_alloc_stats_report(struct gve_priv *priv,
More information about the stable
mailing list