Understanding and detecting deep memory persistency bugs in NVM programs with DeepMC
摘要
To facilitate programming with non-volatile memory (NVM), a set of memory persistency models, such as strict and epoch persistency, have been proposed. Although these models provide high-level guidance for reasoning about the data persistence, implementing them correctly is nontrivial. Our study of the well-developed NVM frameworks and libraries reveals that many of them have deep semantic bugs that are strongly relevant to the model specifications. Furthermore, it is difficult to detect them with existing testing and bug-finding tools.
To further understand these persistency bugs, we conduct a characterization study, and present a taxonomy of these persistency bugs. We find that many persistency bugs are caused by the semantic mismatches between the model specifications and their real implementation in NVM programs. To identify these deep persistency bugs, we build a toolkit named DeepMC with both static and dynamic analysis. DeepMC is driven by a set of rules based on our characterization study and persistency model specifications. Our results show that DeepMC can efficiently pinpoint various persistency bugs in a variety of NVM programming frameworks/libraries, and their example programs, including PMDK and persistent memory file system (PMFS) from Intel, the NVM-Direct library from Oracle, and Mnemosyne framework from academia.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Constraint Based Program Repair for Persistent Memory Bugs 引用了 Jaaru: efficiently model checking persistent memory programs
- Constraint Based Program Repair for Persistent Memory Bugs 引用了 Fast, flexible, and comprehensive bug detection for persistent memory programs
- Constraint Based Program Repair for Persistent Memory Bugs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Constraint Based Program Repair for Persistent Memory Bugs 引用了 PMFuzz: test case generation for persistent memory programs
- Constraint Based Program Repair for Persistent Memory Bugs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 Jaaru: efficiently model checking persistent memory programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 Fast, flexible, and comprehensive bug detection for persistent memory programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 PMFuzz: test case generation for persistent memory programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Jaaru: efficiently model checking persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Jaaru: efficiently model checking persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Fast, flexible, and comprehensive bug detection for persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Fast, flexible, and comprehensive bug detection for persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- PMFuzz: test case generation for persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- PMFuzz: test case generation for persistent memory programs 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- Discovering Likely Program Invariants for Persistent Memory 引用了 Constraint Based Program Repair for Persistent Memory Bugs
- Discovering Likely Program Invariants for Persistent Memory 引用了 Mumak: Efficient and Black-Box Bug Detection for Persistent Memory
- Discovering Likely Program Invariants for Persistent Memory 引用了 Jaaru: efficiently model checking persistent memory programs
- Discovering Likely Program Invariants for Persistent Memory 引用了 PMFuzz: test case generation for persistent memory programs
- Discovering Likely Program Invariants for Persistent Memory 引用了 AGAMOTTO: How Persistent is your Persistent Memory Application?
- AGAMOTTO: How Persistent is your Persistent Memory Application? 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
引用它的顶会 Paper3
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 次引用
- Constraint Based Program Repair for Persistent Memory BugsZunchen Huang, Chao WangICSE 2024 · 3 次引用
- Discovering Likely Program Invariants for Persistent MemoryZunchen Huang, Srivatsan Ravi, Chao WangASE 2024 · 1 次引用
它引用的 Paper7
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch 等ASPLOS 2020 · 60 次引用
- AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn 等OSDI 2020 · 43 次引用
- Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 次引用
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 次引用
- Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 次引用
相关 Paper
- Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value StoresXinwei Fu, Wook-Hee Kim, Ajay Paddayuru Shreepathi, Mohannad Ismail 等SOSP 2021 · 17 次引用
- Chipmunk: Investigating Crash-Consistency in Persistent-Memory File SystemsHayley LeBlanc, Shankara Pailoor, Om Saran K. R. E., Isil Dillig 等EuroSys 2023 · 11 次引用
- Checking robustness to weak persistency modelsHamed Gorjiara, Weiyu Luo, Alex Lee, Guoqing Harry Xu 等PLDI 2022 · 13 次引用
- Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 次引用
- SafePM: a sanitizer for persistent memoryKartal Kaan Bozdogan, Dimitrios Stavrakakis, Shady Issa, Pramod BhatotiaEuroSys 2022 · 10 次引用
