Thread (2 messages) flat view 2 messages, 2 authors, 7d ago

Re: [PATCH] binder: rm -f binder.c

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2026-09-13 06:04:07
Also in: linux-kselftest, lkml

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: rust-for-linux@vger.kernel.org
Acked-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help