Lune

POPL2020Top-tier venue

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

Mengqi Liu, Lionel Rieg, Zhong Shao, Ronghui Gu, David Costanzo, Jung-Eun Kim, Man-Ki Yoon

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Spoq: Scaling Machine-Checkable Systems Verification in Coq cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • Spoq: Scaling Machine-Checkable Systems Verification in Coq cites Design and Verification of the Arm Confidential Compute Architecture
  • Design and Verification of the Arm Confidential Compute Architecture cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Design and Verification of the Arm Confidential Compute ArchitectureXupeng Li, Xuheng Li, Christoffer Dall, Ronghui Gu et al.OSDI 2022 · 60 citations
  2. Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory HardwareRunzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li et al.SOSP 2021 · 24 citations
  3. Spoq: Scaling Machine-Checkable Systems Verification in CoqXupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu et al.OSDI 2023 · 10 citations
  4. Layered and object-based game semanticsArthur Oliveira Vale, Paul-André Melliès, Zhong Shao, Jérémie Koenig et al.POPL 2022 · 9 citations
  5. Blinder: Partition-Oblivious Hierarchical SchedulingMan-Ki Yoon, Mengqi Liu, Hao Chen, Jung-Eun Kim et al.USENIX Security 2021 · 7 citations

Related papers

  1. Compositional virtual timelines: verifying dynamic-priority partitions with algorithmic temporal isolationMengqi Liu, Zhong Shao, Hao Chen, Man-Ki Yoon et al.OOPSLA 2022 · 2 citations
  2. RefinedProsa: Connecting Response-Time Analysis with C Verification for Interrupt-Free SchedulersKimaya Bedarkar, Laila Elbeheiry, Michael Sammler, Lennard Gäher et al.PLDI 2025 · 2 citations
  3. VeriRT: An End-to-End Verification Framework for Real-Time Distributed SystemsYoonseung Kim, Sung-Hwan Lee, Yonghyun Kim, Chung-Kil HurPOPL 2025 · 2 citations
  4. TimeWall: Enabling Time Partitioning for Real-Time Multicore+Accelerator PlatformsTanya Amert, Zelin Tong, Sergey Voronov, Joshua Bakita et al.RTSS 2021 · 23 citations
  5. Formalising the Prevention of Microarchitectural Timing Channels by Operating SystemsRobert Sison, Scott Buckley, Toby Murray, Gerwin Klein et al.FM 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines