Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jan 2022 17:10:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 261520] panic: VERIFY3(0 == dmu_bonus_hold_by_dnode(dn, FTAG, &db, flags)) failed (0 == 5)
Message-ID:  <bug-261520-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261520

            Bug ID: 261520
           Summary: panic: VERIFY3(0 =3D=3D dmu_bonus_hold_by_dnode(dn, FTA=
G,
                    &db, flags)) failed (0 =3D=3D 5)
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: gldisater@gmail.com

Panic when zfs sending to an encrypted dataset.

FreeBSD 13.0-RELEASE-p4

tar zcvf panic.tar.gz /boot/kernel /var/crash/*.1 /usr/lib/debug/boot/kernel

https://drive.google.com/file/d/1WhzW2tWEQenPPb6Dogd4eS1cXNNODJbD/view?usp=
=3Dsharing

zpool history data | grep -e "zpool import" -B 4
2021-12-22.01:10:20 zfs receive -s -F data/encrypted/zroot/var/audit
2021-12-22.01:10:20 zfs rollback -R
data/encrypted/zroot/var/crash@autosnap_2021-12-21_01:01:02_hourly
2021-12-22.01:10:32 zfs receive -s -F data/encrypted/zroot/var/crash
2021-12-22.01:10:32 zfs rollback -R
data/encrypted/zroot/var/log@autosnap_2021-12-21_01:01:02_hourly
2021-12-22.01:13:41 zpool import -c /etc/zfs/zpool.cache -a -N
--
2022-01-18.23:09:32 zfs receive -s -F data/encrypted/zroot/var/audit
2022-01-18.23:09:33 zfs rollback -R
data/encrypted/zroot/var/crash@autosnap_2022-01-17_22:01:03_hourly
2022-01-18.23:09:42 zfs receive -s -F data/encrypted/zroot/var/crash
2022-01-18.23:09:43 zfs rollback -R
data/encrypted/zroot/var/log@autosnap_2022-01-17_22:01:03_hourly
2022-01-18.23:13:13 zpool import -c /etc/zfs/zpool.cache -a -N

The only remaining data sets to be sent were very small, so they may not ha=
ve
been successfully received and the history may not reflect that:
zroot/var/log                      9.47M  1.36T      664K  /var/log
zroot/var/mail                     16.3M  1.36T     12.5M  /var/mail
zroot/var/tmp                       512K  1.36T       96K  /var/tmp



Unread portion of the kernel message buffer:
panic: VERIFY3(0 =3D=3D dmu_bonus_hold_by_dnode(dn, FTAG, &db, flags)) fail=
ed (0 =3D=3D
5)

cpuid =3D 12
time =3D 1642565383
KDB: stack backtrace:
#0 0xffffffff80c574c5 at kdb_backtrace+0x65
#1 0xffffffff80c09ea1 at vpanic+0x181
#2 0xffffffff8215e07a at spl_panic+0x3a
#3 0xffffffff821cd7f1 at receive_object+0x971
#4 0xffffffff821cb9a5 at receive_writer_thread+0x115
#5 0xffffffff80bc7dde at fork_exit+0x7e
#6 0xffffffff810629de at fork_trampoline+0xe
Uptime: 27d21h56m23s
Dumping 6349 out of 65091 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..=
91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
warning: Source file is more recent than executable.
55              __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru=
ct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=3D<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:399
#2  0xffffffff80c09a96 in kern_reboot (howto=3D260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#3  0xffffffff80c09f10 in vpanic (fmt=3D<optimized out>, ap=3D<optimized ou=
t>)
    at /usr/src/sys/kern/kern_shutdown.c:919
#4  0xffffffff8215e07a in spl_panic (file=3D<optimized out>,
    func=3D<optimized out>, line=3D<unavailable>, fmt=3D<unavailable>)
    at /usr/src/sys/contrib/openzfs/module/os/freebsd/spl/spl_misc.c:107
#5  0xffffffff821cd7f1 in receive_object (rwa=3Drwa@entry=3D0xfffff80729ea1=
900,
    drro=3Ddrro@entry=3D0xfffff8086864a488, data=3D0xfffff8082a2a1200)
    at /usr/src/sys/contrib/openzfs/module/zfs/dmu_recv.c:1799
#6  0xffffffff821cb9a5 in receive_process_record (rwa=3D0xfffff80729ea1900,
    rrd=3D0xfffff8086864a480)
    at /usr/src/sys/contrib/openzfs/module/zfs/dmu_recv.c:2711
#7  receive_writer_thread (arg=3Darg@entry=3D0xfffff80729ea1900)
    at /usr/src/sys/contrib/openzfs/module/zfs/dmu_recv.c:2806
#8  0xffffffff80bc7dde in fork_exit (
    callout=3D0xffffffff821cb890 <receive_writer_thread>,
    arg=3D0xfffff80729ea1900, frame=3D0xfffffe020ae5abc0)
    at /usr/src/sys/kern/kern_fork.c:1069
#9  <signal handler called>
#10 0x00000008007b888a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffff5088
(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-261520-227>