Yashme: detecting persistency races
Hamed Gorjiara, Guoqing Harry Xu, Brian Demsky
摘要
Persistent memory (PM) or Non-Volatile Random-Access Memory (NVRAM) hardware such as Intel's Optane memory product promises to transform how programs store and manipulate information. Ensuring that persistent memory programs are crash consistent is a major challenge. We present a novel class of crash consistency bugs for persistent memory programs, which we call persistency races. Persistency races can cause non-atomic stores to be made partially persistent. Persistency races arise due to the interaction of standard compiler optimizations with persistent memory semantics.
We present Yashme, the first detector for persistency races. A major challenge is that in order to detect persistency races, the execution must crash in a very narrow window between a store with a persistency race and its corresponding cache flush operation, making it challenging for naïve techniques to be effective. Yashme overcomes this challenge with a novel technique for detecting races in executions that are prefixes of the pre-crash execution. This technique enables Yashme to effectively find persistency races even if the injected crashes do not fall into that window. We have evaluated Yashme on a range of persistent memory benchmarks and have found 24 real persistency races that have never been reported before.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Memento: A Framework for Detectable Recoverability in Persistent Memory 引用了 Persistency semantics of the Intel-x86 architecture
- LightWSP: Whole-System Persistence on the Cheap 引用了 Fast, flexible, and comprehensive bug detection for persistent memory programs
- LightWSP: Whole-System Persistence on the Cheap 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- LightWSP: Whole-System Persistence on the Cheap 引用了 Compiler-Directed Whole-System Persistence
- LightWSP: Whole-System Persistence on the Cheap 引用了 Scoped Buffered Persistency Model for GPUs
- 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 引用了 Persistency semantics of the Intel-x86 architecture
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory 引用了 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?
- Compiler-Directed Whole-System Persistence 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Scoped Buffered Persistency Model for GPUs 引用了 Fast, flexible, and comprehensive bug detection for persistent memory programs
- Scoped Buffered Persistency Model for GPUs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Scoped Buffered Persistency Model for GPUs 引用了 Persistency semantics of the Intel-x86 architecture
- AGAMOTTO: How Persistent is your Persistent Memory Application? 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
引用它的顶会 Paper10
- Compiler-Directed Whole-System PersistenceJianping Zeng, Tong Zhang, Changhee JungISCA 2024 · 13 次引用
- LightWSP: Whole-System Persistence on the CheapYuchen Zhou, Jianping Zeng, Changhee JungMICRO 2024 · 8 次引用
- Scoped Buffered Persistency Model for GPUsShweta Pandey, Aditya K. Kamath, Arkaprava BasuASPLOS 2023 · 6 次引用
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 次引用
- Memento: A Framework for Detectable Recoverability in Persistent MemoryKyeongmin Cho, Seungmin Jeon, Azalea Raad, Jeehoon KangPLDI 2023 · 4 次引用
它引用的 Paper9
- Fuzzing File Systems via Two-Dimensional Input Space ExplorationWen Xu, Hyungon Moon, Sanidhya Kashyap, Po-Ning Tseng 等S&P 2019 · 117 次引用
- Persistency semantics of the Intel-x86 architectureAzalea Raad, John Wickerson, Gil Neiger, Viktor VafeiadisPOPL 2020 · 61 次引用
- 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 次引用
相关 Paper
- Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 次引用
- HybridPersist: A Compiler Support for User-Friendly and Efficient PM ProgrammingYiyu Zhang, Yongzhi Wang, Yanfeng Gao, Xuandong Li 等OOPSLA 2025
- Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 次引用
- Checking robustness to weak persistency modelsHamed Gorjiara, Weiyu Luo, Alex Lee, Guoqing Harry Xu 等PLDI 2022 · 13 次引用
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 次引用
