Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic
Jaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim, Sunho Park, Jeehoon Kang
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OZZ: Identifying Kernel Out-of-Order Concurrency Bugs with In-Vivo Memory Access Reordering 引用了 A marriage of pointer- and epoch-based reclamation
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 RustBelt meets relaxed memory
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Diaframe: automated verification of fine-grained concurrent programs in Iris
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Concurrent deferred reference counting with constant-time overhead 引用了 A marriage of pointer- and epoch-based reclamation
- A Verified Parallel Scheduler for OCaml 5 引用了 The future is ours: prophecy variables in separation logic
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 RustBelt meets relaxed memory
- Diaframe: automated verification of fine-grained concurrent programs in Iris 引用了 The future is ours: prophecy variables in separation logic
- Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic 引用了 RustBelt meets relaxed memory
- Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals 引用了 A marriage of pointer- and epoch-based reclamation
- Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals 引用了 Concurrent deferred reference counting with constant-time overhead
引用它的顶会 Paper5
- OZZ: Identifying Kernel Out-of-Order Concurrency Bugs with In-Vivo Memory Access ReorderingDae R. Jeong, Yewon Choi, Byoungyoung Lee, Insik Shin 等SOSP 2024 · 4 次引用
- Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 次引用
- Verifying Lock-Free Traversals in Relaxed Memory Separation LogicSunho Park, Jaehwang Jung, Janggun Lee, Jeehoon KangPLDI 2025 · 1 次引用
- Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation LogicJaehwang Jung, Sunho Park, Janggun Lee, Jeho Yeon 等PLDI 2025 · 1 次引用
- A Verified Parallel Scheduler for OCaml 5Clément Allain, Gabriel SchererPLDI 2026
它引用的 Paper12
- RustBelt meets relaxed memoryHoang-Hai Dang, Jacques-Henri Jourdan, Jan-Oliver Kaiser, Derek DreyerPOPL 2020 · 68 次引用
- The future is ours: prophecy variables in separation logicRalf Jung, Rodolphe Lepigre, Gaurav Parthasarathy, Marianna Rapoport 等POPL 2020 · 62 次引用
- Diaframe: automated verification of fine-grained concurrent programs in IrisIke Mulder, Robbert Krebbers, Herman GeuversPLDI 2022 · 27 次引用
- Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 次引用
- A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 次引用
相关 Paper
- Abductive Inference of Separation Logic Specifications with Isorecursive User-Defined Predicates and Magic WandsNicolas Klose, Peter MüllerOOPSLA 2026 · 1 次引用
- Verifying concurrent search structure templatesSiddharth Krishna, Nisarg Patel, Dennis E. Shasha, Thomas WiesPLDI 2020 · 19 次引用
- Beyond Backtracking: Connections in Fine-Grained Concurrent Separation LogicIke Mulder, Lukasz Czajka, Robbert KrebbersPLDI 2023 · 2 次引用
- Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 次引用
- A High-Level Separation Logic for Heap Space under Garbage CollectionAlexandre Moine, Arthur Charguéraud, François PottierPOPL 2023
