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 条
  • [31] Metall: A Persistent Memory Allocator Enabling Graph Processing
    Iwabuchi, Keita
    Lebanoff, Lance
    Gokhale, Maya
    Pearce, Roger
    2019 IEEE/ACM 9TH WORKSHOP ON IRREGULAR APPLICATIONS - ARCHITECTURES AND ALGORITHMS (IA3), 2019, : 39 - 44
  • [32] SlimGuard: A Secure and Memory-Efficient Heap Allocator
    Liu, Beichen
    Olivier, Pierre
    Ravindran, Binoy
    MIDDLEWARE'19: PROCEEDINGS OF THE 2019 MIDDLEWARE'19: 20TH INTERNATIONAL MIDDLEWARE CONFERENCE, 2019, : 1 - 13
  • [33] OPTIMIZED MEMORY ALLOCATOR FOR HOT-SIZE ALLOCATIONS
    Li, Xiuhong
    Altenbek, Gulila
    INTERNATIONAL JOURNAL OF INNOVATIVE COMPUTING INFORMATION AND CONTROL, 2018, 14 (05): : 1603 - 1615
  • [34] DYNAMIC MEMORY ALLOCATOR ALGORITHMS SIMULATION AND PERFORMANCE ANALYSIS
    Karabiber, Fethullah
    Sertbas, Ahmet
    Zaim, A. Halim
    ISTANBUL UNIVERSITY-JOURNAL OF ELECTRICAL AND ELECTRONICS ENGINEERING, 2005, 5 (02): : 1435 - 1441
  • [35] An Interval Constrained Memory Allocator for the Givy GAS Runtime
    Gindraud, Francoise
    Rastello, Fabrice
    Cohen, Albert
    Broquedis, Francoise
    ACM SIGPLAN NOTICES, 2016, 51 (08) : 365 - 366
  • [36] MAGNETIZING AND VERIFYING MEMORY CARDS
    GARDNER, RA
    WESTERN ELECTRIC ENGINEER, 1968, 12 (03): : 2 - &
  • [37] Demystifying the Soft and Hardened Memory Systems of Modern FPGAs for Software Programmers through Microbenchmarking
    Lu, Alec
    Fang, Zhenman
    Shannon, Lesley
    ACM TRANSACTIONS ON RECONFIGURABLE TECHNOLOGY AND SYSTEMS, 2022, 15 (04)
  • [38] Dynamic Memory Allocator for Sensor Operating System Design and Analysis
    Min, Hong
    Cho, Yoo-Kun
    Hong, Ji-Man
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2010, 26 (01) : 1 - 14
  • [39] Hzmem: New Huge Page Allocator with Main Memory Compression
    Li, Guoxi
    Chen, Wenzhi
    Su, Kui
    Lu, Zhongyong
    Wang, Zonghui
    ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING, ICA3PP 2017, 2017, 10393 : 51 - 64
  • [40] An efficient multi-threaded memory allocator for PDES applications
    Li, Tianlin
    Yao, Yiping
    Tang, Wenjie
    Zhu, Feng
    Lin, Zhongwei
    SIMULATION MODELLING PRACTICE AND THEORY, 2020, 100