StarMalloc: Verifying a Modern, Hardened Memory Allocator

被引:0
|
作者
Reitz, Antonin [1 ]
Fromherz, Aymeric [1 ]
Protzenko, Jonathan [2 ]
机构
[1] Inria, Paris, France
[2] Microsoft Azure Res, Redmond, CA USA
来源
关键词
Formal Verification; Separation Logic; Memory Allocators; VERIFICATION;
D O I
10.1145/3689773
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present StarMalloc, a verified, efficient, security-oriented, and concurrent memory allocator. Using the Steel separation logic framework, we show how to specify and verify a multitude of low-level patterns and delicate security mechanisms, by relying on a combination of dependent types, SMT, and modular abstractions to enable efficient verification. We produce a verified artifact, in C, that implements the entire API surface of an allocator, and as such works as a drop-in replacement for real-world projects, notably the Firefox browser. As part of StarMalloc, we develop several generic datastructures and proof libraries directly reusable in future systems verification projects. We also extend the Steel toolchain to express several low-level idioms that were previously missing. Finally, we show that StarMalloc exhibits competitive performance by evaluating it against 10 state-of-the-art memory allocators, and against a variety of real-world projects, such as Redis, the Lean compiler, and the Z3 SMT solver.
引用
收藏
页数:30
相关论文
共 50 条
  • [41] A C++ pooled, shared memory allocator for simulator development
    Ronell, M
    37TH ANNUAL SIMULATION SYMPOSIUM, PROCEEDINGS, 2004, : 187 - 195
  • [42] Formalizing and Verifying a Modern Build Language
    Christakis, Maria
    Leino, K. Rustan M.
    Schulte, Wolfram
    FM 2014: FORMAL METHODS, 2014, 8442 : 643 - 657
  • [43] A scalable and efficient storage allocator on shared-memory multiprocessors
    Vee, VY
    Hsu, WJ
    FOURTH INTERNATIONAL SYMPOSIUM ON PARALLEL ARCHITECTURES, ALGORITHMS, AND NETWORKS (I-SPAN'99), PROCEEDINGS, 1999, : 230 - 235
  • [44] Effective Compaction for Kernel Memory Allocator Using Workload Distribution
    Lim, Jinho
    Han, Hwansoo
    IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2018, 64 (02) : 188 - 195
  • [45] Metall: A persistent memory allocator for data-centric analytics
    Iwabuchi, Keita
    Youssef, Karim
    Velusamy, Kaushik
    Gokhale, Maya
    Pearce, Roger
    PARALLEL COMPUTING, 2022, 111
  • [47] A Bounded Memory Allocator for Software-Defined Global Address Spaces
    Gindraud, Francois
    Rastello, Fabrice
    Cohen, Albert
    Broquedis, Francois
    ACM SIGPLAN NOTICES, 2016, 51 (11) : 78 - 88
  • [48] The complexity of verifying memory coherence and consistency
    Cantin, JF
    Lipasti, MH
    Smith, JE
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2005, 16 (07) : 663 - 671
  • [49] PMA: A Persistent Memory Allocator with High Efficiency and Crash Consistency Guarantee
    Xiang, Xiangyu
    Hua, Yu
    Xu, Hao
    2023 IEEE 41ST INTERNATIONAL CONFERENCE ON COMPUTER DESIGN, ICCD, 2023, : 182 - 189
  • [50] A high-performance memory allocator for object-oriented systems
    Chang, JM
    Gehringer, EF
    IEEE TRANSACTIONS ON COMPUTERS, 1996, 45 (03) : 357 - 366