Adventures in Data Corruption
· 1h 43m
Two years ago, the Oxide team encountered data corruption during a fairly simple network data transfer. The ensuing debugging sessions uncovered a truly bizarre bug involving CPU speculation! Bryan and Adam were joined by colleagues John and Rain to discuss the discovery and circuitous hunt to track down the bug. In addition to Bryan Cantrill and Adam Leventhal , speakers included John Gallagher , and Rain Paharia . Previous episodes mentioned: OxF s03e09 - Get You a State Machine for Great Good OxF s03e20 - Shipping the first Oxide rack: Tales from Manufacturing OxF s04e25 - RTO or GTFO OxF…
Chapters
- Discord, age, and opening banter
- Suspected microprocessor vulnerability and disclosure
- John introduces the update sled recovery
- How sled recovery and Installinator work
- Sleds failing to boot after recovery
- Adding SHA-256 checks around downloads
- Extra logging and the first pull request
- Debating retries in PR review
- Data corruption week begins
- Tracking corruption to Installinator's download
- Reproducing the bug outside the rack
- Runs of zeros in fetched data
- DTrace probes and CPU flickering behavior
- Psychotic bugs and reproducibility
- Clustered virtual addresses and the haunted region
- Remote debugging and the haunted VA region
- Stowaway kernel mapping for the RAM disk
- Using DTrace copyin to prove it
- KPTI, Meltdown, and the kernel-only CR3
- TLB shootdowns and past speculation bugs
- Intel and AMD responses on speculation
- Disabling speculation via MSRs
- What if the bug went unnoticed
- Root cause: stowaway mapping not flushed
- Rust, foundations, and debugging lessons
- Wrap-up and reflections
Speakers
Bryan Cantrill (host), Adam Leventhal (host), John Gallagher, Rain Paharia
From the transcript
Hello, Brian. Hey, how are you? Good. How are you doing? I'm doing well. I'm doing well. Yeah. Every time I log into Discord, you know, tautologically, every time I log into Discord, I am getting older, obviously. It's the oldest you've…