• This site is a private, non-commercial website. As such, you're welcome here as long as you were invited. If you would like an invite, reach out to Cliff Spark

Futurelock: A subtle risk in async Rust

  • Thread starter Thread starter bcantrill
  • Start date Start date
B

bcantrill

This RFD describes our distillation of a really gnarly issue that we hit in the Oxide control plane.[0] Not unlike our discovery of the async cancellation issue[1][2][3], this is larger than the issue itself -- and worse, the program that hits futurelock is correct from the programmer's point of view. Fortunately, the surface area here is smaller than that of async cancellation and the conditions required to hit it can be relatively easily mitigated. Still, this is a pretty deep issue -- and something that took some very seasoned Rust hands quite a while to find.
[0] Nexus node timing out on API requests · Issue #9259 · oxidecomputer/omicron
[1] 397 - Challenges with async/await in the control plane / RFD / Oxide
[2] 400 - Dealing with cancel safety in async Rust / RFD / Oxide
[3]



Comments URL: Futurelock: A subtle risk in async Rust | Hacker News

Points: 159

# Comments: 67

Continue reading...
 
Back
Top