New panic in main-n253273-a52d8d4a6c6:

From: Michael Jung <mikej_at_paymentallianceintl.com>
Date: Sun, 20 Feb 2022 20:53:09 UTC
Hi!

The box was quite busy at the time.  The only odd thing I am aware of and which I do
not think is related is I have not been able to expand one of my zpool's.  ZFS sees my
added draid2:2d:10c:0s vdev but I can't seem to force zpool's expansion - my bet this
is somehow related to the mirrored special device in the pool even though autoexpand
is set to 'on' for the pool.

Not asking anyone to solve this, I plan on putting together a "how to reproduce" and
post to freebsd-fs@ but wanted to note this oddity.

--mikej

This is a unmodified GENERIC kernel.


Unread portion of the kernel message buffer:
panic: refcount 0xfffff801cc119284 wraparound
cpuid = 7
time = 1645382575
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0119a83c80
vpanic() at vpanic+0x17f/frame 0xfffffe0119a83cd0
panic() at panic+0x43/frame 0xfffffe0119a83d30
fdclose() at fdclose/frame 0xfffffe0119a83dc0
closefp_impl() at closefp_impl+0x77/frame 0xfffffe0119a83e00
amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0119a83f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0119a83f30
--- syscall (6, FreeBSD ELF64, sys_close), rip = 0x3309a531b62a, rsp = 0x3309a2802bc8, rbp = 0x3309a2803000 ---
KDB: enter: panic

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55               __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=textdump@entry=0)
    at /usr/src/sys/kern/kern_shutdown.c:399
#2  0xffffffff804c86ba in db_dump (dummy=<optimized out>,
    dummy2=<unavailable>, dummy3=<unavailable>, dummy4=<unavailable>)
    at /usr/src/sys/ddb/db_command.c:575
#3  0xffffffff804c8572 in db_command (last_cmdp=<optimized out>,
    cmd_table=<optimized out>, dopager=dopager@entry=1)
    at /usr/src/sys/ddb/db_command.c:482
#4  0xffffffff804c81cd in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:535
#5  0xffffffff804cb806 in db_trap (type=<optimized out>, code=<optimized out>)
    at /usr/src/sys/ddb/db_main.c:270
#6  0xffffffff80c566fb in kdb_trap (type=type@entry=3, code=code@entry=0,
    tf=tf@entry=0xfffffe0119a83bb0) at /usr/src/sys/kern/subr_kdb.c:733
#7  0xffffffff810e75ca in trap (frame=0xfffffe0119a83bb0)
    at /usr/src/sys/amd64/amd64/trap.c:609
#8  <signal handler called>
#9  kdb_enter (why=0xffffffff812e5eaf "panic", msg=<optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:506
#10 0xffffffff80c08c50 in vpanic (
    fmt=0xffffffff8122606d "refcount %p wraparound",
    ap=ap@entry=0xfffffe0119a83d10) at /usr/src/sys/kern/kern_shutdown.c:908
#11 0xffffffff80c089e3 in panic (
    fmt=0xffffffff81e8cf40 <cnputs_mtx> "\332#*\201\377\377\377\377")
    at /usr/src/sys/kern/kern_shutdown.c:844
#12 0xffffffff80ba9180 in _refcount_update_saturated (count=0xfffff801cc119284)
    at /usr/src/sys/sys/refcount.h:55
#13 refcount_releasen (count=0xfffff801cc119284, n=1)
    at /usr/src/sys/sys/refcount.h:154
#14 refcount_release (count=0xfffff801cc119284)
    at /usr/src/sys/sys/refcount.h:174
#15 closef (fp=<optimized out>, td=0xfffffe00df8d0560)
    at /usr/src/sys/kern/kern_descrip.c:2776
#16 0xffffffff80bad587 in closefp_impl (fdp=0xfffffe012b7c0430, fd=4,
    fp=0xfffff801cc119280, td=0xfffffe00df8d0560, audit=true)
    at /usr/src/sys/kern/kern_descrip.c:1300
#17 0xffffffff810e838e in syscallenter (td=<optimized out>)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189
#18 amd64_syscall (td=0xfffffe00df8d0560, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1191
#19 <signal handler called>
#20 0x00003309a531b62a in ?? ()
Backtrace stopped: Cannot access memory at address 0x3309a2802bc8
(kgdb)




http://mail.mikej.com/core.txt.0

http://mail.mikej.com/info.0

http://mail.mikej.com/kernel.full.0

http://mail.mikej.com/vmcore.0




CONFIDENTIALITY NOTE: This message is intended only for the use
of the individual or entity to whom it is addressed and may
contain information that is privileged, confidential, and
exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you have
received this transmission in error, please notify us by
telephone at (502) 212-4000 or notify us at: PAI, Dept. 99,
2101 High Wickham Place, Suite 101, Louisville, KY 40245

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.