[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHC9VhSPo4+gSqR2g-6yvDtYGyAnQ4scw2_vQCUrKzbBBd790A@mail.gmail.com>
Date: Thu, 18 Sep 2025 11:51:54 -0400
From: Paul Moore <paul@...l-moore.com>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Arve Hjønnevåg <arve@...roid.com>,
Todd Kjos <tkjos@...roid.com>, Martijn Coenen <maco@...roid.com>,
Joel Fernandes <joelagnelf@...dia.com>, Christian Brauner <brauner@...nel.org>,
Carlos Llamas <cmllamas@...gle.com>, Suren Baghdasaryan <surenb@...gle.com>, Miguel Ojeda <ojeda@...nel.org>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Trevor Gross <tmgross@...ch.edu>, Danilo Krummrich <dakr@...nel.org>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>, "Liam R. Howlett" <Liam.Howlett@...cle.com>,
Serge Hallyn <sergeh@...nel.org>, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, Wedson Almeida Filho <wedsonaf@...il.com>,
Matt Gilbride <mattgilbride@...gle.com>
Subject: Re: [PATCH] rust_binder: add Rust Binder driver
On Thu, Sep 18, 2025 at 6:19 AM Alice Ryhl <aliceryhl@...gle.com> wrote:
>
> Please see the attached link to the original RFC for motivation.
>
> I did not include all of the tracepoints as I felt that the mechansim
> for making C access fields of Rust structs should be discussed on list
> separately. I also did not include the support for building Rust Binder
> as a module since that requires exporting a bunch of additional symbols
> on the C side.
>
> Link: https://lore.kernel.org/r/20231101-rust-binder-v1-0-08ba9197f637@google.com
> Co-developed-by: Wedson Almeida Filho <wedsonaf@...il.com>
> Signed-off-by: Wedson Almeida Filho <wedsonaf@...il.com>
> Co-developed-by: Matt Gilbride <mattgilbride@...gle.com>
> Signed-off-by: Matt Gilbride <mattgilbride@...gle.com>
> Signed-off-by: Alice Ryhl <aliceryhl@...gle.com>
> ---
> drivers/android/Kconfig | 15 +-
> drivers/android/Makefile | 1 +
> drivers/android/binder/Makefile | 9 +
> drivers/android/binder/allocation.rs | 602 +++++++++
> drivers/android/binder/context.rs | 180 +++
> drivers/android/binder/deferred_close.rs | 204 +++
> drivers/android/binder/defs.rs | 182 +++
> drivers/android/binder/dummy.c | 15 +
> drivers/android/binder/error.rs | 99 ++
> drivers/android/binder/freeze.rs | 388 ++++++
> drivers/android/binder/node.rs | 1131 +++++++++++++++++
> drivers/android/binder/node/wrapper.rs | 78 ++
> drivers/android/binder/page_range.rs | 746 +++++++++++
> drivers/android/binder/page_range_helper.c | 24 +
> drivers/android/binder/page_range_helper.h | 15 +
> drivers/android/binder/process.rs | 1696 +++++++++++++++++++++++++
> drivers/android/binder/range_alloc/array.rs | 251 ++++
> drivers/android/binder/range_alloc/mod.rs | 329 +++++
> drivers/android/binder/range_alloc/tree.rs | 488 +++++++
> drivers/android/binder/rust_binder.h | 23 +
> drivers/android/binder/rust_binder_events.c | 59 +
> drivers/android/binder/rust_binder_events.h | 36 +
> drivers/android/binder/rust_binder_internal.h | 87 ++
> drivers/android/binder/rust_binder_main.rs | 627 +++++++++
> drivers/android/binder/rust_binderfs.c | 850 +++++++++++++
> drivers/android/binder/stats.rs | 89 ++
> drivers/android/binder/thread.rs | 1596 +++++++++++++++++++++++
> drivers/android/binder/trace.rs | 16 +
> drivers/android/binder/transaction.rs | 456 +++++++
> include/uapi/linux/android/binder.h | 2 +-
> rust/bindings/bindings_helper.h | 8 +
> rust/helpers/binder.c | 26 +
> rust/helpers/helpers.c | 1 +
> rust/helpers/page.c | 8 +
> rust/helpers/security.c | 24 +
> rust/kernel/cred.rs | 6 +
> rust/kernel/page.rs | 6 +
> rust/kernel/security.rs | 37 +
> rust/uapi/uapi_helper.h | 1 +
> 39 files changed, 10409 insertions(+), 2 deletions(-)
This is a pretty big patch, in the future it might be nice to
decompose things like this into a multi-part patchset. Regardless,
the LSM/security bits look okay to me.
Acked-by: Paul Moore <paul@...l-moore.com>
--
paul-moore.com
Powered by blists - more mailing lists