Case Study: Securing MMU-less Linux Using CHERI
Hesham Almatary, Alfredo Mazzinghi, Robert N. M. Watson

TL;DR
This paper demonstrates how CHERI capabilities can enhance security in MMU-less Linux systems by providing spatial memory safety and isolation, addressing limitations of traditional MPU-based protection.
Contribution
It introduces novel CHERI-based mechanisms for securing MMU-less Linux, including full software stack capability mode, program isolation, kernel-user separation, and module compartmentalization.
Findings
CHERI provides complete spatial memory safety at kernel and user levels.
Isolation of user programs prevents cross-access, similar to MMU protections.
Kernel modules are compartmentalized, preventing system-wide compromise.
Abstract
MMU-less Linux variant lacks security because it does not have protection or isolation mechanisms. It also does not use MPUs as they do not fit with its software model because of the design drawbacks of MPUs (\ie coarse-grained protection with fixed number of protected regions). We secure the existing MMU-less Linux version of the RISC-V port using CHERI. CHERI is a hardware-software capability-based system that extends the ISA, toolchain, programming languages, operating systems, and applications in order to provide complete pointer and memory safety. We believe that CHERI could provide significant security guarantees for high-end dynamic MMU-less embedded systems at lower costs, compared to MMUs and MPUs, by: 1) building the entire software stack in pure-capability CHERI C mode which provides complete spatial memory safety at the kernel and user-level, 2) isolating user programs as…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Data Storage Technologies · Distributed and Parallel Computing Systems
