Dynamic Detection of Rust Memory-Safety ViolationsOngoing
Motivation
Rust’s ownership and borrowing rules rule out memory-safety bugs in safe code, but unsafe blocks, which are common in systems libraries, FFI bindings and performance-critical code, can still break these guarantees. Dynamic checkers catch such violations while the program runs. How precise they are depends on the aliasing model they enforce.
What I work on
- Reproduced the CapsLock artifact, confirmed that it detects all 15 RustSec proof-of-concept bugs, and traced how its patched LLVM toolchain integrates with the Rust compiler.
- Implemented and tested a standalone C runtime for capability trees and shadow memory, covering borrow / access / revoke semantics and REF, RAW and
UnsafeCellnode types. - Currently comparing CapsLock’s revoke-on-use policy with the Tree Borrows model used by BorrowSanitizer on a shared event stream, and investigating coverage gaps for accesses within a single allocation.