Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Thu, 03 Dec 2026 04:13
[Bug 301442] [zfs] 15.1 corrupts pools with a legacy dedup table: please merge OpenZFS e7f2c9fb87ca to stable/15 and issue an er...
Author: bugzilla-noreply
Date: Thu, 03 Dec 2026 04:13
Date: Thu, 03 Dec 2026 04:13
72 lines
4662 bytes
4662 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301442
Bug ID: 301442
Summary: [zfs] 15.1 corrupts pools with a legacy dedup table:
please merge OpenZFS e7f2c9fb87ca to stable/15 and
issue an errata notice
Product: Base System
Version: 15.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: bj.rn@baerlin.eu
ZFS in FreeBSD 15.0 and 15.1 double frees the gang headers of dedup blocks on
pools with a legacy (traditional) dedup table. After two deletes of blocks that
share such a header, the pool panics on the next load of the affected metaslab:
panic: Solaris(panic): zfs: rt={spa=... vdev_guid=... ms_id=...
ms_allocatable}: adding segment (offset=... size=200) overlapping with existing
one
The bug is OpenZFS #18819. It came with the DDT prune work in OpenZFS 2.3.0 and
is fixed by commit e7f2c9fb87ca, "ddt: select traditional phys by block
identity, not BP DVA count" (2026-07-27). The fix is in main since the vendor
import of openzfs@84aa7e7e0 on 2026-08-24 (22649d4dba73). It is not in any
OpenZFS release (zfs-2.4-release ends at 2.4.4) and not in stable/15 or
releng/15.1: `ddt_entry_lookup_is_valid()` there still compares against
`ddp_trad[BP_GET_NDVAS(bp)]`. 14.x (OpenZFS 2.2.7) is not affected
Mechanism, in short: a copies=1 dedup write that gangs gets a block pointer
with two DVAs, because gang headers get one extra copy, while the DDT stores it
in the SINGLE slot. On free, `ddt_lookup()` checks the DOUBLE slot, finds
nothing, and `zio_ddt_free()` takes the "pruned" fallback: it frees the block
pointer directly, without decrementing the refcount and without the gang
stages, so only the header extents are freed. Every further delete of another
reference frees the same headers again
## Who is affected
Any pool with a legacy DDT that is imported by a 15.x kernel and has dedup
blocks that ganged, which is likely on fragmented or full pools and on ashift=9
pools. `zpool upgrade` is not needed to trigger it. Existing pools created and
used with dedup on 14.x are hit by the OS upgrade alone
Setting dedup=off does not protect a pool. It only stops new dedup writes,
every delete of an existing dedup gang block still goes through the faulty path
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301442] [zfs] 15.1 corrupts pools with a legacy dedup table: please merge OpenZFS e7f2c9fb87ca to stable/15 and issue an er...
Author: bugzilla-noreply
Date: Thu, 03 Dec 2026 04:34
Date: Thu, 03 Dec 2026 04:34
13 lines
2464 bytes
2464 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301442 --- Comment #1 from bj.rn@baerlin.eu --- upstream bug report: https://github.com/openzfs/zfs/issues/20119 -- You are receiving this mail because: You are the assignee for the bug. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301442] [zfs] 15.1 corrupts pools with a legacy dedup table: please merge OpenZFS e7f2c9fb87ca to stable/15 and issue an er...
Author: bugzilla-noreply
Date: Thu, 03 Dec 2026 06:45
Date: Thu, 03 Dec 2026 06:45
16 lines
2652 bytes
2652 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301442
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |fs@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads