[Bug 278394] Reproducible kernel panic related to IPv4 routes populated by bird2 (BGP)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Apr 2024 02:19:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278394

--- Comment #19 from Zhenlei Huang <zlei@FreeBSD.org> ---
@Gregory
bird2 learned more precise route for remote end of the vxlan tunnel from the
vxlan interface. When that route was installed into kernel FIB then it ended up
recursive encapsulation. Unfortunately vxlan(4) does not handle the recursive
correctly and thus results in kernel stack overflow.

As a workaround, use a dedicated fib for vxlan tunnel. Assume x.x.x.x is your
tunnel remote end, and y.y.y.y is original route for x.x.x.x .
```
# sysctl -n net.fibs=2
1 -> 2
# route add x.x.x.x y.y.y.y -fib 1
# ifconfig vxlan0 tunnelfib 1
```

Now happy starting bird2 :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.