TechReport: Implementing CHERI in gem5
Philipp Schmitz, Vishwas Vasuki Gautam, Tobias Jauch, Anna Lena Duque Ant\'on, Johannes M\"uller, Dominik Stoffel, Wolfgang Kunz
Key points
From the paper's conclusion- Therefore, we present gem5-CHERI: a CHERI-enhanced adaptation of the gem5 simulator that can boot the CheriBSD operating system and run custom workloads.
Abstract
Despite countless mitigation efforts, memory safety issues still prevail. The recently discovered security issues in PHP underline this fact. One of the most promising approaches to solving this problem is the concept of Capability Hardware Enhanced RISC Instructions (CHERI). There is a well-developed ecosystem of ISA simulators, compilers, operating systems, and hardware designs that support CHERI. However, the lack of a simulator modeling microarchitectural detail hinders efficient and fast design space exploration for CHERI-enhanced designs means the performance impact of CHERI remains understudied. Therefore, we present gem5-CHERI: a CHERI-enhanced adaptation of the gem5 simulator that can boot the CheriBSD operating system and run custom workloads. The simulator is available open-source on GitHub.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CHERI under Fault Injection: An Emulation-Based Security Evaluation of Capability Hardware Enhanced RISC InstructionsarXiv · 2026
- CapOpt: Capability-Aware Superoptimization for Secure and Provably Faster CodeProceedings of the ACM on Programming Languages · 2026
- SafeJIT: A Speculating JIT Engine Verified Down to the Machine CodearXiv · 2026
- Should Your Database Systems Use Hardware-Assisted Memory Safety Extensions in Production?arXiv · 2026
- PIMROP: A Feasibility Study of Return-Oriented Programming on Commercial Processing-in-Memory ArchitecturesarXiv · 2026
- AgentHammer: Triggering Simulated Rowhammer Bit-Flips via LLM Agents with Hardware-Aware Simulation-in-the-Loop SkillsApplied Sciences · 2026