Certifying a file system using crash hoare logic

Author:

Chajed Tej1,Chen Haogang1,Chlipala Adam1,Kaashoek M. Frans1,Zeldovich Nickolai1,Ziegler Daniel1

Affiliation:

1. MIT CSAIL, Cambridge, MA

Abstract

FSCQ is the first file system with a machine-checkable proof that its implementation meets a specification, even in the presence of fail-stop crashes. FSCQ provably avoids bugs that have plagued previous file systems, such as performing disk writes without sufficient barriers or forgetting to zero out directory blocks. If a crash happens at an inopportune time, these bugs can lead to data loss. FSCQ's theorems prove that, under any sequence of crashes followed by reboots, FSCQ will recover its state correctly without losing data. To state FSCQ's theorems, this paper introduces the Crash Hoare logic (CHL), which extends traditional Hoare logic with a crash condition, a recovery procedure, and logical address spaces for specifying disk states at different abstraction levels. CHL also reduces the proof effort for developers through proof automation. Using CHL, we developed, specified, and proved the correctness of the FSCQ file system. Although FSCQ's design is relatively simple, experiments with FSCQ as a user-level file system show that it is sufficient to run Unix applications with usable performance. FSCQ's specifications and proofs required significantly more work than the implementation, but the work was manageable even for a small team of a few researchers.<!-- END_PAGE_1 -->

Funder

NSF

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science

Reference39 articles.

1. Cogent

2. Bobbio J. et al. Haskell bindings for the FUSE library 2014. https://github.com/m15k/hfuse. Bobbio J. et al. Haskell bindings for the FUSE library 2014. https://github.com/m15k/hfuse.

3. Using Crash Hoare logic for certifying the FSCQ file system

4. Chinner D. xfs: Fix double free in xlog_recover_commit_trans Sept. 2014. http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=88b863db97a18a04c90ebd57d84e1b7863114dcb. Chinner D. xfs: Fix double free in xlog_recover_commit_trans Sept. 2014. http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=88b863db97a18a04c90ebd57d84e1b7863114dcb.

5. Chinner D. xfs: xfs_dir_fsync() returns positive errno May 2014. https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=43ec1460a2189fbee87980dd3d3e64cba2f11e1f. Chinner D. xfs: xfs_dir_fsync() returns positive errno May 2014. https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=43ec1460a2189fbee87980dd3d3e64cba2f11e1f.

Cited by 9 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Proving and Disproving Equivalence of Functional Programming Assignments;Proceedings of the ACM on Programming Languages;2023-06-06

2. WaVe: a verifiably secure WebAssembly sandboxing runtime;2023 IEEE Symposium on Security and Privacy (SP);2023-05

3. From Verified Scala to STIX File System Embedded Code Using Stainless;Lecture Notes in Computer Science;2022

4. Rearchitecting in-memory object stores for low latency;Proceedings of the VLDB Endowment;2021-11

5. Towards Sophisticated Air Traffic Control System Using Formal Methods;Modelling and Simulation in Engineering;2018-09-10

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3