patch 'bpf: avoid uninitialized data warning' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Oct 27 12:51:26 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/0484739f1586352dbee93b44492c5631d5d70211

Thanks.

Luca Boccassi

---
>From 0484739f1586352dbee93b44492c5631d5d70211 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 27 Aug 2026 14:41:49 -0700
Subject: [PATCH] bpf: avoid uninitialized data warning

[ upstream commit 5c13ad91908ba53e380e8b0f473a6d0183185a11 ]

Coverity complains uninitialized use of structure.

Coverity issue: 504611
Fixes: 17509d474226 ("bpf/validate: fix BPF_ADD of pointer to a scalar")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Marat Khalili <marat.khalili at huawei.com>
---
 lib/bpf/bpf_validate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bpf/bpf_validate.c b/lib/bpf/bpf_validate.c
index 4ceb31dbd04..b218f84e70d 100644
--- a/lib/bpf/bpf_validate.c
+++ b/lib/bpf/bpf_validate.c
@@ -239,7 +239,7 @@ eval_apply_mask(struct bpf_reg_val *rv, uint64_t mask)
 static void
 eval_add(struct bpf_reg_val *rd, const struct bpf_reg_val *rs, uint64_t msk)
 {
-	struct bpf_reg_val rs_buf;
+	struct bpf_reg_val rs_buf = { .v.type = RTE_BPF_ARG_RAW };
 	struct bpf_reg_val rv;
 
 	if (RTE_BPF_ARG_PTR_TYPE(rs->v.type) != 0) {
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-10-27 11:44:01.049627538 +0000
+++ 0192-bpf-avoid-uninitialized-data-warning.patch	2026-10-27 11:43:53.770067372 +0000
@@ -1 +1 @@
-From 5c13ad91908ba53e380e8b0f473a6d0183185a11 Mon Sep 17 00:00:00 2001
+From 0484739f1586352dbee93b44492c5631d5d70211 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5c13ad91908ba53e380e8b0f473a6d0183185a11 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index f9960088a2..4641ef2fc9 100644
+index 4ceb31dbd04..b218f84e70d 100644
@@ -22 +23 @@
-@@ -659,7 +659,7 @@ eval_apply_mask(struct bpf_reg_val *rv, uint64_t mask)
+@@ -239,7 +239,7 @@ eval_apply_mask(struct bpf_reg_val *rv, uint64_t mask)


More information about the stable mailing list