public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH frr 0/2] Backport FRR EVPN local RT2 leaking fixes
@ 2026-05-15  9:14 Gabriel Goller
  2026-05-15  9:14 ` [PATCH frr 1/2] frr: backport the "Memory leak problems." (#21844) upstream PR Gabriel Goller
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gabriel Goller @ 2026-05-15  9:14 UTC (permalink / raw)
  To: pve-devel

Since packaging 10.6.1, we also pull in the EVPN local RT2 leaking patches
(which are applied on upstream master).

The RT2 route leaking PR seems to have some race-condition-related problems,
namely a crash at bgp router shutdown and one case in which the rt2 route is not
leaked (see the last comment at #20005 [1]).

I was not able to reproduce both of these issues, but they seem to be fixed in
the upstream CI with #21844 [2], which solves multiple memory-related issues in
multiple dameons.

In order to be on the safe side, pull these in.
The backporting was a bit of a struggle, because frr-10.6.1..master now also
contains the new BGP-LS address-family (again, after it was reverted out of 10.5
:)) which changes a lot of core bgp structures.

[1]: https://github.com/FRRouting/frr/pull/20005
[2]: https://github.com/FRRouting/frr/pull/21844


frr:

Gabriel Goller (2):
  frr: backport the "Memory leak problems." (#21844) upstream PR
  bump to version 10.6.1-1+pve2

 debian/changelog                              |   6 +
 debian/patches/series                         |  20 +
 ...nup-complaint-about-unneeded-destroy.patch |  77 ++
 ...p-termination-cleanup-of-memory-leak.patch |  47 +
 .../0007-lib-ferr-memory-leaked.patch         |  48 +
 ...fpm_listener-has-signal-handlers-now.patch |  55 ++
 ...g-file-isisd.log-from-all-isis-tests.patch | 883 ++++++++++++++++++
 ...-tests-Tell-fpm_listener-to-shutdown.patch |  52 ++
 ...sd-Clean-up-and-memory-leaks-in-isis.patch | 324 +++++++
 ...gpd-Cleanup-memory-leaks-on-shutdown.patch | 618 ++++++++++++
 ...ipd-Cleanup-memory-leaks-on-shutdown.patch |  58 ++
 ...-termination-cleanup-of-memory-leaks.patch | 126 +++
 ...eanup-nhrpd-termination-memory-leaks.patch | 105 +++
 ...rpd-memory-leaks-on-shutdown-cleanup.patch |  80 ++
 .../0017-ospfd-memory-leaks-on-shutdown.patch |  38 +
 ...ry-leaks-in-shutdown-in-affinitymaps.patch |  32 +
 ...bra-cleanup-memory-leaks-on-shutdown.patch | 175 ++++
 ...-ldpd-Fixup-memory-leaks-on-shutdown.patch | 207 ++++
 .../0021-Cleanup-snmp-memory-leaks.patch      | 121 +++
 ...cleanup-of-leaked-memory-on-shutdown.patch |  41 +
 ...opotest-fail-if-a-memory-leak-is-det.patch | 126 +++
 ...hash_clean_and_free-remove-hash_free.patch | 480 ++++++++++
 22 files changed, 3719 insertions(+)
 create mode 100644 debian/patches/upstream/0005-pim6d-cleanup-complaint-about-unneeded-destroy.patch
 create mode 100644 debian/patches/upstream/0006-lib-nexthop-group-termination-cleanup-of-memory-leak.patch
 create mode 100644 debian/patches/upstream/0007-lib-ferr-memory-leaked.patch
 create mode 100644 debian/patches/upstream/0008-zebra-fpm_listener-has-signal-handlers-now.patch
 create mode 100644 debian/patches/upstream/0009-tests-Remove-log-file-isisd.log-from-all-isis-tests.patch
 create mode 100644 debian/patches/upstream/0010-tests-Tell-fpm_listener-to-shutdown.patch
 create mode 100644 debian/patches/upstream/0011-isisd-Clean-up-and-memory-leaks-in-isis.patch
 create mode 100644 debian/patches/upstream/0012-bgpd-Cleanup-memory-leaks-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0013-ripd-Cleanup-memory-leaks-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0014-pbrd-termination-cleanup-of-memory-leaks.patch
 create mode 100644 debian/patches/upstream/0015-nhrpd-Cleanup-nhrpd-termination-memory-leaks.patch
 create mode 100644 debian/patches/upstream/0016-sharpd-memory-leaks-on-shutdown-cleanup.patch
 create mode 100644 debian/patches/upstream/0017-ospfd-memory-leaks-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0018-lib-Cleanup-memory-leaks-in-shutdown-in-affinitymaps.patch
 create mode 100644 debian/patches/upstream/0019-zebra-cleanup-memory-leaks-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0020-ldpd-Fixup-memory-leaks-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0021-Cleanup-snmp-memory-leaks.patch
 create mode 100644 debian/patches/upstream/0022-pimd-cleanup-of-leaked-memory-on-shutdown.patch
 create mode 100644 debian/patches/upstream/0023-tests-make-the-topotest-fail-if-a-memory-leak-is-det.patch
 create mode 100644 debian/patches/upstream/0024-Use-hash_clean_and_free-remove-hash_free.patch


Summary over all repositories:
  22 files changed, 3719 insertions(+), 0 deletions(-)

-- 
Generated by murpp 0.11.0




^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH frr 0/2] Fix leaked EVPN routes having wrong nexthop on IPv4 via IPv6 routes
@ 2026-05-15 15:23 Gabriel Goller
  2026-05-15 15:23 ` [PATCH frr 2/2] bump to version 10.6.1-1+pve2 Gabriel Goller
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Goller @ 2026-05-15 15:23 UTC (permalink / raw)
  To: pve-devel

When we have a EVPN fabric with IPv6 VTEPs and leak them into the default
routing table (or any other VRF) (via exit-nodes in our case) the nexthop is
wrong. The nexthop is correct in the vrf (e.g. `ip route show vrf vrf_evpn`) but
the import-vrf does not correctly check the BGP MP properties for the IPv6
nexthop and inserts a invalid (0.0.0.0) IPv4 nexthop. The BGP MP properties are
not checked because a legacy bgp flag is set (BGP_ATTR_NEXT_HOP), which
circumvents the BGP MP check.

Fix this by not setting this flag when a IPv6 nexthop is used. Backport an
upstream commit and make another small change on top of it so that this also
works with EVPN routes and not only general BGP MP.

Thanks @HannesL for the quick testing.

@Thomas you can also cherry pick the patches from the other frr series and do a
single bump, or we can apply this patch as-is and think over other series.


frr:

Gabriel Goller (2):
  frr: backport #21166 and #21958, fixing EVPN IPv4 routes with IPv6
    nexhtop
  bump to version 10.6.1-1+pve2

 debian/changelog                              |   6 +
 debian/patches/series                         |   2 +
 ...R_NEXT_HOP-flag-handling-in-bgp_attr.patch | 149 ++++++++++++++++++
 ...v6-nexthops-when-importing-EVPN-IPv4.patch | 107 +++++++++++++
 4 files changed, 264 insertions(+)
 create mode 100644 debian/patches/upstream/0005-bgpd-fix-BGP_ATTR_NEXT_HOP-flag-handling-in-bgp_attr.patch
 create mode 100644 debian/patches/upstream/0006-bgpd-preserve-IPv6-nexthops-when-importing-EVPN-IPv4.patch


Summary over all repositories:
  4 files changed, 264 insertions(+), 0 deletions(-)

-- 
Generated by murpp 0.11.0




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-15 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15  9:14 [PATCH frr 0/2] Backport FRR EVPN local RT2 leaking fixes Gabriel Goller
2026-05-15  9:14 ` [PATCH frr 1/2] frr: backport the "Memory leak problems." (#21844) upstream PR Gabriel Goller
2026-05-15  9:14 ` [PATCH frr 2/2] bump to version 10.6.1-1+pve2 Gabriel Goller
2026-05-15 12:06 ` [PATCH frr 0/2] Backport FRR EVPN local RT2 leaking fixes Gabriel Goller
  -- strict thread matches above, loose matches on Subject: below --
2026-05-15 15:23 [PATCH frr 0/2] Fix leaked EVPN routes having wrong nexthop on IPv4 via IPv6 routes Gabriel Goller
2026-05-15 15:23 ` [PATCH frr 2/2] bump to version 10.6.1-1+pve2 Gabriel Goller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal