Removing binder.c
Web page · https://lwn.net/Articles/1102982
First seen by Oriel on .
AI summary
LWN reports the removal of Android Binder’s C implementation after a more than five-year Rust rewrite focused on security, compatibility, latency, and deployment challenges.
- Binder was considered Android’s most vulnerability-dense component, making it a major candidate for replacement with Rust.
- The Rust and C implementations use identical algorithms, but Rust-specific locking issues caused tail-latency problems, including a 20-millisecond priority inversion.
- The Rust version became faster after an algorithmic improvement reduced required system calls, while new features were restricted to Rust.
- Compatibility required reproducing internal tracepoints, data structures, vendor hooks, and support for KASLR, CFI, and profile-guided optimization.
- The C implementation was removed in the 7.4 merge window, while 7.3 remains the designated 2026 long-term-support release and older kernels retain C Binder security fixes.
#rust #android #binder #kernel
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 70, latest observation ; +69 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 11, latest observation ; +11 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | vo5jve | https://lwn.net/Articles/1102982/ Read discussion |