Yashme: detecting persistency races
Hamed Gorjiara, Guoqing Harry Xu, Brian Demsky
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Memento: A Framework for Detectable Recoverability in Persistent Memory cites Persistency semantics of the Intel-x86 architecture
- LightWSP: Whole-System Persistence on the Cheap cites Fast, flexible, and comprehensive bug detection for persistent memory programs
- LightWSP: Whole-System Persistence on the Cheap cites Cross-Failure Bug Detection in Persistent Memory Programs
- LightWSP: Whole-System Persistence on the Cheap cites Compiler-Directed Whole-System Persistence
- LightWSP: Whole-System Persistence on the Cheap cites Scoped Buffered Persistency Model for GPUs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory cites Fast, flexible, and comprehensive bug detection for persistent memory programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory cites Cross-Failure Bug Detection in Persistent Memory Programs
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory cites Persistency semantics of the Intel-x86 architecture
- Mumak: Efficient and Black-Box Bug Detection for Persistent Memory cites AGAMOTTO: How Persistent is your Persistent Memory Application?
- Fast, flexible, and comprehensive bug detection for persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
- Fast, flexible, and comprehensive bug detection for persistent memory programs cites AGAMOTTO: How Persistent is your Persistent Memory Application?
- Compiler-Directed Whole-System Persistence cites Cross-Failure Bug Detection in Persistent Memory Programs
- Scoped Buffered Persistency Model for GPUs cites Fast, flexible, and comprehensive bug detection for persistent memory programs
- Scoped Buffered Persistency Model for GPUs cites Cross-Failure Bug Detection in Persistent Memory Programs
- Scoped Buffered Persistency Model for GPUs cites Persistency semantics of the Intel-x86 architecture
- AGAMOTTO: How Persistent is your Persistent Memory Application? cites Cross-Failure Bug Detection in Persistent Memory Programs
Cited by top-tier papers10
- Compiler-Directed Whole-System PersistenceJianping Zeng, Tong Zhang, Changhee JungISCA 2024 · 13 citations
- LightWSP: Whole-System Persistence on the CheapYuchen Zhou, Jianping Zeng, Changhee JungMICRO 2024 · 8 citations
- Scoped Buffered Persistency Model for GPUsShweta Pandey, Aditya K. Kamath, Arkaprava BasuASPLOS 2023 · 6 citations
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 citations
- Memento: A Framework for Detectable Recoverability in Persistent MemoryKyeongmin Cho, Seungmin Jeon, Azalea Raad, Jeehoon KangPLDI 2023 · 4 citations
Builds on9
- Fuzzing File Systems via Two-Dimensional Input Space ExplorationWen Xu, Hyungon Moon, Sanidhya Kashyap, Po-Ning Tseng et al.S&P 2019 · 117 citations
- Persistency semantics of the Intel-x86 architectureAzalea Raad, John Wickerson, Gil Neiger, Viktor VafeiadisPOPL 2020 · 61 citations
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch et al.ASPLOS 2020 · 60 citations
- AGAMOTTO: How Persistent is your Persistent Memory Application?Ian Neal, Ben Reeves, Ben Stoler, Andrew Quinn et al.OSDI 2020 · 43 citations
- Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 citations
Related papers
- Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 citations
- HybridPersist: A Compiler Support for User-Friendly and Efficient PM ProgrammingYiyu Zhang, Yongzhi Wang, Yanfeng Gao, Xuandong Li et al.OOPSLA 2025
- Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 citations
- Checking robustness to weak persistency modelsHamed Gorjiara, Weiyu Luo, Alex Lee, Guoqing Harry Xu et al.PLDI 2022 · 13 citations
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 citations
