arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.03642cs.LOcs.PL
收藏

并发分离逻辑中 Chase-Lev 双端队列的形式化验证

Formal Verification of Chase-Lev Deque in Concurrent Separation Logic

Jaemin Choi

AI总结:

本论文利用并发分离逻辑并在 Coq proof assistant 中对 Chase-Lev deque 进行了形式化验证,采用无界现实实现与 linearizability 强规范,满足最小可信计算基等三大标准,并扩展支持安全内存回收与松弛内存模型基础。

摘要:

Chase-Lev deque 是一种并发数据结构,旨在为多处理器调度提供高效的负载均衡。它采用工作窃取策略,其中每个线程拥有自己的工作窃取双端队列来存储任务,空闲线程则从其他线程窃取任务。然而,鉴于软件存在固有的错误风险,特别是在多处理器环境中,对程序和数据结构进行形式化证明以确立其正确性至关重要。据我们所知,尚无针对 Chase-Lev deque 的形式化验证工作能够同时满足三个关键标准:(1)使用最小可信计算基,(2)使用现实且无限制的实现,以及(3)证明强规范。在本论文中,我们通过使用并发分离逻辑对 Chase-Lev deque 进行形式化验证来填补这一空白。我们的工作在 Coq proof assistant 中实现了机械化,且我们验证过的实现在其能处理的任务数量上是现实且无界的。此外,我们采用 linearizability 作为规范,因为它被广泛认为是并发数据结构的强规范。因此,我们的工作满足了上述形式化验证的所有三个标准。此外,我们扩展了验证以支持安全的内存回收,并为在 relaxed memory model 中验证 Chase-Lev deque 提供了基础。

英文摘要:

Chase-Lev deque is a concurrent data structure designed for efficient load balancing in multiprocessor scheduling. It employs a work-stealing strategy, where each thread possesses its own work-stealing deque to store tasks, and idle threads steal tasks from other threads. However, given the inherent risk of bugs in software, particularly in a multiprocessor environment, it is crucial to formally establish the correctness of programs and data structures. To our knowledge, no formal verification work for the Chase-Lev deque has met three key criteria: (1) utilizing a minimal trusted computing base, (2) using a realistic and unrestricted implementation, and (3) proving a strong specification. In this thesis, we address this gap by presenting the formal verification of the Chase-Lev deque using a concurrent separation logic. Our work is mechanized in the Coq proof assistant, and our verified implementation is both realistic and unbounded in terms of the number of tasks it can handle. Also, we adopt linearizability as the specification, as it is widely recognized as a strong specification for concurrent data structures. Consequently, our work satisfies all three aforementioned criteria for formal verification. Additionally, we extend our verification to support safe memory reclamation, and provide a basis for verifying the Chase-Lev deque in the relaxed memory model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑