Efficient Linkage-Based Compartmentalization on CHERI

📅 2026-09-29
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the poor scalability of existing memory isolation mechanisms in supporting large-scale, fine-grained intra-process security domains by proposing an efficient linked isolation model built upon CHERI hardware capabilities. We introduce a novel "one-click" library-boundary isolation strategy, combined with deep customizations to compilers and operating systems for both Armv8-A and RISC-V architectures. This approach enables fine-grained isolation of tens of thousands of security domains and over 500 concurrent domains within UNIX user space, substantially surpassing the concurrency limitations of mechanisms such as Intel MPK. The proposed solution has been validated on Morello and Codasip X730 platforms, demonstrating that the vast majority of C/C++ programs execute without modification, requiring only minor adaptations for the V8 engine.
📝 Abstract
We present an efficient linkage-based model for in-process compartmentalization built on CHERI memory safety, which enables fine-grained compartmentalization of the entire UNIX user-space, scaling to 10K+ compartments on desktop systems. The model's "push-button" compartmentalization along existing library boundaries regularly hosts 500+ compartments per process for large applications such as Chromium, far exceeding the number of concurrently available protection domains supported by other mechanisms (e.g., up to 16 for Intel MPK). Custom policies can further subdivide libraries. Of the thousands of C/C++ programs tested, only the V8 JavaScript engine required source-level adaptation (<300 lines of changed code concerning garbage collection and JIT compilation). We implement the model for CHERI-extended versions of Armv8-A and RISC-V through support in the compiler toolchain and operating system. Case studies illustrate the smooth delegation of memory between compartments, compartment-aware debugging and visualization, as well as extensibility to a complex managed language runtime, demonstrating the benefits of our single-address-space model. We evaluate using multiple processors, including Arm's superscalar Morello and, notably, the first commercial CHERI-enabled RISC-V application core---Codasip's in-order dual-issue X730.
Problem

Research questions and friction points this paper is trying to address.

compartmentalization
memory safety
CHERI
in-process isolation
protection domains
Innovation

Methods, ideas, or system contributions that make the work stand out.

CHERI
Compartmentalization
Memory Safety
RISC-V
Linkage-based Model
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
D
Dapeng Gao
University of Cambridge
J
John Baldwin
Ararat River Consulting
Jessica Clarke
Jessica Clarke
University of Cambridge
N
Nicholas C. Connolly
Arm Limited
Brooks Davis
Brooks Davis
Capabilities Limited
F
Franz A. Fuchs
University of Cambridge
A
Alfredo Mazzinghi
University of Cambridge
Daniel Moghimi
Daniel Moghimi
Senior Research Scientist, Google
Hardware SecuritySystem SecurityCryptanalysisSide-Channel AttacksMicroarchitectural Attacks
P
Peter Rugg
University of Cambridge
D
Domagoj Stolfa
University of Cambridge
K
Konrad Witaszczyk
University of Cambridge
S
Simon W. Moore
University of Cambridge
Robert N. M. Watson
Robert N. M. Watson
Department of Computer Science and Technology, University of Cambridge
Computer SecurityOperating SystemsNetwork StacksProgramming LanguagesComputer Architecture