CertiFlash: A Formal Verification Framework for Flash Translation Layers in Computational Solid State Drives
Harshita Gupta, Mayank Kabra, Rakesh Nadig, Nika Mansouri Ghiasi, Sahand Divsalar, F. Nisa Bostanci, Ataberk Olgun, Konstantinos Kanellopoulos, Jisung Park, Haiyu Mao, Abdullah Giray Yaglikci, Mohammad Sadrosadati, Onur Mutlu
Abstract
Data-intensive applications move large amounts of data from storage to the compute unit, incurring significant data movement overhead. Storage-centric computing reduces this overhead by moving computation near or inside solid-state drives (SSDs). Enabling it requires modifying SSD policies, e.g., address translation and garbage collection, which are part of the Flash Translation Layer (FTL), the SSD's firmware. Modifying the FTL is error-prone. Because FTL logic has direct access to security-critical device components, even a functionally correct FTL can leak data between tenants, drop integrity tags, or assign a flash block to the wrong tenant. We show that a faulty FTL can corrupt the device state at five surfaces inside the SSD, and demonstrate them on a DaisyPlus OpenSSD. Prior work verifies individual FTL designs, but has two limitations. (1) It establishes only functional correctness, so a modified FTL can violate isolation, integrity, and ownership and still pass verification. (2) It is tied to a single FTL design, so every modification requires redoing every proof. We propose CertiFlash, a formal verification framework for FTLs, mechanized in the Rocq proof assistant, that gives designers a machine-checked proof of security and correctness. CertiFlash models an FTL as a deterministic state machine with a single global invariant over mapping, isolation, integrity, ownership, and allocation. We prove once, over a general FTL model, that (i) every FTL operation preserves the invariant and (ii) the model refines an idealized block device. For a new design, a designer discharges five hypotheses about its own operations instead of redoing either proof. Across four case studies, a designer adds 27 to 3,231 lines against a 16,489-line framework, significantly reducing the verification effort. CertiFlash is open source.
Create a lesson
Metadata
- Categories
- cs.AR, cs.CR, cs.LO
- Comments
- 18 pages, 3 figures, 7 tables. Artifact available at https://github.com/CMU-SAFARI/CertiFlash
Related papers
Lattice: Alleviating the Shared-Channel Bottleneck in Solid-State Drives to Enable Scalable In-Flash Processing
Shared title terminologycs.ARRakesh Nadig, Manos Frouzakis, Nika Mansouri Ghiasi et al.
TRACE: Traversal and Reasoning Algebraic Computing Engine for Formal Hardware Verification
Shared title terminologycs.ARJan Kleinekathöfer, Lennart Weingarten, Kamalika Datta et al.
QiMeng-TheoremV: Agentic Theorem Proving with Speculated IRs for Large-Scale RTL Formal Verification
Shared title terminologycs.ARChenrui Cao, Chongxiao Li, Yutong Wu et al.
Bridging the Semantic Gap from Natural Language Specifications to RTL with Layered Formal Guidance
Shared title terminologycs.ARYan Tan, Xiangchen Meng, Yangdi Lyu
Programming In-Storage Computing with Located, Stateful Dataflow
Shared title terminologycs.ARYuyue Wang, Zhenyu Zhang, Glenn Reinman et al.
FlexSpIM: An Event-Based Digital Compute-In-Memory Accelerator with Flexible Operand Resolution and Layer-Wise Hybrid Stationarity
Shared title terminologycs.ARNicolas Chauvaux, Adrian Kneip, Charlotte Frenkel