patch 'fib6: fix full table overwrite on address wraparound' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:52:32 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 11/18/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/3386eca6ccd4b7bb602c83ec9d8d8465be01eff9

Thanks.

Luca Boccassi

---
>From 3386eca6ccd4b7bb602c83ec9d8d8465be01eff9 Mon Sep 17 00:00:00 2001
From: Robert Sanford <rsanford at akamai.com>
Date: Tue, 27 Oct 2026 10:54:03 -0400
Subject: [PATCH] fib6: fix full table overwrite on address wraparound

[ upstream commit 3add793a84820f57621f48984bb38567e748a577 ]

When a prefix whose range ends at the top of the address space
(ffff:ffff:...:ffff) is added, deleted, or has its next hop changed,
modify_dp() walks the more-specific routes under it and installs the
next hop into the gaps. If the last of those routes starts exactly at
the current left edge and ends at the top of the address space, the
equal-edges branch advances ledge past it with get_nxt_net(), and
ledge wraps to ::. That branch has no wraparound check, so the loop
continues. With no more routes, the final branch computes redge,
which also wraps to ::. Its exception for an unspecified ledge, which
exists for a default route added as the first route, lets the call
through, and install_to_dp() with both edges at :: overwrites the
entire table. The call returns 0, so the corruption is silent.

For example, with ::/0, ::/1 and 8000::/1 installed, deleting ::/0
makes every lookup miss. With 2001:db8::/32 and two /121 routes at
ffff:...:ff00 and ffff:...:ff80 installed, adding their covering /120
makes every address, including 2001:db8::1, return the /120's next
hop.

The same commit added a wraparound check to the other branch only.
Add the same check to the equal-edges branch.

Fixes: fd66617c5774 ("fib6: fix adding default route as first route")

Signed-off-by: Robert Sanford <rsanford at akamai.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
 lib/fib/trie.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/fib/trie.c b/lib/fib/trie.c
index f48e22f265..a37653792b 100644
--- a/lib/fib/trie.c
+++ b/lib/fib/trie.c
@@ -492,6 +492,12 @@ modify_dp(struct rte_trie_tbl *dp, struct rte_rib6 *rib,
 			rte_rib6_get_ip(tmp, &redge);
 			if (rte_ipv6_addr_eq(&ledge, &redge)) {
 				get_nxt_net(&ledge, tmp_depth);
+				/*
+				 * we got to the end of address space
+				 * and wrapped around
+				 */
+				if (rte_ipv6_addr_is_unspec(&ledge))
+					break;
 				continue;
 			}
 			ret = install_to_dp(dp, &ledge, &redge, next_hop);
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:19.568162429 +0000
+++ 0078-fib6-fix-full-table-overwrite-on-address-wraparound.patch	2026-11-16 22:52:16.540234862 +0000
@@ -1 +1 @@
-From 3add793a84820f57621f48984bb38567e748a577 Mon Sep 17 00:00:00 2001
+From 3386eca6ccd4b7bb602c83ec9d8d8465be01eff9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3add793a84820f57621f48984bb38567e748a577 ]
+
@@ -29 +30,0 @@
-Cc: stable at dpdk.org
@@ -38 +39 @@
-index 4346789972..871bb923ab 100644
+index f48e22f265..a37653792b 100644
@@ -41 +42 @@
-@@ -534,6 +534,12 @@ modify_dp(struct rte_trie_tbl *dp, struct rte_rib6 *rib,
+@@ -492,6 +492,12 @@ modify_dp(struct rte_trie_tbl *dp, struct rte_rib6 *rib,


More information about the stable mailing list