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 条
  • [1] Exploiting Android's Hardened Memory Allocator
    Mao, Philipp
    Boschung, Elias Valentin
    Busch, Marcel
    Payer, Mathias
    PROCEEDINGS OF THE 18TH USENIX WOOT CONFERENCE ON OFFENSIVE TECHNOLOGIES, WOOT 2024, 2024, : 211 - 227
  • [2] A tunable hybrid memory allocator
    Hasan, Yusuf
    Chang, J. Morris
    JOURNAL OF SYSTEMS AND SOFTWARE, 2006, 79 (08) : 1051 - 1063
  • [3] A Decoupled Local Memory Allocator
    Diouf, Boubacar
    Hantas, Can
    Cohen, Albert
    Ozturk, Ozcan
    Palsberg, Jens
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2013, 9 (04)
  • [4] STALKING THE WILD MEMORY ALLOCATOR
    HOLUB, A
    DR DOBBS JOURNAL, 1988, 13 (06): : 80 - &
  • [5] Hardware implementation of a memory allocator
    Jasrotia, K
    Zhu, JW
    EUROMICRO SYMPOSIUM ON DIGITAL SYSTEM DESIGN, PROCEEDINGS: ARCHITECTURES, METHODS AND TOOLS, 2002, : 355 - 358
  • [6] The intelligent memory allocator selector
    Ulgen, Onur
    Avci, Mutlu
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2015, 44 : 342 - 354
  • [7] The Hippocampus as a Stable Memory Allocator for Cortex
    Valiant, Leslie G.
    NEURAL COMPUTATION, 2012, 24 (11) : 2873 - 2899
  • [8] Vmalloc: a general and efficient memory allocator
    AT&T Bell Lab, Murray Hill, NJ, United States
    Software Pract Exper, 3 (357-374):
  • [9] GCMA: Guaranteed Contiguous Memory Allocator
    Park, SeongJae
    Kim, Minchan
    Yeom, Heon Y.
    IEEE TRANSACTIONS ON COMPUTERS, 2019, 68 (03) : 390 - 401
  • [10] SharP Unified Memory Allocator: An Intent-Based Memory Allocator for Extreme-Scale Systems
    Aderholdt, Ferrol
    Venkata, Manjunath Gorentla
    Parchman, Zachary W.
    EURO-PAR 2018: PARALLEL PROCESSING, 2018, 11014 : 533 - 545