Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic
Jaehwang Jung, Sunho Park, Janggun Lee, Jeho Yeon, Jeehoon Kang
Abstract
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.
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.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites RustBelt meets relaxed memory
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites Compass: strong and compositional library specifications in relaxed memory separation logic
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites A separation logic for heap space under garbage collection
- Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic cites The future is ours: prophecy variables in separation logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites RustBelt meets relaxed memory
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites Compass: strong and compositional library specifications in relaxed memory separation logic
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites A separation logic for heap space under garbage collection
- Verifying Lock-Free Traversals in Relaxed Memory Separation Logic cites The future is ours: prophecy variables in separation logic
- Compass: strong and compositional library specifications in relaxed memory separation logic cites RustBelt meets relaxed memory
- Compass: strong and compositional library specifications in relaxed memory separation logic cites The future is ours: prophecy variables in separation logic
Cited by top-tier papers1
Builds on6
- RustBelt meets relaxed memoryHoang-Hai Dang, Jacques-Henri Jourdan, Jan-Oliver Kaiser, Derek DreyerPOPL 2020 · 68 citations
- The future is ours: prophecy variables in separation logicRalf Jung, Rodolphe Lepigre, Gaurav Parthasarathy, Marianna Rapoport et al.POPL 2020 · 62 citations
- Compass: strong and compositional library specifications in relaxed memory separation logicHoang-Hai Dang, Jaehwang Jung, Jaemin Choi, Duc-Than Nguyen et al.PLDI 2022 · 19 citations
- Modular Verification of Safe Memory Reclamation in Concurrent Separation LogicJaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim et al.OOPSLA 2023 · 10 citations
- A separation logic for heap space under garbage collectionJean-Marie Madiot, François PottierPOPL 2022 · 10 citations
Related papers
- A Proof Recipe for Linearizability in Relaxed Memory Separation LogicSunho Park, Jaewoo Kim, Ike Mulder, Jaehwang Jung et al.PLDI 2024 · 4 citations
- Raven: An SMT-Based Concurrency VerifierEkanshdeep Gupta, Nisarg Patel, Thomas WiesCAV 2025 · 1 citation
- Rely-Guarantee Reasoning for Causally Consistent Shared MemoryOri Lahav, Brijesh Dongol, Heike WehrheimCAV 2023 · 11 citations
- Verifying observational robustness against a c11-style memory modelRoy David Margalit, Ori LahavPOPL 2021 · 22 citations
- Modular data-race-freedom guarantees in the promising semanticsMinki Cho, Sung-Hwan Lee, Chung-Kil Hur, Ori LahavPLDI 2021 · 14 citations
