Virtual timeline: a formal abstraction for verifying preemptive schedulers with temporal isolation

Author:

Liu Mengqi1,Rieg Lionel2,Shao Zhong1,Gu Ronghui3,Costanzo David1,Kim Jung-Eun1,Yoon Man-Ki1

Affiliation:

1. Yale University, USA

2. Grenoble Alps University, France / CNRS, France / Grenoble INP, France / VERIMAG, France / Yale University, USA

3. Columbia University, USA

Abstract

The reliability and security of safety-critical real-time systems are of utmost importance because the failure of these systems could incur severe consequences (e.g., loss of lives or failure of a mission). Such properties require strong isolation between components and they rely on enforcement mechanisms provided by the underlying operating system (OS) kernel. In addition to spatial isolation which is commonly provided by OS kernels to various extents, it also requires temporal isolation, that is, properties on the schedule of one component (e.g., schedulability) are independent of behaviors of other components. The strict isolation between components relies critically on algorithmic properties of the concrete implementation of the scheduler, such as timely provision of time slots, obliviousness to preemption, etc. However, existing work either only reasons about an abstract model of the scheduler, or proves properties of the scheduler implementation that are not rich enough to establish the isolation between different components. In this paper, we present a novel compositional framework for reasoning about algorithmic properties of the concrete implementation of preemptive schedulers. In particular, we use virtual timeline , a variant of the supply bound function used in real-time scheduling analysis, to specify and reason about the scheduling of each component in isolation. We show that the properties proved on this abstraction carry down to the generated assembly code of the OS kernel. Using this framework, we successfully verify a real-time OS kernel, which extends mCertiKOS, a single-processor non-preemptive kernel, with user-level preemption, a verified timer interrupt handler, and a verified real-time scheduler. We prove that in the absence of microarchitectural-level timing channels, this new kernel enjoys temporal and spatial isolation on top of the functional correctness guarantee. All the proofs are implemented in the Coq proof assistant.

Funder

Defense Advanced Research Projects Agency

PEPS INS2I JCJC

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Cited by 11 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automated Verification of an In-Production DNS Authoritative Engine;Proceedings of the 29th Symposium on Operating Systems Principles;2023-10-23

2. Survey of the Formal Verification of Operating Systems in Power Monitoring System;Proceedings of the 2023 5th International Conference on Pattern Recognition and Intelligent Systems;2023-07-28

3. Formalising the Prevention of Microarchitectural Timing Channels by Operating Systems;Formal Methods;2023

4. Compositional virtual timelines: verifying dynamic-priority partitions with algorithmic temporal isolation;Proceedings of the ACM on Programming Languages;2022-10-31

5. Jumpstart: Fast Critical Service Resumption for a Partitioning Hypervisor in Embedded Systems;2022 IEEE 28th Real-Time and Embedded Technology and Applications Symposium (RTAS);2022-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3