EQUIV fails when getting ZPL props of a locked encrypted dataset
Opened this issue · 2 comments
Deleted user commented
# zfs create -o encryption=on -o keyformat=passphrase -o keylocation=prompt apool/crypt
enter your passphrase:
# zpool export apool
# zpool import apool
# zfs get version apool/crypt
# cat panic.txt
(!copied) is equivalent to (hdr->b_l1hdr.b_freeze_cksum == NULL) # head -20 ddb.txt
db:0:kdb.enter.default> bt
Tracing pid 314 tid 100600 td 0xfffff8001c77b000
kdb_enter() at kdb_enter+0x37/frame 0xfffffe004f121330
vpanic() at vpanic+0x197/frame 0xfffffe004f121380
spl_panic() at spl_panic+0x3a/frame 0xfffffe004f1213e0
arc_buf_fill() at arc_buf_fill+0xc6e/frame 0xfffffe004f121480
arc_untransform() at arc_untransform+0x22/frame 0xfffffe004f1214b0
dbuf_read_() at dbuf_read_+0x767/frame 0xfffffe004f121540
dmu_buf_hold() at dmu_buf_hold+0x49/frame 0xfffffe004f121580
zap_lockdir() at zap_lockdir+0x2e/frame 0xfffffe004f121610
zap_lookup_norm() at zap_lookup_norm+0x3c/frame 0xfffffe004f121660
zap_lookup() at zap_lookup+0x11/frame 0xfffffe004f121690
zfs_get_zplprop() at zfs_get_zplprop+0xe4/frame 0xfffffe004f1216d0
zfs_ioc_objset_zplprops() at zfs_ioc_objset_zplprops+0xd8/frame 0xfffffe004f121710
zfsdev_ioctl_common() at zfsdev_ioctl_common+0x489/frame 0xfffffe004f1217b0
zfsdev_ioctl() at zfsdev_ioctl+0x143/frame 0xfffffe004f1217e0
devfs_ioctl() at devfs_ioctl+0xb5/frame 0xfffffe004f121830
VOP_IOCTL_APV() at VOP_IOCTL_APV+0xd4/frame 0xfffffe004f121860
vn_ioctl() at vn_ioctl+0x13d/frame 0xfffffe004f121970
devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe004f121990
Deleted user commented
For context, that stack is from the truenas/master branch.
Deleted user commented
IIRC the PR to fix this issue is here: openzfs#10943