Skip to main content
QUICK REVIEW

[Paper Review] REORDER: Securing Dynamic-Priority Real-Time Systems Using Schedule Obfuscation

Chien-Ying Chen, Monowar Hasan|arXiv (Cornell University)|Jun 4, 2018
Real-Time Systems SchedulingComputer Science41 references12 citations
TL;DR

This paper proposes REORDER, a runtime schedule obfuscation protocol that enhances security in dynamic-priority real-time systems—particularly those using EDF scheduling—by introducing bounded priority inversions to randomize task execution patterns. The method preserves schedulability while increasing resistance to side-channel attacks, and the authors introduce 'schedule entropy' as a quantitative metric to measure obfuscation effectiveness, validated via Linux kernel integration and MiBench automotive workloads on Raspberry Pi.

ABSTRACT

The deterministic (timing) behavior of real-time systems (RTS) can be used by adversaries - say, to launch side channel attacks or even destabilize the system by denying access to critical resources. We propose a protocol (named REORDER) to obfuscate this predictable timing behavior of RTS, especially ones designed using dynamic-priority scheduling algorithms (e.g., EDF). We also present a metric (named "schedule entropy") that measures the levels of obfuscation introduced into a given real-time system. The REORDER protocol was integrated into the standard Linux real-time scheduler and evaluated on a realistic embedded platform (Raspberry Pi) running the MiBench automotive benchmark workloads. We also demonstrate how designers of RTS can increase the security of their systems and also quantitatively measure the impact (both in terms of security and performance) of using this protocol.

Motivation & Objective

  • Address the growing threat of side-channel and denial-of-service attacks targeting predictable timing behavior in real-time systems (RTS).
  • Overcome the limitations of existing security mechanisms that are either ineffective for dynamic-priority schedulers or lack quantitative evaluation of obfuscation.
  • Develop a practical, schedulability-preserving method to randomize task execution patterns in real-time systems without compromising timing guarantees.
  • Introduce a new metric—schedule entropy—to quantitatively measure the level of obfuscation in real-time schedules for comparative evaluation.
  • Enable system designers to assess and tune the security-performance trade-off in real-time systems using empirical evaluation on real hardware.

Proposed method

  • Propose REORDER, a runtime protocol that introduces bounded priority inversions to randomize task scheduling in EDF-based systems, ensuring schedulability is preserved.
  • Use a timer-based mechanism (reorder_pi_timer) to control the duration of priority inversions, with configurable modes: REORDER_NORMAL, REORDER_IDLE_TIME, REORDER_FINE_GRAINED, and REORDER_RECLAMATION.
  • Implement the protocol in the Linux kernel by modifying core scheduling files, including sched.h, core.c, and deadline.c, to support task-specific and scheduler-specific variables.
  • Define a schedule entropy metric based on approximate entropy (using interval length m and threshold π) to quantify randomness in execution sequences, addressing limitations of naive entropy approximations.
  • Use discrete Fourier transform (DFT) analysis to demonstrate that obfuscated schedules obscure task frequencies, reducing the feasibility of side-channel reconstruction.
  • Evaluate the protocol on a Raspberry Pi platform using MiBench automotive benchmarks to measure real-world performance and security impact.

Experimental results

Research questions

  • RQ1Can bounded priority inversions be used to obfuscate real-time schedules in EDF-based systems without violating timing guarantees?
  • RQ2How can the level of obfuscation in a real-time schedule be quantitatively measured, and what metric best captures the randomness introduced by such obfuscation?
  • RQ3What is the performance overhead and schedulability impact of REORDER when applied to real-world embedded workloads?
  • RQ4How does the proposed schedule entropy metric compare to theoretical entropy in capturing true randomness in periodic task schedules?
  • RQ5To what extent does schedule obfuscation via REORDER reduce the feasibility of side-channel attacks based on frequency analysis?

Key findings

  • REORDER successfully preserves schedulability: any task set that is schedulable under vanilla EDF remains schedulable under REORDER’s obfuscated scheduling.
  • The proposed schedule entropy metric effectively captures the randomness of execution patterns, with a correlation of approximately 0.82 between approximate and true entropy in evaluated tasksets.
  • DFT analysis shows that obfuscated schedules (via REORDER) obscure task frequencies—particularly for tasks with non-harmonic periods—making side-channel reconstruction significantly harder.
  • The implementation of REORDER in the Linux kernel demonstrates feasibility and low runtime overhead, with measurable security improvements on real hardware (Raspberry Pi) using MiBench automotive benchmarks.
  • The four scheduling modes (REORDER_NORMAL, REORDER_IDLE_TIME, REORDER_FINE_GRAINED, REORDER_RECLAMATION) allow designers to tune the trade-off between security and performance based on system requirements.
  • The approximation of entropy using interval-based methods (with m = ⌈0.35L⌉ and π = 0.1L) provides a practical and scalable way to compare obfuscation levels across different scheduling schemes.

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.