EconPapers    
Economics at your fingertips  
 

Zero-Copy Messaging: Low-Latency Inter-Task Communication in CHERI-Enabled RTOS

Mina Soltani Siapoush and Jim Alves-Foss ()
Additional contact information
Mina Soltani Siapoush: Center for Secure and Dependable Systems (CSDS), University of Idaho, Moscow, ID 83844, USA
Jim Alves-Foss: Center for Secure and Dependable Systems (CSDS), University of Idaho, Moscow, ID 83844, USA

Future Internet, 2025, vol. 17, issue 11, 1-16

Abstract: Efficient and secure inter-task communication (ITC) is critical in real-time embedded systems, particularly in security-sensitive architectures. Traditional ITC mechanisms in Real-Time Operating Systems (RTOSs) often incur high latency from kernel trapping, context-switch overhead, and multiple data copies during message passing. This paper introduces a zero-copy, capability-protected ITC framework for CHERI-enabled RTOS environments that achieves both high performance and strong compartmental isolation. The approach integrates mutexes and semaphores encapsulated as sealed capabilities, a shared memory ring buffer for messaging, and compartment-local stubs to eliminate redundant data copies and reduce cross-compartment transitions. Temporal safety is ensured through hardware-backed capability expiration, mitigating use-after-free vulnerabilities. Implemented as a reference application on the CHERIoT RTOS, the framework delivers up to 3× lower mutex lock latency and over 70% faster message transfers compared to baseline FreeRTOS, while preserving deterministic real-time behavior. Security evaluation confirms resilience against unauthorized access, capability leakage, and TOCTTO vulnerabilities. These results demonstrate that capability-based zero-copy ITC can be a practical and performance-optimal solution for constrained embedded systems that demand high throughput, low latency, and verifiable isolation guarantees.

Keywords: real-time operating systems (RTOSs); FreeRTOS; capability hardware-enhanced RISC instructions (CHERI); inter-task communication (ITC); zero-copy; synchronization (search for similar items in EconPapers)
JEL-codes: O3 (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
https://www.mdpi.com/1999-5903/17/11/506/pdf (application/pdf)
https://www.mdpi.com/1999-5903/17/11/506/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jftint:v:17:y:2025:i:11:p:506-:d:1786886

Access Statistics for this article

Future Internet is currently edited by Ms. Grace You

More articles in Future Internet from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-11-07
Handle: RePEc:gam:jftint:v:17:y:2025:i:11:p:506-:d:1786886