作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

μC / OS-Ⅲ任务调度器在Coq 中的验证

罗尔聪1,2,郭 宇1,2   

  1. (1. 中国科学技术大学计算机科学与技术学院,合肥230026;2. 中国科学技术大学苏州研究院软件安全实验室,江苏苏州215123)
  • 收稿日期:2014-05-05 出版日期:2015-03-15 发布日期:2015-03-13
  • 作者简介:罗尔聪(1989 - ),男,硕士研究生,主研方向:形式化验证,软件安全;郭 宇,副教授。
  • 基金资助:
    国家自然科学基金资助青年项目(61202052);国家自然科学基金海外及港澳学者合作研究基金资助项目(61229201)。

Verification of μC / OS-Ⅲ Task Scheduler in Coq

LUO Ercong  1,2,GUO Yu  1,2   

  1. (1. College of Computer Science and Technology,University of Science and Technology of China,Hefei 230026,China;2. Software Security Laboratory,Suzhou Institute for Advanced Study,University of Science and Technology of China,Suzhou 215123,China)
  • Received:2014-05-05 Online:2015-03-15 Published:2015-03-13

摘要: 以μC / OS-Ⅲ内核中的任务调度器为研究对象,选取调度相关的核心代码,验证调度器代码满足优先调度最高优先级任务的性质。基于分离逻辑与SCAP 验证理论,利用Coq 辅助证明工具,通过定义机器模型、操作语义、逻辑断言以及推导规则构建验证框架。在验证框架中,定义内核数据结构和内核相关性质的逻辑描述,模块化地对内核代码进行推理。验证结果表明,μC / OS-Ⅲ任务调度器满足可靠性要求,并且可以通过机器的自动检查。

关键词: 任务调度器, 形式化验证, 分离逻辑, Coq 证明工具, 最高优先级

Abstract: This paper studies the task scheduler in a widely used embedded μC / OS-Ⅲ kernel. After selecting core parts from the scheduler,it specifies the properties of the scheduler formally. Based on the separation logic and SCAP,it builds a verification framework including a machine model,operational semantics,assertion languages,and inference rules. In the framework,assertions specifying system data structures and properties are defined,and system code is able to be reasoned about modularly. Finally,the properties of the task scheduler in μC / OS-Ⅲ are formally proved,and the entire proof provided by the work are machine checkable.

Key words: task scheduler, formal verification, separation logic, Coq proof tool, highest priority

中图分类号: