TraceLinking Implementations with Their Verified Designs
Finn Hackett, Ivan Beschastnikh
摘要
An important correctness gap exists between formally verifiable distributed system designs and their implementations. Recently proposed work bridges this gap by automatically extracting, or compiling, an implementation from the formally-verified design. The runtime behavior of this compiled implementation, however, may deviate from its design. For example, the compiler may contain bugs, the design may make incorrect assumptions about the deployment environment, or the implementation might be misconfigured.
In this paper we develop TraceLink, a methodology to detect such deviations through trace validation. TraceLink maps traces, that capture an execution's behavior, to the corresponding formal design. Unlike previous work on trace validation, our approach is completely automated.
We implement TraceLink for PGo, a compiler from Modular PlusCal to both TLA + and Go. We present a formal semantics for interpreting execution traces as TLA + , along with a templatization strategy to minimize the size of the TLA + tracing specification. We also present a novel trace path validation strategy, called sidestep, which detects bugs faster and with little additional overhead.
We evaluated TraceLink on several distributed systems, including an MPCal implementation of a Raft key-value store. Our evaluation demonstrates that TraceLink is able to find 9 previously undetected and diverse bugs in PGo's TCB, including a bug in the PGo compiler itself. We also show the effectiveness of the templatization approach and the sidestep path validation strategy.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SysMoBench: Evaluating AI on Formally Specifying Complex Real-World Systems 引用了 Smart Casual Verification of the Confidential Consortium Framework
- SysMoBench: Evaluating AI on Formally Specifying Complex Real-World Systems 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
- Model-Guided Fuzzing of Distributed Systems 引用了 Model Checking Guided Testing for Distributed Systems
- Model-Guided Fuzzing of Distributed Systems 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
- Smart Casual Verification of the Confidential Consortium Framework 引用了 Model Checking Guided Testing for Distributed Systems
- Smart Casual Verification of the Confidential Consortium Framework 引用了 Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3
引用它的顶会 Paper1
它引用的 Paper4
- Using Lightweight Formal Methods to Validate a Key-Value Storage Node in Amazon S3James Bornholt, Rajeev Joshi, Vytautas Astrauskas, Brendan Cully 等SOSP 2021 · 63 次引用
- Model Checking Guided Testing for Distributed SystemsDong Wang, Wensheng Dou, Yu Gao, Chenao Wu 等EuroSys 2023 · 21 次引用
- Smart Casual Verification of the Confidential Consortium FrameworkHeidi Howard, Markus A. Kuppe, Edward Ashton, Amaury Chamayou 等NSDI 2025 · 13 次引用
- Model-Guided Fuzzing of Distributed SystemsEge Berkay Gulcan, Burcu Kulahcioglu Ozkan, Rupak Majumdar, Srinidhi NagendraOOPSLA 2025 · 3 次引用
相关 Paper
- Compiling Distributed System Models with PGoA. Finn Hackett, Shayan Hosseini, Renato Costa, Matthew Do 等ASPLOS 2023 · 13 次引用
- Efficient Build Dependency Verification Using eBPF and Incremental AnalysisYuta Saito, Kazunori Sakamoto, Hironori WashizakiICSE 2026
- TraceRTL: Agile Performance Evaluation for Microarchitecture ExplorationZifei Zhang, Yinan Xu, Sa Wang, Dan Tang 等HPCA 2026
- eXtreme Modelling in PracticeA. Jesse Jiryu Davis, Max Hirschhorn, Judah SchvimerVLDB 2020
- Validating Network Protocol Parsers with Traceable RFC Document InterpretationMingwei Zheng, Danning Xie, Qingkai Shi, Chengpeng Wang 等ISSTA 2025 · 4 次引用
