Memory State Verification Based on Inductive and Deductive Reasoning
- 18 May 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Reliability
- Vol. 70 (3) , 1026-1039
Abstract
Memory allocation and deallocation are the fundamental operations of embedded operating systems, which have been extensively used in many safety critical systems. The correctness of the operations is of paramount importance because their failure could incur severe consequences. While the system is running, the memory state can easily grow to a gigantic amount, which means that it is impossible to verify the huge memory states one by one. Therefore, it is a challenge how to verify the correctness of running memory state of the system. In this article, we propose a novel memory state verification method based on inductive and deductive reasoning. First, we abstract the memory state as a list of memory blocks, which will transform in memory operations. Second, we construct the generic model based on the transition function of the memory management and summarize the invariant properties of the memory state. Third, we use the inductive method to calculate the changes between the memory states, and verify that the memory state of the system always satisfy the global properties. All the proofs are implemented in the interactive theorem prover Coq. On the basis of our proposed model, we verify the correctness of a two-level segregated fit (TLSF) algorithm through some extensions, and we also apply this method to verify the correctness of the memory state of the embedded system at runtime.Keywords
Funding Information
- National Natural Science Foundation of China (61632005, 62032004, 61802017)
This publication has 22 references indexed in Scilit:
- An Axiomatic Specification for Sequential Memory Models2015
- Verification of heap manipulating programs with ordered data by extended forest automataActa Informatica, 2015
- A Case Study on Formal Verification of the Anaxagoros Hypervisor Paging System with Frama-C2015
- CompCertTSOJournal of the ACM, 2013
- Effectively-Propositional Reasoning about Reachability in Linked Data Structures2013
- Compositional Verification of a Baby Virtual Memory Manager2012
- Model Checking Dynamic Memory Allocation in Operating SystemsJournal of Automated Reasoning, 2009
- Formal Pervasive Verification of a Paging Mechanism2008
- Implementation of a constant‐time dynamic storage allocatorSoftware: Practice and Experience, 2007
- Forensic memory analysis: From stack and code to execution historyDigital Investigation, 2007