The Hardest Kind of Unsafe Rust

Oxide and Friends · 13 Jun 2026 · 1h 28m · Episode 14

What this episode covers

Rain Paharia, an engineer at Oxide Computer Company, joins Bryan Cantrill and Adam Leventhal to discuss the `iddqd` Rust crate, which allows keys to be borrowed from values in maps to avoid duplication. Paharia explains that implementing this efficiently requires 'unsafe Rust,' specifically dealing with the 'hardest kind' where the library must remain sound even when user-provided code behaves pathologically or incorrectly. The conversation details how Paharia used property-based testing, Miri, and LLMs to find and fix bugs related to mutable aliasing and panic safety in the crate. The discussion highlights the rigorous responsibility required when writing unsafe code that interacts with untrusted or buggy safe code.

Mentioned

Companies
Oxide Computer Company, Ericsson, Google, MITRE
Products
Omicron, CockroachDB, Bun, Doom, Castle Wolfenstein, Battlefield, DTrace
Tools
Miri
Also
Rain Paharia, Bryan Cantrill, Adam Leventhal, iddqd, John Gallagher, Claude Opus 4.7, GPT 5.5, Zig, Rust, Haskell, C, LLVM, Ben Leonard, ChatGPT, Angela Lee Brinker, Sebastian, Dan Cross, Ixie, Robert Ledru, Donald Sobel, Strange But True, Rustnomicon, POPL, PLDI, Ralph Young, BTreeMap, HashMap, Vec, splitter_mut, iter_mut, org, thread_local, stacked borrows, tree borrows, mid level intermediate representation, MIR, JSON, CFFI, JNI, C++, Java, JavaScript, Node.js, V8, Hubris, Hacker News, Lobsters, Mermaid, Discord, Mastodon, crates.io, UUID, sled, disk, sled inventory, natural key, clone, Unsafe Perform IO

Other shows on the same ground, closest first.

  • The Amp Hour · 57m

    Finding Hardware Flaws with Laura Abbott

    Laura Abbott, an engineer at Oxide Computer, discusses her accidental discovery of a buffer overflow vulnerability in the ROM update mechanism of the NXP LPC55S69 microcontroller while working on Oxide's server root of trust. She explains how Oxide is rebuilding the server from the ground up with a focus on hardware security, utilizing their open-source operating system Hubris and the Rust programming language to mitigate risks like memory safety issues. The conversation covers the architecture of the server's secure components, including the service processor and TrustZone-M, as well as the challenges of remote hardware debugging and contributing to the Linux kernel community.

  • Hackaday Podcast · 1h 10m

    Ep 387: Superhuman Clocks, CAN in USB-C, and the Joys of Bare Metal

    Hackaday editors Elliot Williams and Tom Nardi discuss recent community hacks, including Mikey Sklar's work to bring MicroPython's Viper and empy cross speedups to CircuitPython, and Bas Bottberg's reverse engineering of a Bluetooth printer using bleak. They also cover Ben's complete firmware rewrite of an E-grooter in Rust, which involved discovering CAN bus over USB-C, and Egg Karate Singh's complex mechanical clocks like Ovodio. The episode concludes with Hackaday Europe talks: Sylvain's bare metal 'Minimacy' virtual machine for security-critical applications, and Janelle Wellen's presentation on space mission hacks and troubleshooting.

  • The Pragmatic Embedded Podcast · 35m

    Rust with Milica Kostic

    Milica Kostic, an embedded software architect with a background in electrical engineering and safety-critical industries like medical devices, discusses her journey from C/C++ to adopting Rust in production. She explains that the most successful adoption occurred in a greenfield embedded Linux project using a microservice architecture, which allowed for clean isolation of Rust code and minimized complex C/C++ interoperability challenges. Kostic highlights the benefits of Rust's tooling, such as Cargo and built-in static analysis, while noting current limitations in microcontroller support, IDE tooling, and certified stacks like BLE.

  • Embedded.fm · 1h 07m

    531: Sequestering the Mess

    Elecia White and Christopher White discuss winning the IEEE Educational Activities Board Meritorious Achievement Award for their podcast, Embedded.fm, and celebrate the milestone with informal education outreach. Christopher details his work integrating Rust libraries into Zephyr RTOS and struggling with Memfault's data extraction capabilities, while Elecia manages a complex robotics project. They also review books like Cory Doctorow's 'The Reverse Centaur's Guide to Life After AI' and 'Programmers at Work,' debating the ethics of taking advice from controversial figures and the societal impact of AI.

  • Hackaday Podcast · 1h 08m

    Ep048: Truly Trustworthy Hardware, Glowing Uranium Marbles, Bitstreaming the USB, Chaos of Congress

    Hackaday editors Mike Szczys and Elliot Williams review the week's most interesting hardware hacks, starting with Elliot's experience at the Chaos Communications Congress (36c3), where he showcased a hoverboard-derived electric cargo carrier and discussed various community projects. The hosts then cover a diverse range of builds, including a verifiable hardware platform called 'Be Trusted' designed to prevent tampering, a uranium marble-based random number generator, and a VGA-to-USB adapter reverse-engineered for bitstreaming. They also highlight creative uses of 3D printing for paper pulp molds, a discrete 1-kilopixel camera, and the democratization of FPGAs and AI on the edge.

The summary, chapters and topics are generated from the episode’s audio by this directory, not written by Oxide and Friends. The episode itself belongs to its publisher.