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
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2024年 / 8卷 / OOPSLA2期
关键词
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 条
  • [21] Brug: An Adaptive Memory (Re-)Allocator
    Weng, Weikang
    Uta, Alexandra
    Rellermeyer, Jan S.
    2024 IEEE 24TH INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND INTERNET COMPUTING, CCGRID 2024, 2024, : 67 - 76
  • [22] Experience with an efficient parallel kernel memory allocator
    McKenney, PE
    Slingwine, J
    Krueger, P
    SOFTWARE-PRACTICE & EXPERIENCE, 2001, 31 (03): : 235 - 257
  • [23] Register Efficient Dynamic Memory Allocator for GPUs
    Vinkler, M.
    Havran, V.
    COMPUTER GRAPHICS FORUM, 2015, 34 (08) : 143 - 154
  • [24] Hoard: A scalable memory allocator for multithreaded applications
    Berger, ED
    McKinley, KS
    Blumofe, RD
    Wilson, PR
    ACM SIGPLAN NOTICES, 2000, 35 (11) : 117 - 128
  • [25] CAMA: A Predictable Cache-Aware Memory Allocator
    Herter, Joerg
    Backes, Peter
    Haupenthal, Florian
    Reineke, Jan
    PROCEEDINGS OF THE 23RD EUROMICRO CONFERENCE ON REAL-TIME SYSTEMS (ECRTS 2011), 2011, : 23 - 32
  • [26] POSEIDON: Safe, Fast and Scalable Persistent Memory Allocator
    Demeri, Anthony
    Kim, Wook-Hee
    Krishnan, R. Madhava
    Kim, Jaeho
    Ismail, Mohannad
    Min, Changwoo
    PROCEEDINGS OF THE 2020 21ST INTERNATIONAL MIDDLEWARE CONFERENCE (MIDDLEWARE '20), 2020, : 207 - 220
  • [27] Block Level TLB Coalescing for Buddy Memory Allocator
    Hur, Jae Young
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2019, E102D (10): : 2043 - 2046
  • [28] There Ain't No Such Thing as a Free Custom Memory Allocator
    Kudrjavets, Gunnar
    Thomas, Jeff
    Kumar, Aditya
    Nagappan, Nachiappan
    Rastogi, Ayushi
    2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 578 - 581
  • [29] Efficient memory allocator for the New Generation Sunway supercomputer
    Wang H.
    Ma Z.
    Zheng L.
    Wang Y.
    Wang F.
    Zhai J.
    Qinghua Daxue Xuebao/Journal of Tsinghua University, 2022, 62 (05): : 943 - 951
  • [30] An Efficient Dynamic Memory Allocator for Sensor Operating Systems
    Min, Hong
    Yi, Sangho
    Cho, Yookun
    Hong, Jiman
    APPLIED COMPUTING 2007, VOL 1 AND 2, 2007, : 1159 - +