1PodcastApp My Podcasts My Podcasts

Oxide and Friends

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

  1. Episode intro and bug naming
  2. Crucible corruption found on dogfood rack
  3. Failed decrypt and 32K of zeros
  4. Verify tool scanning dogfood downstairs
  5. Bonus bug found via Jepsen testing
  6. The affidavit and ZFS write ordering
  7. ZFS delayed logging and write ordering
  8. Speculating about the DMA controller memory
  9. Dogfood updates and recurring corruption
  10. Narrowing corruption to power cycle during repair
  11. Reproducing the failure on racklets
  12. James reproduces the bug in a small program
  13. Andy traces ZIL and finds reordering
  14. ZIL replay order and synchronous writes
  15. Origins of the 2007 Solaris optimization
  16. Tunable set to zero stops the bug
  17. Proper fix and performance analysis
  18. Team effort and lessons learned
  19. 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…