[Bug 268333] kernel panic during boot ; ZFS ; VERIFY3(0 == zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)) failed (0 == 97)
Date: Mon, 12 Dec 2022 15:05:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268333 Bug ID: 268333 Summary: kernel panic during boot ; ZFS ; VERIFY3(0 == zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)) failed (0 == 97) Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: martin@bxlr.sk FreeBSD 13.1, ZFS on geli, amd64: # freebsd-version -kru 13.1-RELEASE-p3 13.1-RELEASE-p3 13.1-RELEASE-p5 System panics on <118>Clearing /tmp. panic: VERIFY3(0 == zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)) failed (0 == 97) With the stack trace: cpuid = 2 time = 1670833309 KDB: stack backtrace: #0 0xffffffff80c694a5 at kdb_backtrace+0x65 #1 0xffffffff80c1bb5f at vpanic+0x17f #2 0xffffffff82177f2a at spl_panic+0x3a #3 0xffffffff8218b923 at zfs_link_destroy+0x433 #4 0xffffffff82194a81 at zfs_rmdir_+0x1a1 #5 0xffffffff8117d9a7 at VOP_RMDIR_APV+0x27 #6 0xffffffff80d0ac33 at kern_frmdirat+0x343 #7 0xffffffff810b06ec at amd64_syscall+0x10c #8 0xffffffff81087ecb at fast_syscall_common+0xf8 Uptime: 11s __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu, => 0xffffffff80c1b91e <doadump+46>: 65 48 8b 04 25 00 00 00 00 mov rax,QWORD PTR gs:0x0 (kgdb) bt #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:399 #2 0xffffffff80c1b75c in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:487 #3 0xffffffff80c1bbce in vpanic (fmt=0xffffffff823dd5c6 "VERIFY3(0 == zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)) failed (0 == %lld)\n", ap=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:920 #4 0xffffffff82177f2a in spl_panic (file=<optimized out>, func=<optimized out>, line=<unavailable>, fmt=<unavailable>) at /usr/src/sys/contrib/openzfs/module/os/freebsd/spl/spl_misc.c:107 #5 0xffffffff8218b923 in zfs_unlinked_add (zp=0xfffff80041109b10, tx=0xfffff80021e99600) at /usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_dir.c:278 #6 zfs_link_destroy (dzp=dzp@entry=0xfffff8000ac03760, name=<optimized out>, name@entry=0xfffff800212d5c07 ".font-unix", zp=zp@entry=0xfffff80041109b10, tx=tx@entry=0xfffff80021e99600, flag=flag@entry=2, unlinkedp=unlinkedp@entry=0x0) at /usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_dir.c:785 #7 0xffffffff82194a81 in zfs_rmdir_ (dvp=0xfffff8000aa40d58, vp=0xfffff800414d7988, name=0xfffff800212d5c07 ".font-unix", cr=<optimized out>) at /usr/src/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c:1611 #8 0xffffffff8117d9a7 in VOP_RMDIR_APV (vop=0xffffffff82457340 <zfs_vnodeops>, a=a@entry=0xfffffe00c452bca8) at vnode_if.c:1804 #9 0xffffffff80d0ac33 in VOP_RMDIR (dvp=<unavailable>, vp=<unavailable>, cnp=0xfffffe00c452bd48) at ./vnode_if.h:910 #10 kern_frmdirat (td=0xfffffe00c5f11560, dfd=-100, path=0x801831000 <error: Cannot access memory at address 0x801831000>, fd=<optimized out>, pathseg=UIO_USERSPACE, flag=<optimized out>) at /usr/src/sys/kern/vfs_syscalls.c:3939 #11 0xffffffff810b06ec in syscallenter (td=0xfffffe00c5f11560) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 #12 amd64_syscall (td=0xfffffe00c5f11560, traced=0) at /usr/src/sys/amd64/amd64/trap.c:1185 #13 <signal handler called> -- You are receiving this mail because: You are the assignee for the bug.