Using model checking to find serious file system errors

被引:71
|
作者
Yang, Junfeng [1 ]
Twohey, Paul
Engler, Dawson
Musuvathi, Madanlal
机构
[1] Stanford Univ, Comp Syst Lab, Stanford, CA 94305 USA
[2] Microsoft Res, Redmond, WA 98052 USA
来源
ACM TRANSACTIONS ON COMPUTER SYSTEMS | 2006年 / 24卷 / 04期
关键词
reliability; verification; model checking; file system; journaling; crash; recovery;
D O I
10.1145/1189256.1189259
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This article shows how to use model checking to find serious errors in file systems. Model checking is a formal verification technique tuned for finding corner-case errors by comprehensively exploring the state spaces defined by a system. File systems have two dynamics that make them attractive for such an approach. First, their errors are some of the most serious, since they can destroy persistent data and lead to unrecoverable corruption. Second, traditional testing needs an impractical, exponential number of test cases to check that the system will recover if it crashes at any point during execution. Model checking employs a variety of state-reducing techniques that allow it to explore such vast state spaces efficiently. We built a system, FiSC, for model checking file systems. We applied it to four widely-used, heavily-tested file systems: ext3, JFS, ReiserFS and XFS. We found serious bugs in all of them, 33 in total. Most have led to patches within a day of diagnosis. For each file system, FiSC found demonstrable events leading to the unrecoverable destruction of metadata and entire directories, including the file system root directory "/".
引用
收藏
页码:393 / 423
页数:31
相关论文
共 50 条
  • [21] Identifying Modeling Errors in Signatures by Model Checking
    Schmerl, Sebastian
    Vogel, Michael
    Koenig, Hartmut
    MODEL CHECKING SOFTWARE, 2009, 5578 : 205 - 222
  • [22] Regression model checking with Berkson measurement errors
    Koul, Hira L.
    Song, Weixing
    JOURNAL OF STATISTICAL PLANNING AND INFERENCE, 2008, 138 (06) : 1615 - 1628
  • [23] Checking normality of model errors under additive distortion measurement errors
    Li, Mengyao
    Zhang, Jiangshe
    Zhang, Jun
    Zhou, Yan
    JOURNAL OF NONPARAMETRIC STATISTICS, 2024, 36 (04) : 1258 - 1287
  • [24] RAFFS: Model Checking a Robust Abstract Flash File Store
    Taverne, Paul
    Pronk, C.
    FORMAL METHODS AND SOFTWARE ENGINEERING, PROCEEDINGS, 2009, 5885 : 226 - 245
  • [25] Specifying and Checking File System Crash-Consistency Models
    Bornholt, James
    Kaufmann, Antoine
    Li, Jialin
    Krishnamurthy, Arvind
    Torlak, Emina
    Wang, Xi
    ACM SIGPLAN NOTICES, 2016, 51 (04) : 83 - 98
  • [26] Specifying and checking file system crash-consistency models
    Bornholt J.
    Kaufmann A.
    Li J.
    Krishnamurthy A.
    Torlak E.
    Wang X.
    2016, Association for Computing Machinery (51): : 83 - 98
  • [27] Comprehensive evaluation of file systems robustness with SPIN model checking
    Yuan, Jingcheng
    Aoki, Toshiaki
    Guo, Xiaoyun
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (06):
  • [28] pFSCK: Accelerating File System Checking and Repair for Modern Storage
    Domingo, David
    Kannan, Sudarsun
    PROCEEDINGS OF THE 19TH USENIX CONFERENCE ON FILE AND STORAGE TECHNOLOGIES (FAST '21), 2021, : 113 - 126
  • [29] Checking it twice: an evaluation of checklists for detecting medication errors at the bedside using a chemotherapy model
    White, Rachel E.
    Trbovich, Patricia L.
    Easty, Anthony C.
    Savage, Pamela
    Trip, Katherine
    Hyland, Sylvia
    QUALITY & SAFETY IN HEALTH CARE, 2010, 19 (06): : 562 - 567
  • [30] Model Checking of Multi Agent System Architectures Using BigMC
    Dib, Ahmed Taki Eddine
    Sahnoun, Zaidi
    PROCEEDINGS OF THE 2015 FEDERATED CONFERENCE ON COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2015, 5 : 1717 - 1722