A Formal CHERI−C Memory Model
Seung Hoon Park
Abstract
In this work, we present a formal memory model that provides a memory semantics for CHERI-C programs with uncompressed capabilities in a 'purecap' environment. We present a CHERI-C memory model theory with properties suitable for verification and potentially other types of analyses. Our theory generates an OCaml executable instance of the memory model, which is then used to instantiate the parametric Gillian program analysis framework, enabling concrete execution of CHERI-C programs. The tool can run a CHERI-C test suite, demonstrating the correctness of our tool, and catch a good class of safety violations that the CHERI hardware might miss.
Editor
Manual Eberl‚ Gerwin Klein‚ Andreas Lochbihler‚ Tobias Nipkow‚ Larry Paulson‚ and René Thiemann
ISSN
2150−914x
Journal
Archive of Formal Proofs
Month
November
Year
2022