OpenZFS 2.2.12 Released with dRAID Fixes and EL Build Restored
OpenZFS 2.2.12 is out, and it fixes a build breakage on Enterprise Linux 9.9 that's been stumping admins. The twelfth patch release on the LTS branch lands December 1, 2026, with 71 commits merged through pull request #20014.
Tony Hutter, the release author from LLNL, kept the changelog honest. The PR description reads: "Fix the broken 2.2.x build on EL 9.9 and 10.3 + some other fixes (and CI updates)." That first half of the sentence is doing the heavy lifting here. If you're running CentOS Stream 9 or AlmaLinux with kernel 5.14.0-756.el9.x86_64, your OpenZFS build was silently failing to compile. This patch restores the build path for EL 9.9 and 10.3, plus adds direct support for the Linux 7.1 kernel tree.
The release lands with a mix of memory safety patches, data protection logic, and packaging improvements. It's a maintenance bump, but one that matters for production storage.
dRAID and L2ARC Get Serious Fixes
The headline fix for data integrity is a change to how dRAID handles distributed spares. The logic previously had a flaw where replacing a failed disk with a spare while the original drive stayed attached would cause ZFS to always read the spare's column. If that spare suffered silent corruption, the system would report data lost even though the original disk held a healthy copy. The problem got worse during resilvering, which could copy the corrupt spare data onto the good disk before verifying the block.
The patch now compares copies under the distributed spare during a failed read retry. If they differ, the original disk's copy wins, and the damaged spare gets repaired afterward. It adds 13 test files to cover this exact scenario, which means the OpenZFS team actually reproduced the bug before writing the fix.
L2ARC gets two patches in this release as well. The first addresses a use-after-free bug in synchronous reads. When an L2ARC read fails, ZFS retries by pulling the block from the pool, but a checksum match could trigger decompression or decryption on a buffer that the retry still intended to write to. Debug builds panicked. Release builds silently corrupted memory. The fix ensures the header buffer is taken fresh after acquiring the hash lock, which stops the race condition.
The second L2ARC patch stops the cache from writing encrypted buffers whose MAC mismatches the on-disk copy. This happens when a compressor changes output and the recompressed data no longer matches the stored version. The code now skips writing these buffers entirely, letting them be retried on next access instead of dumping corrupted data into the cache.
Packaging and CI Overhaul
For Red Hat-family users, the packaging story just got cleaner. OpenZFS 2.2.12 adds akmod support, which means the akmods service can automatically rebuild binary packages when you install a new kernel. You no longer have to wait on DKMS rebuilds or third-party package updates for every errata kernel. The kmodtool also uses kABI-baseline naming now, so errata kernels within a minor release share the same package name instead of spawning a new one for every patch version.
The CI infrastructure got a massive update too. Alpine Linux is now a default runner, Fedora 45 is in the test matrix, and unit tests run with Address Sanitizer on every pull request. Fork CI now reuses successful QEMU jobs from recent pushes on the same branch, which cuts down waiting time for contributors. These aren't the kinds of changes that make a press release, but they make the project more maintainable for everyone.
If you're running dRAID with distributed spares, or if you're on Enterprise Linux with the affected kernel versions, you should upgrade. The build breakage fix is the kind of thing that slips past automated checks until you actually need to compile a module.
Head here to the GitHub release page.
