Lune

OOPSLA2022Top-tier venue

Le temps des cerises: efficient temporal stack safety on capability machines using directed capabilities

Aïna Linn Georges, Alix Trieu, Lars Birkedal

Abstract

Capability machines are a type of CPUs that support fine-grained privilege separation using capabilities , machine words that include forms of authority. Formal models of capability machines and associated calling conventions have so far focused on establishing two forms of stack safety properties, namely local state encapsulation and well-bracketed control flow. We introduce a novel kind of directed capabilities and show how to use them to make an earlier suggested calling convention more efficient. In contrast to earlier work on capability machine models we do not only consider integrity properties but also confidentiality properties; we provide a unary logical relation to reason about the former and a binary logical relation to reason about the latter, each expressive enough to reason about temporal stack safety. While the logical relations are useful for reasoning about concrete examples, they do not on their own demonstrate that stack safety holds for a large class of programs. Therefore, we also show full abstraction of a compiler from an overlay semantics that internalizes the calling convention as a single call step and explicitly keeps track of the call stack and frame lifetimes to a base capability machine. All results have been mechanized in Coq.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Asynchronous Probabilistic Couplings in Higher-Order Separation Logic cites Trillium: Higher-Order Concurrent and Distributed Separation Logic for Intensional Refinement
  • Trillium: Higher-Order Concurrent and Distributed Separation Logic for Intensional Refinement cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
  • Efficient and provable local capability revocation using uninitialized capabilities cites Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation process
  • Efficient and provable local capability revocation using uninitialized capabilities cites Cornucopia: Temporal Safety for CHERI Heaps
  • VMSL: A Separation Logic for Mechanised Robust Safety of Virtual Machines Communicating above FF-A cites Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation process
  • VMSL: A Separation Logic for Mechanised Robust Safety of Virtual Machines Communicating above FF-A cites Efficient and provable local capability revocation using uninitialized capabilities
  • Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware Architecture cites Efficient and provable local capability revocation using uninitialized capabilities
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Asynchronous Probabilistic Couplings in Higher-Order Separation LogicSimon Oddershede Gregersen, Alejandro Aguirre, Philipp G. Haselwarter, Joseph Tassarotti et al.POPL 2024 · 23 citations
  2. Trillium: Higher-Order Concurrent and Distributed Separation Logic for Intensional RefinementAmin Timany, Simon Oddershede Gregersen, Léo Stefanesco, Jonas Kastberg Hinrichsen et al.POPL 2024 · 14 citations
  3. Proof Automation for Linearizability in Separation LogicIke Mulder, Robbert KrebbersOOPSLA 2023 · 8 citations
  4. VMSL: A Separation Logic for Mechanised Robust Safety of Virtual Machines Communicating above FF-AZongyuan Liu, Sergei Stepanenko, Jean Pichon-Pharabod, Amin Timany et al.PLDI 2023 · 7 citations
  5. Morello-Cerise: A Proof of Strong Encapsulation for the Arm Morello Capability Hardware ArchitectureAngus Hammond, Ricardo Almeida, Thomas Bauereiss, Brian Campbell et al.PLDI 2025 · 2 citations

Builds on5

  1. Cornucopia: Temporal Safety for CHERI HeapsNathaniel Wesley Filardo, Brett F. Gutstein, Jonathan Woodruff, Sam Ainsworth et al.S&P 2020 · 71 citations
  2. Rigorous engineering for hardware security: Formal modelling and proof in the CHERI design and implementation processKyndylan Nienhuis, Alexandre Joannou, Thomas Bauereiss, Anthony C. J. Fox et al.S&P 2020 · 43 citations
  3. When Good Components Go Bad: Formally Secure Compilation Despite Dynamic CompromiseCarmine Abate, Arthur Azevedo de Amorim, Roberto Blanco, Ana Nora Evans et al.CCS 2018 · 43 citations
  4. Protecting the Stack with Metadata Policies and Tagged HardwareNick Roessler, André DeHonS&P 2018 · 37 citations
  5. Efficient and provable local capability revocation using uninitialized capabilitiesAïna Linn Georges, Armaël Guéneau, Thomas Van Strydonck, Amin Timany et al.POPL 2021 · 30 citations

Related papers

  1. Endangered by the Language But Saved by the Compiler: Robust Safety via Semantic Back-TranslationNiklas Mück, Aïna Linn Georges, Derek Dreyer, Deepak Garg et al.POPL 2026
  2. The Logical Essence of Well-Bracketed Control FlowAmin Timany, Armaël Guéneau, Lars BirkedalPOPL 2024 · 5 citations
  3. Capstone: A Capability-based Foundation for Trustless Secure Memory AccessJason Zhijingcheng Yu, Conrad Watt, Aditya Badole, Trevor E. Carlson et al.USENIX Security 2023
  4. Iris-MSWasm: Elucidating and Mechanising the Security Invariants of Memory-Safe WebAssemblyMaxime Legoupil, June Rousseau, Aïna Linn Georges, Jean Pichon-Pharabod et al.OOPSLA 2024 · 5 citations
  5. Security Reasoning via Substructural Dependency TrackingHemant Gouni, Frank Pfenning, Jonathan AldrichPOPL 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines