patch 'net/gve: clear out shared memory region for statistics' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Jul 13 19:17:46 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/15/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/39058ff8b70c524822a4ee050cbdd5b1a570670e
Thanks.
Luca Boccassi
---
>From 39058ff8b70c524822a4ee050cbdd5b1a570670e 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 ff1940abd3..3596a0236d 100644
--- a/drivers/net/gve/gve_ethdev.c
+++ b/drivers/net/gve/gve_ethdev.c
@@ -291,6 +291,8 @@ gve_alloc_stats_report(struct gve_priv *priv,
if (!priv->stats_report_mem)
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) +
(GVE_RX_STATS_REPORT_NUM * nb_rx_queues);
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-13 18:17:05.827747088 +0100
+++ 0006-net-gve-clear-out-shared-memory-region-for-statistic.patch 2026-07-13 18:17:05.574282834 +0100
@@ -1 +1 @@
-From 316cfac2c0c23d5a54996d8a9a5392c4e4b9c8bb Mon Sep 17 00:00:00 2001
+From 39058ff8b70c524822a4ee050cbdd5b1a570670e 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 ff1940abd3..3596a0236d 100644
@@ -25 +26 @@
-@@ -306,6 +306,8 @@ gve_alloc_stats_report(struct gve_priv *priv,
+@@ -291,6 +291,8 @@ gve_alloc_stats_report(struct gve_priv *priv,
More information about the stable
mailing list