SafePM: a sanitizer for persistent memory
Kartal Kaan Bozdogan, Dimitrios Stavrakakis, Shady Issa, Pramod Bhatotia
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- 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
- Anchor: A Library for Building Secure Persistent Memory Systems 引用了 FileMR: Rethinking RDMA Networking for Scalable Persistent Memory
- Anchor: A Library for Building Secure Persistent Memory Systems 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- Anchor: A Library for Building Secure Persistent Memory Systems 引用了 PMFuzz: test case generation for persistent memory programs
- Fast, flexible, and comprehensive bug detection for persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- PMFuzz: test case generation for persistent memory programs 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
- TENET: Memory Safe and Fault Tolerant Persistent Transactional Memory 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
引用它的顶会 Paper4
- TENET: Memory Safe and Fault Tolerant Persistent Transactional MemoryMadhava Krishnan Ramanathan, Diyu Zhou, Wook-Hee Kim, Sudarsun Kannan 等FAST 2023 · 12 次引用
- Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 次引用
- Anchor: A Library for Building Secure Persistent Memory SystemsDimitrios Stavrakakis, Dimitra Giantsidi, Maurice Bailleu, Philip Sändig 等SIGMOD 2024 · 3 次引用
- CMASan: Custom Memory Allocator-aware Address SanitizerJunwha Hong, Wonil Jang, Mijung Kim, Lei Yu 等S&P 2025
它引用的 Paper9
- Stack Bounds Protection with Low Fat PointersGregory J. Duck, Roland H. C. Yap, Lorenzo CavallaroNDSS 2017 · 121 次引用
- Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch 等ASPLOS 2020 · 60 次引用
- FileMR: Rethinking RDMA Networking for Scalable Persistent MemoryJian Yang, Joseph Izraelevitz, Steven SwansonNSDI 2020 · 45 次引用
- 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 次引用
相关 Paper
- Corundum: statically-enforced persistent memory safetyMorteza Hoseinzadeh, Steven SwansonASPLOS 2021 · 18 次引用
- Silhouette: Leveraging Consistency Mechanisms to Detect Bugs in Persistent Memory-Based File SystemsBing Jiao, Ashvin Goel, An-I Andy WangFAST 2025 · 2 次引用
- 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
- Understanding and detecting deep memory persistency bugs in NVM programs with DeepMCBenjamin Reidys, Jian HuangPPoPP 2022 · 4 次引用
