Lune

ASPLOS2021顶会

PMFuzz: test case generation for persistent memory programs

Sihang Liu, Suyash Mahar, Baishakhi Ray, Samira Manabi Khan

摘要

The Persistent Memory (PM) technology combines the persistence of storage with the performance approaching that of DRAM. Programs taking advantage of PM must ensure data remains recoverable after a failure (e.g., power outage), and therefore, are susceptible to having crash consistency bugs that lead to incorrect recovery after a failure. Prior works have provided tools, such as Pmemcheck, PMTest, and XFDetector, that detect these bugs by checking whether the trace of PM accesses violates the program's crash consistency guarantees. However, detection of crash consistency bugs highly depends on test casesÐa bug can only be detected if the buggy program path has been executed. Therefore, using a test case generator is necessary to effectively detect crash consistency bugs.

Fuzzing is a common test case generation approach that requires minimum knowledge about the program. We identify that PM programs have special requirements for fuzzing. First, a PM program maintains a persistent state on PM images. Therefore, the fuzzer needs to efficiently generate valid images as part of the test case. Second, these PM images can also be a result of a previous crash, which requires the fuzzer to generate crash images as well. Finally, PM programs can have various procedures but only those performing PM operations can lead to crash consistency issues. Thus, an efficient fuzzer should target those relevant regions. In this work, we provide PMFuzz, a test case generator for PM programs that meets these new requirements. Our evaluation shows that PMFuzz covers 4.6× more PM-related paths compared to AFL++, a widelyused fuzzer. Further, test cases generated by PMFuzz discovered 12 new real-world bugs in PM programs which have already been extensively tested by prior PM testing works. Suyash Mahar contributed to this work during his internship at the University of Virginia.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Fuzzing File Systems via Two-Dimensional Input Space Exploration 引用了 T-Fuzz: Fuzzing by Program Transformation
  • Fuzzing File Systems via Two-Dimensional Input Space Exploration 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • T-Fuzz: Fuzzing by Program Transformation 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
  • Capri: Compiler and Architecture Support for Whole-System Persistence 引用了 MOD: Minimally Ordered Durable Datastructures for Persistent Memory
  • Compiler-Directed Whole-System Persistence 引用了 Capri: Compiler and Architecture Support for Whole-System Persistence
  • Compiler-Directed Whole-System Persistence 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
  • Compiler-Directed Whole-System Persistence 引用了 Yashme: detecting persistency races
  • Yashme: detecting persistency races 引用了 Fuzzing File Systems via Two-Dimensional Input Space Exploration
  • Yashme: detecting persistency races 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
  • Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value Stores 引用了 Fuzzing File Systems via Two-Dimensional Input Space Exploration
  • Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value Stores 引用了 Cross-Failure Bug Detection in Persistent Memory Programs
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper23

  1. NNSmith: Generating Diverse and Valid Test Cases for Deep Learning CompilersJiawei Liu, Jinkun Lin, Fabian Ruffy, Cheng Tan 等ASPLOS 2023 · 90 次引用
  2. Capri: Compiler and Architecture Support for Whole-System PersistenceJungi Jeong, Jianping Zeng, Changhee JungHPDC 2022 · 21 次引用
  3. Yashme: detecting persistency racesHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2022 · 18 次引用
  4. Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value StoresXinwei Fu, Wook-Hee Kim, Ajay Paddayuru Shreepathi, Mohannad Ismail 等SOSP 2021 · 17 次引用
  5. Compiler-Directed Whole-System PersistenceJianping Zeng, Tong Zhang, Changhee JungISCA 2024 · 13 次引用

它引用的 Paper8

  1. Coverage-based Greybox Fuzzing as Markov ChainMarcel Böhme, Van-Thuan Pham, Abhik RoychoudhuryCCS 2016 · 1,026 次引用
  2. T-Fuzz: Fuzzing by Program TransformationHui Peng, Yan Shoshitaishvili, Mathias PayerS&P 2018 · 326 次引用
  3. Fuzzing File Systems via Two-Dimensional Input Space ExplorationWen Xu, Hyungon Moon, Sanidhya Kashyap, Po-Ning Tseng 等S&P 2019 · 117 次引用
  4. Cross-Failure Bug Detection in Persistent Memory ProgramsSihang Liu, Korakit Seemakhupt, Yizhou Wei, Thomas F. Wenisch 等ASPLOS 2020 · 60 次引用
  5. MOD: Minimally Ordered Durable Datastructures for Persistent MemorySwapnil Haria, Mark D. Hill, Michael M. SwiftASPLOS 2020 · 47 次引用

相关 Paper

  1. Efficiently detecting concurrency bugs in persistent memory programsZhangyu Chen, Yu Hua, Yongle Zhang, Luochangqi DingASPLOS 2022 · 11 次引用
  2. Fast, flexible, and comprehensive bug detection for persistent memory programsBang Di, Jiawen Liu, Hao Chen, Dong LiASPLOS 2021 · 37 次引用
  3. Mumak: Efficient and Black-Box Bug Detection for Persistent MemoryJoão Gonçalves, Miguel Matos, Rodrigo RodriguesEuroSys 2023 · 5 次引用
  4. Checking robustness to weak persistency modelsHamed Gorjiara, Weiyu Luo, Alex Lee, Guoqing Harry Xu 等PLDI 2022 · 13 次引用
  5. Jaaru: efficiently model checking persistent memory programsHamed Gorjiara, Guoqing Harry Xu, Brian DemskyASPLOS 2021 · 34 次引用
黄昏的海面,两侧是细线勾勒的悬崖