The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/src/commit/?id=e9c3a9fad53034a16ec16662e7248be7c295ddf1
commit e9c3a9fad53034a16ec16662e7248be7c295ddf1 Author: Olivier Cochard <[email protected]> AuthorDate: 2026-09-30 06:53:51 +0000 Commit: Olivier Cochard <[email protected]> CommitDate: 2026-09-30 10:00:22 +0000 routing: restore opt_route.h in route.c, fib_algo teardown was compiled out Removal of opt_route.h left route.c without FIB_ALGO, skipping fib_destroy_rib() in rt_table_destroy(). Explicitly guard it to clean up fib_algo instances and callouts before releasing the rib_lock rmlock, preventing a page fault in softclock and VNET resource leaks. Approved by: pouria Fixes: 254b23eb1f5 ("routing: Retire ROUTE_MPATH compile option") Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D60158 --- sys/net/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/route.c b/sys/net/route.c index 2cffacf87f27..c51332e75ffd 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -36,6 +36,7 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_mrouting.h" +#include "opt_route.h" #include <sys/param.h> #include <sys/systm.h>
