A Formally Verified Buddy Memory Allocation Model.

Ke Jiang,David Sanan,Yongwang Zhao,Shuanglong Kan,Yang Liu
DOI: https://doi.org/10.1109/iceccs.2019.00023
2019-01-01
Abstract:Buddy memory allocation algorithms are widely adopted by various memory management systems for managing memory layouts. Rigorous mathematical proofs provide strong assurance to improve the confidence on the reliability of a memory management system. In this paper, we model and formally verify, in the interactive theorem prover Isabelle/HOL, a buddy memory allocation model, which preserves functional correctness and security properties. Firstly, we construct a specification consisting of operations to allocate and dispose memory blocks according to a buddy memory allocation algorithm. Then we verify that the specification preserves key invariants over the memory to guarantee functional correctness of the algorithm. Finally, we verify that the specification also preserves the integrity of the memory. Therefore, they do not affect other memory blocks previously allocated.
What problem does this paper attempt to address?