Date: Mon, 04 Dec 2023 14:15:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 275523] Kernel PANIC in do_osd_del() in LIST_REMOVE macro in 15.0-CURRENT Message-ID: <bug-275523-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275523 Bug ID: 275523 Summary: Kernel PANIC in do_osd_del() in LIST_REMOVE macro in 15.0-CURRENT Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dgilbert@eicat.ca This panic was on RISC-V hardware (real hardware), but the panic may not be RISC-V only. Hardware does pass 48h of memtester (so far). Kernel core file and symbol table available on request, Full core.txt avail= able at: [2:6:306]dgilbert@ump:/var/crash> uname -a FreeBSD ump.daveg.ca 15.0-CURRENT FreeBSD 15.0-CURRENT #1 main-n266101-608da65de955-dirty: Wed Oct 25 02:49:32 EDT 2023=20=20=20=20 root@ump.daveg.ca:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC riscv https://termbin.com/y9g4 Unread portion of the kernel message buffer: panic: Bad link elm 0xffffffd050ee24f8 next->prev !=3D elm cpuid =3D 0 time =3D 1699626334 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x36 kdb_backtrace() at kdb_backtrace+0x2c vpanic() at vpanic+0x116 panic() at panic+0x26 do_osd_del() at do_osd_del+0x378 osd_del() at osd_del+0x5c khelp_destroy_osd() at khelp_destroy_osd+0x78 tcp_discardcb() at tcp_discardcb+0x96 tcp_usr_detach() at tcp_usr_detach+0x4e sorele_locked() at sorele_locked+0xce tcp_close() at tcp_close+0x1d0 tcp_timer_2msl() at tcp_timer_2msl+0x132 tcp_timer_enter() at tcp_timer_enter+0x11e softclock_call_cc() at softclock_call_cc+0x112 softclock_thread() at softclock_thread+0x9e fork_exit() at fork_exit+0x68 fork_trampoline() at fork_trampoline+0xa KDB: enter: panic get_curthread () at /usr/src/sys/riscv/include/pcpu.h:71 71 __asm __volatile("ld %0, 0(tp)" : "=3D&r"(td)); (kgdb) #0 get_curthread () at /usr/src/sys/riscv/include/pcpu.h:71 #1 doadump (textdump=3D0) at /usr/src/sys/kern/kern_shutdown.c:405 #2 0xffffffc0000e2dda in db_dump (dummy=3D<optimized out>,=20 dummy2=3D<optimized out>, dummy3=3D<optimized out>, dummy4=3D<optimized= out>) at /usr/src/sys/ddb/db_command.c:591 #3 0xffffffc0000e2bea in db_command (last_cmdp=3D<optimized out>,=20 cmd_table=3D<optimized out>, dopager=3Dtrue) at /usr/src/sys/ddb/db_command.c:504 #4 0xffffffc0000e296a in db_command_loop () at /usr/src/sys/ddb/db_command.c:551 #5 0xffffffc0000e5c32 in db_trap (type=3D<optimized out>,=20 type@entry=3D<error reading variable: value is not available>,=20 code=3D<optimized out>,=20 code@entry=3D<error reading variable: value is not available>) at /usr/src/sys/ddb/db_main.c:268 #6 0xffffffc00033825c in kdb_trap (type=3D3, code=3D0, tf=3D<optimized out= >) at /usr/src/sys/kern/subr_kdb.c:790 #7 0xffffffc0005b1d88 in do_trap_supervisor (frame=3D0xffffffc0043bc690) at /usr/src/sys/riscv/riscv/trap.c:359 #8 <signal handler called> #9 kdb_enter (why=3D<optimized out>, msg=3D<optimized out>) at /usr/src/sys/kern/subr_kdb.c:556 #10 0xffffffc0002f44d2 in vpanic ( fmt=3D0xffffffc00062846a "Bad link elm %p next->prev !=3D elm",=20 ap=3D0xffffffc0043bc848) at /usr/src/sys/kern/kern_shutdown.c:958 #11 0xffffffc0002f42ce in panic ( fmt=3D0x12 <error: Cannot access memory at address 0x12>) at /usr/src/sys/kern/kern_shutdown.c:894 #12 0xffffffc0002d5b56 in do_osd_del (type=3D2, osd=3D0xffffffd050ee24f8, s= lot=3D1,=20 list_locked=3D0) at /usr/src/sys/kern/kern_osd.c:346 #13 0xffffffc0002d61f2 in osd_del (type=3D2, osd=3D0x1, slot=3D37) at /usr/src/sys/kern/kern_osd.c:311 #14 0xffffffc0002be3da in khelp_remove_osd ( h=3D0xffffffc0007c4b30 <ertt_helper>, hosd=3D0xffffffd050ee24f8) at /usr/src/sys/kern/kern_khelp.c:223 #15 khelp_destroy_osd (hosd=3D0xffffffd050ee24f8) at /usr/src/sys/kern/kern_khelp.c:203 #16 0xffffffc00045878a in tcp_discardcb (tp=3D0xffffffd050ee2000) at /usr/src/sys/netinet/tcp_subr.c:2416 #17 0xffffffc000463d44 in tcp_usr_detach (so=3D0xffffffd33d624000) at /usr/src/sys/netinet/tcp_usrreq.c:217 #18 0xffffffc000386060 in sofree (so=3D0xffffffd33d624000) at /usr/src/sys/kern/uipc_socket.c:1211 #19 sorele_locked (so=3D0xffffffd33d624000) at /usr/src/sys/kern/uipc_socket.c:1238 #20 0xffffffc0004586ca in tcp_close (tp=3D<optimized out>) at /usr/src/sys/netinet/tcp_subr.c:2541 #21 0xffffffc0004627ae in tcp_timer_2msl (tp=3D0xffffffd050ee2000) at /usr/src/sys/netinet/tcp_timer.c:373 #22 0xffffffc00046130c in tcp_timer_enter (xtp=3D0xffffffd050ee2000) at /usr/src/sys/netinet/tcp_timer.c:880 #23 0xffffffc00030f58e in softclock_call_cc (c=3D0xffffffd050ee2198,=20 cc=3D0xffffffc003e6a0c0, direct=3D0) at /usr/src/sys/kern/kern_timeout.= c:719 #24 0xffffffc000310b4c in softclock_thread (arg=3D0xffffffc003e6a0c0) at /usr/src/sys/kern/kern_timeout.c:858 #25 0xffffffc0002b1c9c in fork_exit ( callout=3D0xffffffc000310aaa <softclock_thread>, arg=3D0xffffffc003e6a0= c0,=20 frame=3D0xffffffc0043bcc50) at /usr/src/sys/kern/kern_fork.c:1160 #26 0xffffffc0005b1aee in fork_trampoline () at /usr/src/sys/riscv/riscv/swtch.S:370 Backtrace stopped: frame did not save the PC (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275523-227>