Experimental Analysis of FreeRTOS Dependability through Targeted Fault Injection Campaigns

Luca Mannella , Stefano Di Carlo , Alessandro Savino · 2026

Read Experimental Analysis of FreeRTOS Dependability through Targeted Fault Injection Campaigns by Luca Mannella , Stefano Di Carlo , Alessandro Savino (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-25666.txt.

Introduction

Mannella, Di Carlo, and Savino test how well FreeRTOS holds up when faults strike its kernel. They built KRONOS, a tool that injects faults into kernel data structures from software. It needs no special hardware or debug ports. Their campaign targets scheduler variables and task control blocks. They track effects on correctness, timing, and availability. The authors report that damage to pointers and key scheduler variables often causes crashes. Many task control block fields, by contrast, have only a small effect.

Catalog record

CREATORLuca Mannella , Stefano Di Carlo , Alessandro Savino
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE28745
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.25666

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Experimental Analysis of FreeRTOS Dependability through Targeted Fault Injection Campaigns Thanks: This work was supported by project COLTRANE-V funded by the Ministero dell’Università e della Ricerca within the PRIN 2022 program (D.D.104 - 02/02/2022) and carried out within the Space It Up project funded by the Italian Space Agency, ASI, and the Ministry of University and Research, MUR, under contract n. 2024-5-E.0 - CUP n. I53D24000060005. Luca Mannella , Stefano Di Carlo , Alessandro Savino Abstract Real-Time Operating Systems (RTOSes) play a crucial role in safety-critical domains, where deterministic and predictable task execution is essential. Yet they are increasingly exposed to ionizing radiation, which can compromise system dependability. To assess FreeRTOS under such conditions, we introduce KRONOS, a software-based, non-intrusive post-propagation Fault Injection (FI) framework that injects transient and permanent faults into Operating System (OS) -visible kernel data structures without specialized hardware or debug interfaces. Using KRONOS, we conduct an extensive FI campaign on core FreeRTOS kernel components, including scheduler-related variables and Task Control Blocks (TCBs) , characterizing the impact of kernel-level corruptions on functional correctness, timing behavior, and availability. The results show that corruption of pointer and key scheduler-related variables frequently leads to crashes, whereas many TCB fields have only a limited impact on system availability. I Introduction Real-time embedded systems have become the backbone of modern critical infrastructures, extending far beyond consumer electronics to underpin applications in automotive control, aerospace and satellite systems, and other platforms [ 11 ] . Their pervasive deployment in safety and mission-critical domains demands stringent guarantees of dependability, encompassing reliability, safety, and fault tolerance [ 25 , 1 ] . To meet the diverse and demanding requirements of these applications, embedded devices typically rely on specialized software stacks. In some cases, this software is implemented as tightly coupled, application-specific firmware, while in others, it is built atop Real-Time Operating Systems (RTOSes) that orchestrate complex scheduling, resource management, and timing constraints. Despite advances in design, embedded systems remain vulnerable to both internal faults, such as hardware defects, software bugs, and malicious tampering, and external threats from their operational environment [ 25 ] . Notably, transient and permanent faults, especially in space and high-altitude applications, have a significant impact, and their occurrence is increasing even at ground level as device geometries shrink [ 26 , 27 , 23 , 22 , 1 ] . In this context, radiation-induced effects such as Single Event Upsets (SEUs) and persistent hardware faults may propagate to kernel-visible state and compromise correct execution [ 26 ] . The growing vulnerability of modern embedded platforms to these phenomena has stimulated the development of robust reliability assessment and mitigation techniques [ 1 ] . Among the available methodologies, Fault Injection (FI) is considered a cornerstone for evaluating system resilience. By deliberately introducing faults (either in hardware, software, or at the system level), researchers can systematically study fault propagation, error detection, and recovery mechanisms under controlled conditions [ 4 , 13 ] . While many FI studies focus on the effects of faults at the application level, some works also emphasize the importance of considering the RTOS kernel and its data structures, e.g., scheduler queues, timers, and Task Control Blocks (TCBs) , since faults in this layer can significantly influence system behavior and safety [ 13 , 25 ] . Nonetheless, a systematic analysis of RTOSes under transient and permanent faults, and of their implications for system dependability, remains an open research direction. This paper investigates how transient and permanent faults affecting key RTOS kernel data structures influence system dependability once these faults propagate to the RTOS -visible state. The main contributions are: (1) design of K ernel-level Free R TOS O bject-oriented N on-intrusive O pen fault injection S ystem (KRONOS) , a novel, software-based, FI framework for FreeRTOS [ 17 ] ; (2) extensive kernel-level FI campaign on FreeRTOS, for both transient and permanent fault models in RTOS-visible kernel state. (3) detailed analysis of outcome distributions and identification of critical kernel data structures, facilitating early-stage vulnerability assessment and identifying the most sensitive FreeRTOS components. The remainder of this paper is organized as follows: Section II reviews relevant related work on FI . Section III details the proposed FI methodology and its integration with FreeRTOS. Section IV describes the experimental setup, while Section V presents and discusses the results of our FI campaigns. Finally, Section VI concludes the paper. II Related Work FI is a widely used technique for assessing system dependability by purposefully introducing faults into the system and observing its behavior under these engineered fault scenarios [ 19 , 8 , 15 , 14 , 6 ] . FI can be classified (by injection mechanism) into four categories: (i) physical, (ii) hardware-based, (iii) software-based, and (iv) model-based. Physical FI involves subjecting the system implementation to external phenomena, such as radiation. Hardware-based techniques exploit hardware interfaces, e.g., the debug interface, to modify register contents or memory. Software-based methods alter the software layer, targeting variables or memory buffers. Finally, model-based FI operates on abstract models, such as Hardware Description Languages (HDLs) or instruction-set simulators, enabling FI campaigns in simulation environments. More details on those techniques can be found in [ 14 , 6 ] . Targeting the Operating System (OS) layer for FI is particularly challenging [ 7 , 9 ] , since faults affecting core kernel data can lead to unrecoverable errors and system hang. While similar effects may also occur when injecting faults at the application level, they tend to appear less frequently, and managing hangs is typically more time-consuming, adding complexity to FI campaigns [ 13 ] . Recent advances in model-based FI frameworks include gem5-MARVEL [ 10 ] . Built on the gem5 microarchitectural simulator [ 5 ] , it enables FIs at a detailed hardware level across multiple Instruction Set Architectures (ISAs) and system components, including OS kernels within simulation environments. While it offers fine-grained microarchitectural fault modeling and OS -level FI capability, the approach entails long simulation times and complexity. More broadly, microarchitectural FI comes at the expense of long simulation times. Prior work has extensively investigated FI at the hardware and microarchitectural levels, often highlighting the limitations of simplified high-level simulation approaches. Papadimitriou and Gizopoulos [ 22 ] performed FI within a processor’s microarchitecture and demonstrated that purely software-level FIs techniques that flip bits in program variables can overlook essential microarchitectural effects, sometimes even reversing vulnerability rankings when compared to full-stack analyses. Similarly, Cho et al. [ 12 ] examined architecture- and memory-level FI methods, showing that while such techniques offer high execution speed, their error-rate estimates may deviate by an order of magnitude. Collectively, these studies underscore the inherent limitations of high-abstraction FIs in capturing realistic hardware error behavior and fail to consider fault-handling mechanisms at the OS level. In contrast, our work targets the OS layer by injecting faults directly into RTOS kernel memory structures to evaluate the dependability of system software itself. By deliberately abstracting from microarchitectural modeling, the proposed approach focuses on analyzing the OS response to corrupted internal states—for instance, the behavior of task schedulers, kernel queues, and memory managers under fault conditions. Rather than estimating hardware fault rates, our objective is to uncover OS -level failure modes and robustness

Read the complete text