Kernel bug / routing

Routes stay in the old FIB after an interface moves or is destroyed

Move an interface to another routing table and its old routes stay behind, even after the interface is gone.

A bug under a magnifying glass.
Component
sys/net/route, sys/netinet
Found on
15.1-RELEASE-p7 and 15.0-RELEASE, arm64
Status
Comment on an existing PR
Upstream
PR 250552
Written

With the default net.add_addr_allfibs=0, moving an interface with ifconfig IF fib N leaves both its prefix route and its loopback route in the old FIB. Destroying the interface removes neither, and adding the same address again later fails with "File exists". IPv6 behaves the same way. No Wi-Fi driver is involved: the reproducer uses lo and epair.

This is the same root cause as PR 250552, opened by someone else in 2020. Instead of a duplicate, a comment went in on 2 December 2026 with a test matrix from two machines and the reproducer script, fib-route-repro.sh.

All kernel bugs

Built with ssg