SafePM: a sanitizer for persistent memory
Kartal Kaan Bozdogan, Dimitrios Stavrakakis, Shady Issa, Pramod Bhatotia
Abstract
Memory safety violation is a major root cause of reliability and security issues in software systems. Byte-addressable persistent memory (PM), just like its volatile counterpart, is also susceptible to memory safety violations. While there is a couple of decades of work in ensuring memory safety for programs based on volatile memory, the existing approaches are incompatible for PM since the PM programming model introduces a persistent pointer representation for persistent memory objects and allocators, where it is imperative to design a crash consistent safety mechanism.
We introduce SafePM, a memory safety mechanism that transparently and comprehensively detects both spatial and temporal memory safety violations for PM-based applications. SafePM's design builds on a shadow memory approach, and augments it with crash consistent data structures and system operations to ensure memory safety even across system reboots and crashes. We implement SafePM based on the AddressSanitizer compiler pass, and integrate it with the PM development kit (PMDK) runtime library. We evaluate SafePM across three dimensions: overheads, effectiveness, and crash consistency. SafePM overall incurs reasonable overheads while providing comprehensive memory safety, and has uncovered real-world bugs in the widely-used PMDK library.
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.
4 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
- 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 PMFuzz: test case generation for persistent memory programs
- Anchor: A Library for Building Secure Persistent Memory Systems cites FileMR: Rethinking RDMA Networking for Scalable Persistent Memory
- Anchor: A Library for Building Secure Persistent Memory Systems cites Cross-Failure Bug Detection in Persistent Memory Programs
- Anchor: A Library for Building Secure Persistent Memory Systems cites PMFuzz: test case generation for persistent memory programs
- Fast, flexible, and comprehensive bug detection for persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
- PMFuzz: test case generation for persistent memory programs cites Cross-Failure Bug Detection in Persistent Memory Programs
- TENET: Memory Safe and Fault Tolerant Persistent Transactional Memory cites Cross-Failure Bug Detection in Persistent Memory Programs
Cited by top-tier papers4
- TENET: Memory Safe and Fault Tolerant Persistent Transactional MemoryMadhava Krishnan Ramanathan, Diyu Zhou, Wook-Hee Kim, Sudarsun Kannan et al.FAST 2023 · 12 citations
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 citations
- Anchor: A Library for Building Secure Persistent Memory SystemsDimitrios Stavrakakis, Dimitra Giantsidi, Maurice Bailleu, Philip Sändig et al.SIGMOD 2024 · 3 citations
- CMASan: Custom Memory Allocator-aware Address SanitizerJunwha Hong, Wonil Jang, Mijung Kim, Lei Yu et al.S&P 2025
Builds on9
- Stack Bounds Protection with Low Fat PointersGregory J. Duck, Roland H. C. Yap, Lorenzo CavallaroNDSS 2017 · 121 citations
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch et al.ASPLOS 2020 · 60 citations
- FileMR: Rethinking RDMA Networking for Scalable Persistent MemoryJian Yang, Joseph Izraelevitz, Steven SwansonNSDI 2020 · 45 citations
- Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 citations
- PMFuzz: test case generation for persistent memory programsSihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi KhanASPLOS 2021 · 36 citations
Related papers
- Corundum: statically-enforced persistent memory safetyMorteza Hoseinzadeh, Steven SwansonASPLOS 2021 · 18 citations
- Silhouette: Leveraging Consistency Mechanisms to Detect Bugs in Persistent Memory-Based File SystemsBing Jiao, Ashvin Goel, An-I Andy WangFAST 2025 · 2 citations
- 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
- Understanding and detecting deep memory persistency bugs in NVM programs with DeepMCBenjamin Reidys, Jian HuangPPoPP 2022 · 4 citations
