[Bug 274536] panic: rt_tables_get_rnh_ptr: fam out of bounds (255 < 45)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 Oct 2023 16:37:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274536

            Bug ID: 274536
           Summary: panic: rt_tables_get_rnh_ptr: fam out of bounds (255 <
                    45)
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: trasz@FreeBSD.org

Trying to run Linux Firefox binary from Ubuntu Focal seems to trigger panic on
amd64 FreeBSD 15:

__curthread ()
    at /usr/home/trasz/git/freebsd-src/sys/amd64/include/pcpu_aux.h:57
57              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread ()
    at /usr/home/trasz/git/freebsd-src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=textdump@entry=1)
    at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b4ee90 in kern_reboot (howto=260)
    at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:526
#3  0xffffffff80b4f38f in vpanic (
    fmt=0xffffffff811406d9 "%s: fam out of bounds (%d < %d)", 
    ap=ap@entry=0xfffffe00fc3a2b30)
    at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:970
#4  0xffffffff80b4f133 in panic (fmt=<unavailable>)
    at /usr/home/trasz/git/freebsd-src/sys/kern/kern_shutdown.c:894
#5  0xffffffff80cbbee3 in rt_tables_get_rnh_ptr (table=<optimized out>, 
    family=<optimized out>)
    at /usr/home/trasz/git/freebsd-src/sys/net/route/route_tables.c:372
#6  rt_tables_get_rnh (table=<optimized out>, family=<optimized out>)
    at /usr/home/trasz/git/freebsd-src/sys/net/route/route_tables.c:387
#7  0xffffffff80dc626d in dump_rtable_fib (wa=0xfffffe00fc3a2bc8, fibnum=0, 
    family=255) at /usr/home/trasz/git/freebsd-src/sys/netlink/route/rt.c:599
#8  handle_rtm_dump (nlp=0xfffff803cbde4700, fibnum=0, family=255, 
    hdr=0xfffff8039edb6800, nw=<unavailable>)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/route/rt.c:682
#9  rtnl_handle_getroute (hdr=0xfffff8039edb6800, nlp=0xfffff803cbde4700, 
    npt=0xfffffe00fc3a2dc0)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/route/rt.c:1028
#10 0xffffffff80dbe552 in rtnl_handle_message (hdr=0xfffff8039edb6800, 
    npt=0xfffffe00fc3a2dc0)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_route.c:104
#11 0xffffffff80dbbeaa in nl_receive_message (hdr=0xfffff8039edb6800, 
    remaining_length=<optimized out>, nlp=0xfffff803cbde4700, 
    npt=0xfffffe00fc3a2dc0)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_io.c:506
#12 nl_process_mbuf (m=0xfffff800099fd000, nlp=0xfffff803cbde4700)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_io.c:580
#13 nl_process_received_one (nlp=0xfffff803cbde4700)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_io.c:293
#14 nl_process_received (nlp=0xfffff803cbde4700)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_io.c:320
#15 nl_taskqueue_handler (_arg=0xfffff803cbde4700, pending=<optimized out>)
    at /usr/home/trasz/git/freebsd-src/sys/netlink/netlink_io.c:371
#16 0xffffffff80bb497b in taskqueue_run_locked (
    queue=queue@entry=0xfffff8002400cc00)
    at /usr/home/trasz/git/freebsd-src/sys/kern/subr_taskqueue.c:512
#17 0xffffffff80bb5a33 in taskqueue_thread_loop (
    arg=arg@entry=0xfffff803cbde4760)
    at /usr/home/trasz/git/freebsd-src/sys/kern/subr_taskqueue.c:824
#18 0xffffffff80b04f02 in fork_exit (
    callout=0xffffffff80bb5960 <taskqueue_thread_loop>, 
    arg=0xfffff803cbde4760, frame=0xfffffe00fc3a2f40)
    at /usr/home/trasz/git/freebsd-src/sys/kern/kern_fork.c:1160
#19 <signal handler called>
#20 0x00000008011306c6 in ?? ()

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