跳到主要导航 跳到搜索 跳到主要内容

Fine-grained formal specification and analysis of buddy memory allocation in zephyr RTOS

  • Zhang Feng
  • , Zhao Yongwang*
  • , Ma Dianfu
  • , Niu Wensheng
  • *此作品的通讯作者
  • Beihang University
  • Aeronautical Computing Technique Research Institute

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Bugs in memory management of Operating Systems may lead to crashing. This paper presents a case study of formal verification on the buddy memory allocation component of the Zephyr RTOS kernel. The algorithm of the component allows memory blocks of 4-power sizes to be dynamically allocated by efficiently partitioning larger blocks into smaller ones, and then be released supporting immediate and automatic combining of smaller blocks. The execution of memory allocation is preemptive, which means that the allocation may invoke rescheduling when there is no block available for memory requests. In this paper, we provide a fine-grained formal specification of buddy memory allocation and formally verify its safety via invariants and functional correctness. The specification covers all the elements of the data structure as well as all statements of memory initialization, allocation, and release presented in the C source code. During the formal verification, we found a functional flaw in the C code. To the best of our knowledge, this paper is the first effort of formal verification at a fine-grained level on buddy memory allocation in Operating Systems.

源语言英语
主期刊名Proceedings - 2019 IEEE 22nd International Symposium on Real-Time Distributed Computing, ISORC 2019
出版商Institute of Electrical and Electronics Engineers Inc.
10-17
页数8
ISBN(电子版)9781728101507
DOI
出版状态已出版 - 5月 2019
活动22nd IEEE International Symposium on Real-Time Distributed Computing, ISORC 2019 - Valencia, 西班牙
期限: 7 5月 20199 5月 2019

出版系列

姓名Proceedings - 2019 IEEE 22nd International Symposium on Real-Time Distributed Computing, ISORC 2019

会议

会议22nd IEEE International Symposium on Real-Time Distributed Computing, ISORC 2019
国家/地区西班牙
Valencia
时期7/05/199/05/19

指纹

探究 'Fine-grained formal specification and analysis of buddy memory allocation in zephyr RTOS' 的科研主题。它们共同构成独一无二的指纹。

引用此