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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 Apr 2024 21:41:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278394

            Bug ID: 278394
           Summary: Reproducible kernel panic related to IPv4 routes
                    populated by bird2 (BGP)
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: gshapiro@FreeBSD.org

I have a reproducible kernel panic related to IPv4 routes being populated by
bird2 (BGP).  It was happening under 13.2-RELEASE-p10 so I upgraded to
14.0-RELEASE-p6.  It still occurs.  First the panic:

  Fatal double fault
  rip 0xffffffff82b45307 rsp 0xfffffe00037f7f10 rbp 0xfffffe00037f8140
  rax 0 rdx 0 rbx 0xfffffe00037f8170
  rcx 0 rsi 0xfffffe00037f8170 rdi 0x4b3cc420
  r8 0 r9 0x700000000 r10 0xfffff80010457880
  r11 0x4 r12 0xfffff8001089e800 r13 0x20000
  r14 0 r15 0xfffffe00037f8174 rflags 0x10282
  cs 0x20 ss 0 ds 0x3b es 0x3b fs 0x13 gs 0x1b
  fsbase 0x878b0a130 gsbase 0xffffffff82a10000 kgsbase 0
  cpuid = 0; apic id = 00
  panic: double fault
  cpuid = 0
  time = 1713229261
  KDB: stack backtrace:
  Uptime: 23d8h18m48s

I'd love to share more about the crash, but savecore fails on boot:

Apr 16 20:59:06 membrane kernel: Starting syslogd.
Apr 16 20:59:06 membrane savecore[984]: /dev/vtbd0p2: Operation not permitted
Apr 16 20:59:06 membrane kernel: No crash dumps in /var/crash.
Apr 16 20:59:06 membrane kernel: Apr 16 20:59:06 membrane savecore[984]:
/dev/vtbd0p2: Operation not permitted

I can reproduce it at will by configuring bird2 to export the BGP IPv4 route
table (960959 entries) to the OS (already exporting IPv6 route table without an
issue).  Note that I do this on multiple other FreeBSD 13.2/14.0 hosts without
a problem so it is something specific to this box's configuration.

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