On Sat, Sep 12, 2026 at 09:41:10PM +0000, Carlos Llamas wrote: > The day has finally come. We are dropping the legacy C implementation > of the Binder IPC driver in favor of its Rust version. > > For 15+ years, the C driver has grown increasingly complex, making it > incredibly painful to maintain and land new features without tripping > over vulnerabilities. The Rust implementation alleviates most of > these issues, so it's time for a change. > > Alice Ryhl has worked hard on the Rust binder for the past couple of > years, not only achieving full feature parity but also proving that it > can match and often beat the performance of the C counterpart. Having > run successfully on Android devices for some time now, we can no longer > call this an "experiment". > > It's time to move on, yank the C code, and focus all new features and > optimizations on the Rust driver. > > Long live the new Rust Binder king! > > Cc: [email protected] > Acked-by: Alice Ryhl <[email protected]> > Signed-off-by: Carlos Llamas <[email protected]> > --- > drivers/android/Kconfig | 39 +- > drivers/android/Makefile | 5 +- > drivers/android/binder.c | 7186 ----------------- > drivers/android/binder/Makefile | 4 +- > drivers/android/binder/rust_binder_main.rs | 2 +- > drivers/android/binder/rust_binderfs.c | 2 +- > drivers/android/binder_alloc.c | 1409 ---- > drivers/android/binder_alloc.h | 189 - > drivers/android/binder_internal.h | 597 -- > drivers/android/binder_netlink.c | 32 - > drivers/android/binder_netlink.h | 21 - > drivers/android/binder_trace.h | 448 - > drivers/android/binderfs.c | 786 -- > drivers/android/dbitmap.h | 169 - > drivers/android/tests/.kunitconfig | 7 - > drivers/android/tests/Makefile | 6 - > drivers/android/tests/binder_alloc_kunit.c | 572 -- > rust/bindings/bindings_helper.h | 2 +- > .../filesystems/binderfs/binderfs_test.c | 2 +- > .../selftests/filesystems/binderfs/config | 1 - > 20 files changed, 9 insertions(+), 11470 deletions(-)
Yeah!!! Great job everyone on this, I'll queue this up this week when I catch up on pending binder fixes/patches... thanks, greg k-h

