[Bug 296686] zfs: data corruption with dedup enabled

[email protected] Sat, 11 Jul 2026 08:02:39 +0000
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296686

            Bug ID: 296686
           Summary: zfs: data corruption with dedup enabled
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

Scenario:
- FreeBSD stable/15 at 034e21efa19d
- zpool with filesystems which have dedup enabled

Result:
- Files which contain deduped blocks (i.e., with blocks belonging to more than
one file) can be corrupted; such blocks show as zeros instead of the actual
data.

Notes:
- This is very likely the same as https://github.com/openzfs/zfs/issues/18774
and https://github.com/openzfs/zfs/issues/18366
- The fix is described in
https://github.com/truenas/zfs/commit/6efd6538668ecae1ebecc022d5afb4052895de14
- Search for "zio_ddt_write: compute have_dvas after taking dde_io_lock"
- The fix already seems to be in FreeBSD main at 6fb72fda0f60
- Please merge it to stable/15

-- Martin

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