Encapsulated Functions: Fortifying Rust's FFI in Embedded Systems

Leon Schuermann, Arun Thomas, Amit A. Levy · 2023

Memory-safe languages like Rust are increasingly popular for systems development. Nonetheless, practical systems must interact with code written in memory-unsafe languages. This is especially true in security and safety-critical embedded systems, where subsystems such as cryptographic implementations are subject to industrial and governmental certification requirements. Direct interactions with such libraries, however, expose memory-safe languages to significant risks: Any single bug in either the foreign code or the cross-language interactions may arbitrarily violate the memory safety of the wrapping language.

Read the paper · More papers on PaperTik