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 条
  • [1] Using model checking to find serious file system errors
    Yang, JF
    Twohey, P
    Engler, D
    Musuvathi, M
    USENIX ASSOCIATION PROCEEDINGS OF THE SIXTH SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION (OSDE '04), 2004, : 273 - 287
  • [2] ModelX: Using Model Checking to Find Design Errors of Cloud Applications
    Tian, Tian
    Zhang, Yiming
    Zhou, Qiao
    Zhong, Ping
    2016 IEEE INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION TECHNOLOGY (CIT), 2016, : 607 - 610
  • [3] Model-Checking the Linux Virtual File System
    Galloway, Andy
    Luettgen, Gerald
    Muehlberg, Jan Tobias
    Siminiceanu, Radu I.
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, 2009, 5403 : 74 - +
  • [4] Using Model Checking to Automatically Find Retrieve Relations
    Derrick, John
    Smith, Graeme
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 201 (0C) : 155 - 175
  • [5] Models and software model checking of a distributed file replication system
    Bjorner, Nikolaj
    Formal Methods and Hybrid Real-Time Systems, 2007, 4700 : 1 - 23
  • [6] Using Model Checking for Trivial File Transfer Protocol Validation
    Alrabaee, Saed
    Bataineh, Ahmed
    Khasawneh, Fawaz A.
    Dssouli, Rachida
    2014 INTERNATIONAL CONFERENCE ON COMMUNICATIONS AND NETWORKING (COMNET), 2014,
  • [7] Maintaining consistency of File system by Monitoring file system parameters at Runtime using Consistency Checking Rules
    Meshram, Aniket G.
    Gore, Sonal
    2015 4TH INTERNATIONAL CONFERENCE ON RELIABILITY, INFOCOM TECHNOLOGIES AND OPTIMIZATION (ICRITO) (TRENDS AND FUTURE DIRECTIONS), 2015,
  • [8] Using model checking to identify errors in intrusion detection signatures
    Schmerl S.
    Vogel M.
    König H.
    International Journal on Software Tools for Technology Transfer, 2011, 13 (01) : 89 - 106
  • [9] Using Model Checking to Control the Structural Errors in BPMN Models
    Kherbouche, Oussama Mohammed
    Ahmad, Adeel
    Basson, Henri
    2013 IEEE SEVENTH INTERNATIONAL CONFERENCE ON RESEARCH CHALLENGES IN INFORMATION SCIENCE (RCIS), 2013,
  • [10] Metis: File System Model Checking via Versatile Input and State Exploration
    Liu, Yifei
    Adkar, Manish
    Holzmann, Gerard
    Kuenning, Geoff
    Liu, Pei
    Smolka, Scott A.
    Su, Wei
    Zadok, Erez
    PROCEEDINGS OF THE 21ST USENIX SYMPOSIUM ON NETWORKED SYSTEMS DESIGN AND IMPLEMENTATION, NSDI 24, 2024, : 123 - 140