** Description changed:
- On linux-bluefield 6.8 (noble), adding an IPv6 route with "onlink" fails when
the
- gateway resolves through a different device:
+ SRU Justification:
+
+ [IMPACT]
+ On BlueField DPUs running Ubuntu 24.04 (linux-bluefield 6.8), the kernel
+ rejects an IPv6 route whose gateway is given with the "onlink" flag on a
+ device other than the one the gateway resolves through:
+
+ # ip -6 route add 2001:db8:10::/64 nexthop via 2001:db8:1::2 dev dummy2
onlink
+ Error: Nexthop has invalid gateway or device mismatch.
+
+ IPv4 accepts the same configuration, and so does upstream since v7.0.
+
+ NVIDIA HBN (Host Based Networking, FRR based) on BlueField-2/3 depends on
+ this for EVPN with an IPv6 underlay. Zebra programs the overlay routes with
+ the remote VTEP as an onlink gateway on the VXLAN device. The VXLAN device
+ is in the default VRF, while the remote VTEP is reachable through an
+ underlay uplink. The kernel rejects the nexthop (RTM_NEWNEXTHOP fails with
+ -EINVAL), FRR keeps the overlay routes in the rejected state and they are
+ never installed in the kernel FIB. Overlay traffic over an IPv6 underlay
+ therefore does not work.
+
+ [FIX]
+ Clean cherry-picks of the upstream series (v7.0-rc1):
+ - 0a3419f4ba40 selftests: fib-onlink: Remove "wrong nexthop device" IPv6 tests
+ - b853b94e8482 ipv6: Allow for nexthop device mismatch with "onlink"
+ - f8f9ee9d8b2e selftests: fib-onlink: Add test cases for nexthop device
mismatch
+
+ The kernel change is b853b94e8482. The first selftest patch removes the
+ fib-onlink-tests.sh IPv6 cases that expect the old rejection, which would
+ otherwise fail with the fix. The second one adds test cases for the new
+ behaviour.
+
+ [TEST CASE]
+ Compile tested on linux-bluefield-6.8 master-next
(Ubuntu-bluefield-6.8.0-1037.42).
+
+ Functional test on BlueField-3 (Ubuntu 24.04 BFB, 6.8.0-1037 based
+ bluefield kernel with the fix):
ip netns add t
ip -n t link add dummy1 up type dummy
ip -n t -6 addr add 2001:db8:1::1/64 dev dummy1
ip -n t link add dummy2 up type dummy
ip -n t -6 route add 2001:db8:10::/64 nexthop via 2001:db8:1::2 dev dummy2
onlink
- -> Error: Nexthop has invalid gateway or device mismatch.
+ ip netns del t
+
+ Without the fix the route add fails with "Error: Nexthop has invalid
+ gateway or device mismatch.". With the fix the route is added. The HBN
+ team also verified the fix on this kernel in their EVPN setup.
+
+ [Regression Potential]
+ Low. The kernel change only relaxes the validation in
+ ip6_route_check_nh_onlink(): an IPv6 route with "onlink" whose gateway
+ resolves through a different device is now accepted instead of rejected,
+ matching IPv4 and upstream. Routes added without "onlink" are not affected.
+ The other two patches only change the selftest script.
+
+
+ [ Initial information ]
+
+ On linux-bluefield 6.8 (noble), adding an IPv6 route with "onlink" fails when
the
+ gateway resolves through a different device:
+
+ ip netns add t
+ ip -n t link add dummy1 up type dummy
+ ip -n t -6 addr add 2001:db8:1::1/64 dev dummy1
+ ip -n t link add dummy2 up type dummy
+ ip -n t -6 route add 2001:db8:10::/64 nexthop via 2001:db8:1::2 dev dummy2
onlink
+ -> Error: Nexthop has invalid gateway or device mismatch.
IPv4 accepts the same configuration. This breaks NVIDIA HBN (FRR) EVPN with
an IPv6
underlay on BlueField-2/3. Fixed upstream in v7.0 by b853b94e8482 ("ipv6:
Allow for
nexthop device mismatch with "onlink""). SRU patches to follow on
kernel-team@.
** Also affects: linux-bluefield (Ubuntu Noble)
Importance: Undecided
Status: New
** Changed in: linux-bluefield (Ubuntu Noble)
Assignee: (unassigned) => Alessio Faina (alessiofaina)
** Changed in: linux-bluefield (Ubuntu)
Status: New => Invalid
** Changed in: linux-bluefield (Ubuntu Noble)
Status: New => In Progress
** Changed in: linux-bluefield (Ubuntu Noble)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178528
Title:
IPv6 routes with "onlink" are rejected on nexthop device mismatch
(breaks HBN EVPN over IPv6 underlay)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2178528/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs