Skip to main content
QUICK REVIEW

[Paper Review] Time Protection: the Missing OS Abstraction

Qian Ge, Yuval Yarom|arXiv (Cornell University)|Oct 12, 2018
Security and Verification in ComputingComputer Science50 references8 citations
TL;DR

This paper proposes time protection as a missing OS abstraction to prevent microarchitectural timing channels, using cache partitioning via page colouring and targeted flushing of shared hardware state, combined with a policy-free kernel clone mechanism. The approach effectively closes timing channels with minimal performance overhead on both x86 and Arm platforms, demonstrating transparency and strong isolation guarantees in seL4.

ABSTRACT

Timing channels enable data leakage that threatens the security of computer systems, from cloud platforms to smartphones and browsers executing untrusted third-party code. Preventing unauthorised information flow is a core duty of the operating system, however, present OSes are unable to prevent timing channels. We argue that OSes must provide time protection in addition to the established memory protection. We examine the requirements of time protection, present a design and its implementation in the seL4 microkernel, and evaluate its efficacy as well as performance overhead on Arm and x86 processors.

Motivation & Objective

  • To address the critical security gap in operating systems where timing channels—especially microarchitectural ones—enable unauthorized information leakage.
  • To establish time protection as a first-class OS abstraction, on par with memory protection, to ensure temporal isolation between security domains.
  • To design and implement a verifiable, minimal, and policy-free mechanism for time protection in a trusted kernel, specifically seL4.
  • To evaluate the effectiveness of time protection in eliminating timing channels and quantify its performance overhead on modern x86 and Arm processors.

Proposed method

  • Introduces a policy-free kernel clone operation that creates per-partition kernel images on each core, minimizing shared state between security domains.
  • Employs page colouring to partition the L1 and L2 caches, and flushes non-partitionable microarchitectural state such as the L3 cache (LLC) and TLB entries.
  • Uses time padding to increase context-switch latency and prevent timing side-channel leakage from inter-domain timing differences.
  • Leverages existing hardware support for cache colouring and flush operations, with extensions to improve precision and reduce overhead.
  • Applies the mechanism to seL4 microkernel, ensuring formal verification of isolation properties and minimal trusted code surface.
  • Evaluates the design using real-world workloads (Splash-2) under controlled attack scenarios with co-resident malicious threads.

Experimental results

Research questions

  • RQ1Can a mandatory, black-box OS mechanism effectively close microarchitectural timing channels without relying on application-level cooperation?
  • RQ2How can temporal isolation be achieved with minimal performance overhead while ensuring strong isolation guarantees?
  • RQ3To what extent can existing hardware features like cache colouring and flush operations be leveraged to implement time protection?
  • RQ4What is the performance impact of time protection on general-purpose workloads, especially under adversarial cache contention?
  • RQ5Can time protection be implemented in a policy-free, minimal kernel such as seL4 while maintaining verifiability and security?

Key findings

  • Time protection effectively eliminates all studied microarchitectural timing channels by partitioning shared hardware resources and isolating kernel state across domains.
  • On x86, cache partitioning with 50% or 75% share caused less than 5.5% overhead on most Splash-2 benchmarks, with performance gains observed in radiosity and ocean due to reduced conflict misses.
  • On Arm, the performance overhead from time padding was only 0.2%–0.4%, and raytrace showed consistent performance improvement due to isolation from attack threads.
  • The kernel clone mechanism introduced near-zero overhead on both x86 and Arm, enabling almost perfect partitioning of the kernel and interrupts.
  • The approach is effective even with current hardware limitations, and future hardware extensions (e.g., more targeted flushes) could enable perfect time protection.
  • The evaluation confirms that time protection is transparent to applications and provides strong isolation without requiring changes to untrusted code.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.