[Bug 295377] zfs panic: (have_dvas == 0) implies (ddt_phys_birth(ddp, v) == 0)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 May 2026 01:14:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295377

            Bug ID: 295377
           Summary: zfs panic: (have_dvas == 0) implies
                    (ddt_phys_birth(ddp, v) == 0)
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Created attachment 270843
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=270843&action=edit
core.txt

Since updating from 14 to 15.1 I have a few crashes on this assertion in
sys/contrib/openzfs/module/zfs/zio.c:

        int have_dvas = ddt_phys_dva_count(ddp, v, BP_IS_ENCRYPTED(bp));
        IMPLY(have_dvas == 0, ddt_phys_birth(ddp, v) == 0);

These are mixed in with "panic: VERIFY0(buf[i]) failed" which were around
before but are much more common running 15.1.  See bug 275731.

Triggered by a poudriere build but not deterministic.

armv8 (32 core), 15.1-STABLE through 635743c6ec35, all filesystems on NVME.

Enabled and active features:

zroot  feature@empty_bpobj            active                         local
zroot  feature@lz4_compress           active                         local
zroot  feature@spacemap_histogram     active                         local
zroot  feature@enabled_txg            active                         local
zroot  feature@hole_birth             active                         local
zroot  feature@extensible_dataset     active                         local
zroot  feature@embedded_data          active                         local
zroot  feature@userobj_accounting     active                         local
zroot  feature@project_quota          active                         local
zroot  feature@spacemap_v2            active                         local
zroot  feature@log_spacemap           active                         local
zroot  feature@async_destroy          enabled                        local
zroot  feature@multi_vdev_crash_dump  enabled                        local
zroot  feature@bookmarks              enabled                        local
zroot  feature@filesystem_limits      enabled                        local
zroot  feature@large_blocks           enabled                        local
zroot  feature@large_dnode            enabled                        local
zroot  feature@sha512                 enabled                        local
zroot  feature@skein                  enabled                        local
zroot  feature@encryption             enabled                        local
zroot  feature@device_removal         enabled                        local
zroot  feature@obsolete_counts        enabled                        local
zroot  feature@zpool_checkpoint       enabled                        local
zroot  feature@allocation_classes     enabled                        local
zroot  feature@resilver_defer         enabled                        local
zroot  feature@bookmark_v2            enabled                        local
zroot  feature@redaction_bookmarks    enabled                        local
zroot  feature@redacted_datasets      enabled                        local
zroot  feature@bookmark_written       enabled                        local
zroot  feature@livelist               enabled                        local
zroot  feature@device_rebuild         enabled                        local
zroot  feature@zstd_compress          enabled                        local
zroot  feature@block_cloning          enabled                        local

I have vfs.zfs.bclone_enabled=1.

-- 
You are receiving this mail because:
You are the assignee for the bug.