Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic
Jaehwang Jung, Sunho Park, Janggun Lee, Jeho Yeon, Jeehoon Kang
摘要
Read-Copy-Update (RCU) is a critical synchronization mechanism for concurrent data structures, enabling efficient deferred memory reclamation. However, implementing and using RCU correctly is challenging due to its inherent concurrency complexities. While previous work verified RCU, they either relied on unrealistic assumptions of sequentially consistent (SC) memory model or lacked three key features of general-purpose RCU libraries: modular specification, switchable critical sections, and concurrent writer support. We present the first formal verification of a general-purpose RCU in realistic relaxed memory consistency (RMC), addressing the challenges posed by these features. To achieve modular specification that encompasses relaxed behaviors, we extend existing SC specifications to account for explicit synchronization. To support switchable critical sections, which require read-after-write (RAW) synchronization, we introduce a reasoning principle for RAW-synchronizing SC fences . Using this principle, we also present the first formal verification of Peterson's mutex in RMC. To support concurrent writers performing partially ordered writes, we avoid assuming a total order of links and instead formulate invariants based on per-node incoming link histories. Our proofs are mechanized in the iRC11 relaxed memory separation logic, built upon Iris, in Rocq.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 RustBelt meets relaxed memory
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 Compass: strong and compositional library specifications in relaxed memory separation logic
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 A separation logic for heap space under garbage collection
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 RustBelt meets relaxed memory
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 Compass: strong and compositional library specifications in relaxed memory separation logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 A separation logic for heap space under garbage collection
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic 引用了 The future is ours: prophecy variables in separation logic
- Compass: strong and compositional library specifications in relaxed memory separation logic 引用了 RustBelt meets relaxed memory
- Compass: strong and compositional library specifications in relaxed memory separation logic 引用了 The future is ours: prophecy variables in separation logic
引用它的顶会 Paper1
它引用的 Paper6
- 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 次引用
- Compass: strong and compositional library specifications in relaxed memory separation logicHoang-Hai Dang, Jaehwang Jung, Jaemin Choi, Duc-Than Nguyen 等PLDI 2022 · 19 次引用
- Modular Verification of Safe Memory Reclamation in Concurrent Separation LogicJaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim 等OOPSLA 2023 · 10 次引用
- A separation logic for heap space under garbage collectionJean-Marie Madiot, François PottierPOPL 2022 · 10 次引用
相关 Paper
- A Proof Recipe for Linearizability in Relaxed Memory Separation LogicSunho Park, Jaewoo Kim, Ike Mulder, Jaehwang Jung 等PLDI 2024 · 4 次引用
- Raven: An SMT-Based Concurrency VerifierEkanshdeep Gupta, Nisarg Patel, Thomas WiesCAV 2025 · 1 次引用
- Rely-Guarantee Reasoning for Causally Consistent Shared MemoryOri Lahav, Brijesh Dongol, Heike WehrheimCAV 2023 · 11 次引用
- Verifying observational robustness against a c11-style memory modelRoy David Margalit, Ori LahavPOPL 2021 · 22 次引用
- Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 次引用
