~/talk

BorrowSanitizer: Securing Rust Across Foreign Function Boundaries

links:none on file
slides:none on file

BorrowSanitizer is an LLVM‑based dynamic checker that instruments retag calls emitted by nightly Rust, stores provenance in shadow memory, and validates aliasing across C/C++ FFI; it finds real bugs (Servo and an io_uring wrapper) by reporting “accessed tag is foreign to protected tag.” The tool passes ~92% of ~400 Miri tests, runs on average ~2x faster than Miri, uses stop‑the‑world reference‑counting tree pruning to cut huge tree tails, and trades some Miri precision (e.g. wildcard provenance and integer→pointer modes) for practical cross‑language coverage.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:36Real-world interop bug example
  3. 7:51Limitations of existing tools
  4. 9:05How BorrowSanitizer works
  5. 15:24Retags and provenance tracking
  6. 18:43Runtime design and shadow memory
  7. 21:04Tree pruning for performance
  8. 26:01Current limitations and future work
  9. 30:08Upstreaming and community impact
  10. 32:24Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.