CHERIoT: Complete Memory Safety for Embedded Devices
Authors:
- Saar AmarSASaar Amar
- David ChisnallDCDavid Chisnall
- Tony ChenTCTony Chen
- Nathaniel Wesley FilardoNFNathaniel Wesley Filardo
- Ben LaurieBLBen Laurie
- Kunyan LiuKLKunyan Liu
- Robert NortonRNRobert Norton
- Simon W. MooreSMSimon W. Moore
- Yucong TaoYTYucong Tao
- Robert N. M. WatsonRWRobert N. M. Watson
- Hongyan XiaHXHongyan Xia
Open Access
- 28 October 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 641-653
Abstract
The ubiquity of embedded devices is apparent. The desire for increased functionality and connectivity drives ever larger software stacks, with components from multiple vendors and entities. These stacks should be replete with isolation and memory safety technologies, but existing solutions impinge upon development, unit cost, power, scalability, and/or real-time constraints, limiting their adoption and production-grade deployments. As memory safety vulnerabilities mount, the situation is clearly not tenable and a new approach is needed. To slake this need, we present a novel adaptation of the CHERI capability architecture, co-designed with a green-field, security-centric RTOS. It is scaled for embedded systems, is capable of fine-grained software compartmentalization, and provides affordances for full inter-compartment memory safety. We highlight central design decisions and offloads and summarize how our prototype RTOS uses these to enable memory-safe, compartmentalized applications. Unlike many state-of-the-art schemes, our solution deterministically (not probabilistically) eliminates memory safety vulnerabilities while maintaining source-level compatibility. We characterize the power, performance, and area microarchitectural impacts, run microbenchmarks of key facilities, and exhibit the practicality of an end-to-end IoT application. The implementation shows that full memory safety for compartmentalized embedded systems is achievable without violating resource constraints or real-time guarantees, and that hardware assists need not be expensive, intrusive, or power-hungry.Keywords
Funding Information
- Defense Advanced Research Projects Agency (DARPA) (HR001122C0110)
- Innovate UK project (105694)
This publication has 17 references indexed in Scilit:
- Multiprogramming a 64kB Computer Safely and Efficiently2017
- Memory Safety for Embedded Devices with nesCheck2017
- TyTAN2015
- The CHERI capability model: Revisiting RISC in an age of risk2014
- TrustLite2014
- The pauseless GC algorithm2005
- Memory safety without garbage collection for embedded applicationsACM Transactions on Embedded Computing Systems, 2005
- Predictable and efficient virtual addressing for safety-critical real-time systems2002
- List processing in real time on a serial computerCommunications of the ACM, 1978
- ProtectionACM SIGOPS Operating Systems Review, 1974