Cargo-call-stack Static Call-stack Analysis for Rust
Authors:
- 1 July 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1, 1169-1176
Abstract
Memory safety is instrumental to the safety and security of software systems. The Rust language stands out with a type system and underlying memory model targeting memory safety without the need for dynamic garbage collection, making Rust a viable option for embedded applications. In this paper we present an integrated tool for call-stack analysis of Rust applications. We cover both theoretical and practical challenges, their solutions and open questions. The cargo-call-stack tool is useful for analyzing Rust applications in general, and embedded Rust in particular. To the latter, we show that using the call-stack analysis we can give guarantees of total memory safety, free of assumptions on operating systems and underlying memory protection mechanisms in hardware. The feasibility of the approach is demonstrated by applying the ‘call-stack’ tool on production code targeting a light-weight ARM Cortex-M platform.Keywords
This publication has 3 references indexed in Scilit:
- No Panic! Verification of Rust Programs by Symbolic Execution2018
- The rust language2014
- Stack-based scheduling of realtime processesReal-Time Systems, 1991