[Bug 282378] panic: got NULL turnstile on rwlock 0xfffff8021123be90 passedv 1 v 1

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Oct 2024 10:00:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282378

--- Comment #10 from Lexi Winter <lexi.freebsd@le-fay.org> ---
Unread portion of the kernel message buffer:
panic: lle 0xfffff8015f8e8000 not locked @
/data/build/src/freebsd/lf/main/sys/netinet6/nd6.c:2368!
cpuid = 1
time = 1730156941
KDB: stack backtrace:
#0 0xffffffff804676bd at kdb_backtrace+0x5d
#1 0xffffffff8041d1df at vpanic+0x13f
#2 0xffffffff8041d093 at panic+0x43
#3 0xffffffff805bc173 at nd6_get_llentry+0x3a3
#4 0xffffffff805ba9fb at nd6_resolve_slow+0xfb
#5 0xffffffff805ba7d5 at nd6_resolve+0x125
#6 0xffffffff80530da2 at ether_output+0x502
#7 0xffffffff8055dc95 at ip_tryforward+0x505
#8 0xffffffff80560570 at ip_input+0x310
#9 0xffffffff805366f8 at swi_net+0x138
#10 0xffffffff803e23f9 at ithread_loop+0x239
#11 0xffffffff803dea5b at fork_exit+0x7b
#12 0xffffffff806a37ee at fork_trampoline+0xe
Uptime: 1h42m17s
Dumping 1338 out of 16325 MB:..2%..11%..21%..32%..41%..51%..61%..71%..81%..91%

(kgdb) bt
#0  __curthread () at
/data/build/src/freebsd/lf/main/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>) at
/data/build/src/freebsd/lf/main/sys/kern/kern_shutdown.c:404
#2  0xffffffff8041cd64 in kern_reboot (howto=260) at
/data/build/src/freebsd/lf/main/sys/kern/kern_shutdown.c:524
#3  0xffffffff8041d24c in vpanic (fmt=0xffffffff80719f49 "lle %p not locked @
%s:%d!", ap=ap@entry=0xfffffe00d9967af0) at
/data/build/src/freebsd/lf/main/sys/kern/kern_shutdown.c:979
#4  0xffffffff8041d093 in panic (fmt=<unavailable>) at
/data/build/src/freebsd/lf/main/sys/kern/kern_shutdown.c:892
#5  0xffffffff805bc173 in nd6_get_llentry (ifp=<optimized out>, addr=<optimized
out>, family=<optimized out>) at
/data/build/src/freebsd/lf/main/sys/netinet6/nd6.c:2368
#6  0xffffffff805ba9fb in nd6_resolve_slow (ifp=ifp@entry=0xfffff800246d2000,
family=family@entry=2, flags=flags@entry=0, m=m@entry=0xfffff802091b6c00,
dst=dst@entry=0xfffff8002480fe04, 
    desten=desten@entry=0xfffffe00d9967cb0 "", pflags=0xfffffe00d9967c8c,
plle=0x0) at /data/build/src/freebsd/lf/main/sys/netinet6/nd6.c:2408
#7  0xffffffff805ba7d5 in nd6_resolve (ifp=0xfffff800246d2000,
gw_flags=<optimized out>, m=m@entry=0xfffff802091b6c00,
sa_dst=sa_dst@entry=0xfffff8002480fe04, desten=desten@entry=0xfffffe00d9967cb0
"", 
    pflags=pflags@entry=0xfffffe00d9967c8c, plle=0x0) at
/data/build/src/freebsd/lf/main/sys/netinet6/nd6.c:2298
#8  0xffffffff80530da2 in ether_resolve_addr (phdr=0xfffffe00d9967cb0 "",
plle=<optimized out>, ifp=<optimized out>, m=<optimized out>, dst=<optimized
out>, ro=<optimized out>, pflags=<optimized out>)
    at /data/build/src/freebsd/lf/main/sys/net/if_ethersubr.c:243
#9  ether_output (ifp=<unavailable>, ifp@entry=<error reading variable: value
is not available>, m=0xfffff802091b6c00, m@entry=<error reading variable: value
is not available>, dst=<unavailable>, 
    dst@entry=<error reading variable: value is not available>,
ro=<unavailable>, ro@entry=<error reading variable: value is not available>) at
/data/build/src/freebsd/lf/main/sys/net/if_ethersubr.c:349
#10 0xffffffff8055dc95 in ip_tryforward (m=0xfffff802091b6c00) at
/data/build/src/freebsd/lf/main/sys/netinet/ip_fastfwd.c:483
#11 0xffffffff80560570 in ip_input (m=0xfffff802091b6c00) at
/data/build/src/freebsd/lf/main/sys/netinet/ip_input.c:590
#12 0xffffffff805366f8 in netisr_process_workstream_proto
(nwsp=0xfffffe002056ba00, proto=1) at
/data/build/src/freebsd/lf/main/sys/net/netisr.c:927
#13 swi_net (arg=0xfffffe002056ba00) at
/data/build/src/freebsd/lf/main/sys/net/netisr.c:974
#14 0xffffffff803e23f9 in intr_event_execute_handlers (ie=0xfffff80001289400,
p=<optimized out>) at /data/build/src/freebsd/lf/main/sys/kern/kern_intr.c:1183
#15 ithread_execute_handlers (ie=0xfffff80001289400, p=<optimized out>) at
/data/build/src/freebsd/lf/main/sys/kern/kern_intr.c:1196
#16 ithread_loop (arg=arg@entry=0xfffff8000126cb00) at
/data/build/src/freebsd/lf/main/sys/kern/kern_intr.c:1289
#17 0xffffffff803dea5b in fork_exit (callout=0xffffffff803e21c0 <ithread_loop>,
arg=0xfffff8000126cb00, frame=0xfffffe00d9967f40) at
/data/build/src/freebsd/lf/main/sys/kern/kern_fork.c:1151
#18 <signal handler called>

#5  0xffffffff805bc173 in nd6_get_llentry (ifp=<optimized out>, addr=<optimized
out>, family=<optimized out>) at
/data/build/src/freebsd/lf/main/sys/netinet6/nd6.c:2368
warning: 2368   /data/build/src/freebsd/lf/main/sys/netinet6/nd6.c: No such
file or directory
(kgdb) info locals
child_lle = <optimized out>
lle = 0xfffff8015f8e8000
lle_tmp = 0xfffff8015f8e8000
(kgdb) print *lle
$1 = {lle_next = {cle_next = 0x0, cle_prev = 0x0}, r_l3addr = {addr4 = {s_addr
= 285245694}, addr6 = {__u6_addr = {__u6_addr8 = "\376\200\000\021", '\000'
<repeats 11 times>, "\002", __u6_addr16 = {33022, 
          4352, 0, 0, 0, 0, 0, 512}, __u6_addr32 = {285245694, 0, 0,
33554432}}}}, r_linkdata = '\000' <repeats 23 times>, r_hdrlen = 0 '\000',
r_family = 2 '\002', spare0 = "\000", r_flags = 0, 
  r_skip_req = 0, lle_tbl = 0xfffff800242ceb00, lle_head = 0x0, lle_free =
0xffffffff8059e7a0 <in6_lltable_destroy_lle>, la_hold = 0xfffff8019caa4b00,
la_numheld = 1, la_expire = 0, la_flags = 194, 
  la_asked = 0, la_preempt = 0, ln_state = 0, ln_router = 0, ln_ntick = 0,
lle_remtime = 0, lle_hittime = 0, lle_refcnt = 1, ll_addr = 0x0, lle_children =
{cslh_first = 0x0}, lle_child_next = {
    csle_next = 0x0}, lle_parent = 0xfffff801a8651900, lle_chain = {cle_next =
0x0, cle_prev = 0x0}, lle_timer = {c_links = {le = {le_next = 0x0, le_prev =
0x0}, sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, 
        tqe_prev = 0x0}}, c_time = 0, c_precision = 0, c_arg = 0x0, c_func =
0x0, c_lock = 0x0, c_flags = 0, c_iflags = 16, c_cpu = 0}, lle_lock =
{lock_object = {lo_name = 0xffffffff80708160 "lle", 
      lo_flags = 90374144, lo_data = 0, lo_witness = 0x0}, rw_lock = 1},
req_mtx = {lock_object = {lo_name = 0xffffffff8073325f "lle req", lo_flags =
16973824, lo_data = 0, lo_witness = 0x0}, mtx_lock = 0}, 
  lle_epoch_ctx = {data = {0x0, 0x0}}}
(kgdb)

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