Grown-up ZFS Data Corruption Bug
· 1h 21m
Hey hey! We recently tripped over a ZFS data corruption bug–introduced over 18 years ago! Bryan and Adam discuss with members of the Oxide team as well as Matt Ahrens, the co-inventor of ZFS. In addition to Bryan Cantrill and Adam Leventhal , speakers included Alan Hanson, Matt Keeter , Andy Fiddaman, James MacMahon, and special guest, Matt Ahrens. Previously, on Oxide and Friends: OxF s4e6 - Crucible: the Oxide Storage Service OxF s5e28 - Systems Software in the Large Some of the topics we hit on, in the order that we hit them: ZFS fsync can trigger ZIL transaction reordering and data…
Chapters
- Episode intro and bug naming
- Crucible corruption found on dogfood rack
- Failed decrypt and 32K of zeros
- Verify tool scanning dogfood downstairs
- Bonus bug found via Jepsen testing
- The affidavit and ZFS write ordering
- ZFS delayed logging and write ordering
- Speculating about the DMA controller memory
- Dogfood updates and recurring corruption
- Narrowing corruption to power cycle during repair
- Reproducing the failure on racklets
- James reproduces the bug in a small program
- Andy traces ZIL and finds reordering
- ZIL replay order and synchronous writes
- Origins of the 2007 Solaris optimization
- Tunable set to zero stops the bug
- Proper fix and performance analysis
- Team effort and lessons learned
- Closing thanks and DMA tangent
Speakers
Bryan Cantrill (host), Adam Leventhal (host), Alan Hanson, Matt Keeter, Matt Ahrens, James MacMahon, Andy Fiddaman
From the transcript
All right. Well, this is, and you know, Adam, I was, uh, I like your title for this. Cause I was like, is it a ZFS data corruption bug old enough to vote? I mean, that's, that's very, you know, that's very, very, very wordy. And then you…