~/talk

Using Rust in the binder driver

Talkat Linux Plumbers Conference 2023 · 2023-11-13..11-15· [rust]
slides:none on file

A Rust reimplementation of the binder driver reaches feature parity with the C driver, boots a device, passes the test suite, and matches microbenchmark throughput after targeted optimizations. Unsafe is limited mainly to C interop and binderfs, and Rust prevents memory-safety bugs that C allowed so a reported logic bug produced no use-after-free though it remained exploitable. Code size is roughly equal overall with more deletions than additions, and some tiny refcount functions were rewritten for inlining to recover performance.

AI-written summary · about

  1. 0:00Introduction to binder
  2. 3:33Problems with C binder
  3. 7:07Rust implementation benefits
  4. 10:57Rust binder performance
  5. 14:13Unsafe code in Rust binder
  6. 16:20Vulnerability comparison
  7. 18:55Optimization learnings
  8. 20:23Community contributions
  9. 21:53API changes and maintenance
  10. 23:40Maintainer collaboration
  11. 26:10Future of Rust in kernel
~/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.