Lune

OOPSLA2023Top-tier venue

Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic

Jaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim, Sunho Park, Jeehoon Kang

Abstract

Formal verification is an effective method to address the challenge of designing correct and efficient concurrent data structures. But verification efforts often ignore memory reclamation , which involves nontrivial synchronization between concurrent accesses and reclamation. When incorrectly implemented, it may lead to critical safety errors such as use-after-free and the ABA problem. Semi-automatic safe memory reclamation schemes such as hazard pointers and RCU encapsulate the complexity of manual memory management in modular interfaces. However, this modularity has not been carried over to formal verification. We propose modular specifications of hazard pointers and RCU, and formally verify realistic implementations of them in concurrent separation logic. Specifically, we design abstract predicates for hazard pointers that capture the meaning of validating the protection of nodes, and those for RCU that support optimistic traversal to possibly retired nodes. We demonstrate that the specifications indeed facilitate modular verification in three criteria: compositional verification, general applicability, and easy integration. In doing so, we present the first formal verification of Harris’s list, the Harris-Michael list, the Chase-Lev deque, and RDCSS with reclamation. We report the Coq mechanization of all our results in the Iris separation logic framework.

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.

5 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

  • OZZ: Identifying Kernel Out-of-Order Concurrency Bugs with In-Vivo Memory Access Reordering cites A marriage of pointer- and epoch-based reclamation
  • Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites RustBelt meets relaxed memory
  • Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites Diaframe: automated verification of fine-grained concurrent programs in Iris
  • Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic
  • Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites The future is ours: prophecy variables in separation logic
  • Concurrent deferred reference counting with constant-time overhead cites A marriage of pointer- and epoch-based reclamation
  • A Verified Parallel Scheduler for OCaml 5 cites The future is ours: prophecy variables in separation logic
  • Diaframe: automated verification of fine-grained concurrent programs in Iris cites RustBelt meets relaxed memory
  • Diaframe: automated verification of fine-grained concurrent programs in Iris cites The future is ours: prophecy variables in separation logic
  • Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic cites RustBelt meets relaxed memory
  • Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic cites The future is ours: prophecy variables in separation logic
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites A marriage of pointer- and epoch-based reclamation
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Concurrent deferred reference counting with constant-time overhead
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. OZZ: Identifying Kernel Out-of-Order Concurrency Bugs with In-Vivo Memory Access ReorderingDae R. Jeong, Yewon Choi, Byoungyoung Lee, Insik Shin et al.SOSP 2024 · 4 citations
  2. Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 citations
  3. Verifying Lock-Free Traversals in Relaxed Memory Separation LogicSunho Park, Jaehwang Jung, Janggun Lee, Jeehoon KangPLDI 2025 · 1 citation
  4. Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation LogicJaehwang Jung, Sunho Park, Janggun Lee, Jeho Yeon et al.PLDI 2025 · 1 citation
  5. A Verified Parallel Scheduler for OCaml 5Clément Allain, Gabriel SchererPLDI 2026

Builds on12

  1. RustBelt meets relaxed memoryHoang-Hai Dang, Jacques-Henri Jourdan, Jan-Oliver Kaiser, Derek DreyerPOPL 2020 · 68 citations
  2. The future is ours: prophecy variables in separation logicRalf Jung, Rodolphe Lepigre, Gaurav Parthasarathy, Marianna Rapoport et al.POPL 2020 · 62 citations
  3. Diaframe: automated verification of fine-grained concurrent programs in IrisIke Mulder, Robbert Krebbers, Herman GeuversPLDI 2022 · 27 citations
  4. Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 citations
  5. A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 citations

Related papers

  1. Abductive Inference of Separation Logic Specifications with Isorecursive User-Defined Predicates and Magic WandsNicolas Klose, Peter MüllerOOPSLA 2026 · 1 citation
  2. Verifying concurrent search structure templatesSiddharth Krishna, Nisarg Patel, Dennis E. Shasha, Thomas WiesPLDI 2020 · 19 citations
  3. Beyond Backtracking: Connections in Fine-Grained Concurrent Separation LogicIke Mulder, Lukasz Czajka, Robbert KrebbersPLDI 2023 · 2 citations
  4. Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 citations
  5. A High-Level Separation Logic for Heap Space under Garbage CollectionAlexandre Moine, Arthur Charguéraud, François PottierPOPL 2023
Dusk over the sea between two cliffs drawn in fine vertical lines