paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic

并发分离逻辑中安全内存回收的模块化验证
OOPSLA 7(OOPSLA2)2023匹配度 2/10 · 论文属于并发分离逻辑与形式验证,与用户关注的 AI↔PL 交叉方向(LLM/Agent 改进静态分析或形式化验证、ML/Agent 程序的静态分析)没有直接关联,也未涉及浮点或贝叶斯程序分析及其与 LLM 的交叉。仅可作为 PL/形式验证背景工作存档,不属于当前核心追踪问题。引用 10 inbox
Jaehwang Jung, Janggun Lee, Jaemin Choi, Jaewoo Kim, Sunho Park, Jeehoon Kang
crossref: 2026-09-10

AI 速览

一句话:在并发分离逻辑中为 hazard pointer 和 RCU 设计模块化抽象谓词,并首次形式验证带内存回收的多个并发数据结构。

并发数据结构的形式验证常忽略内存回收,而回收与并发访问之间的同步若出错会导致 use-after-free 和 ABA 问题。hazard pointer、RCU 等半自动安全回收方案虽以模块化接口封装手动内存管理复杂度,但这一模块性尚未延续到形式验证。本文在并发分离逻辑中提出 hazard pointer 与 RCU 的模块化规约,设计抽象谓词分别刻画节点保护验证和乐观遍历已退休节点的语义,并在 Iris 框架中用 Coq 机器化验证其现实实现。工作从组合式验证、通用适用性和易集成三方面展示规约的模块化能力,并首次形式验证了带回收的 Harris 表、Harris-Michael 表、Chase-Lev deque 与 RDCSS。

问题
并发数据结构验证常忽略内存回收,hazard pointer/RCU 等方案的模块化接口未被形式验证继承,错误实现可能导致 use-after-free 和 ABA 等安全错误。
方法
在并发分离逻辑(Iris)中为 hazard pointer 和 RCU 设计抽象谓词与模块化规约,并机器化验证其现实实现。
评估
以组合式验证、通用适用性和易集成三项标准评估规约,并在 Coq/Iris 中完成 Harris 表、Harris-Michael 表、Chase-Lev deque 和 RDCSS 等带回收实现的首次形式验证。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1827,
  title = {Modular Verification of Safe Memory Reclamation in Concurrent Separation Logic},
  author = {Jaehwang Jung and Janggun Lee and Jaemin Choi and Jaewoo Kim and Sunho Park and Jeehoon Kang},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {OOPSLA2},
  year = {2023},
  doi = {10.1145/3622827}
}