From d96e29576c89e6e547cb82b477651d2b85ea0fed Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 3 May 2023 01:24:26 +0900 Subject: [PATCH] Use correct block pointer in block cloning case. Reviewed-by: Brian Behlendorf Reviewed-by: Brian Atkinson Signed-off-by: Pawel Jakub Dawidek Closes #14806 --- module/zfs/dbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index c7f76e8d96f8..8193fb244079 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -1620,8 +1620,7 @@ dbuf_read_impl(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags, * If this is not true it indicates tampering and we report an error. */ if (db->db_objset->os_encrypted && !BP_USES_CRYPT(bpp)) { - spa_log_error(db->db_objset->os_spa, &zb, - &db->db_blkptr->blk_birth); + spa_log_error(db->db_objset->os_spa, &zb, &bpp->blk_birth); zfs_panic_recover("unencrypted block in encrypted " "object set %llu", dmu_objset_id(db->db_objset)); err = SET_ERROR(EIO);