File abstractions needed by Rust Binder
From: | Alice Ryhl <aliceryhl-AT-google.com> | |
To: | Miguel Ojeda <ojeda-AT-kernel.org>, Alex Gaynor <alex.gaynor-AT-gmail.com>, Wedson Almeida Filho <wedsonaf-AT-gmail.com>, Boqun Feng <boqun.feng-AT-gmail.com>, Gary Guo <gary-AT-garyguo.net>, "Björn Roy Baron" <bjorn3_gh-AT-protonmail.com>, Benno Lossin <benno.lossin-AT-proton.me>, Andreas Hindborg <a.hindborg-AT-samsung.com>, Peter Zijlstra <peterz-AT-infradead.org>, Alexander Viro <viro-AT-zeniv.linux.org.uk>, Christian Brauner <brauner-AT-kernel.org>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, "Arve Hjønnevåg" <arve-AT-android.com>, Todd Kjos <tkjos-AT-android.com>, Martijn Coenen <maco-AT-android.com>, Joel Fernandes <joel-AT-joelfernandes.org>, Carlos Llamas <cmllamas-AT-google.com>, Suren Baghdasaryan <surenb-AT-google.com> | |
Subject: | [PATCH 0/7] File abstractions needed by Rust Binder | |
Date: | Wed, 29 Nov 2023 12:51:06 +0000 | |
Message-ID: | <20231129-alice-file-v1-0-f81afe8c7261@google.com> | |
Cc: | Alice Ryhl <aliceryhl-AT-google.com>, Dan Williams <dan.j.williams-AT-intel.com>, Kees Cook <keescook-AT-chromium.org>, Matthew Wilcox <willy-AT-infradead.org>, Thomas Gleixner <tglx-AT-linutronix.de>, Daniel Xu <dxu-AT-dxuuu.xyz>, linux-kernel-AT-vger.kernel.org, rust-for-linux-AT-vger.kernel.org, linux-fsdevel-AT-vger.kernel.org | |
Archive-link: | Article |
This patchset contains the file abstractions needed by the Rust implementation of the Binder driver. Please see the Rust Binder RFC for usage examples: https://lore.kernel.org/rust-for-linux/20231101-rust-bind... Users of "rust: file: add Rust abstraction for `struct file`": [PATCH RFC 02/20] rust_binder: add binderfs support to Rust binder [PATCH RFC 03/20] rust_binder: add threading support Users of "rust: cred: add Rust abstraction for `struct cred`": [PATCH RFC 05/20] rust_binder: add nodes and context managers [PATCH RFC 06/20] rust_binder: add oneway transactions [PATCH RFC 11/20] rust_binder: send nodes in transaction [PATCH RFC 13/20] rust_binder: add BINDER_TYPE_FD support Users of "rust: security: add abstraction for security_secid_to_secctx": [PATCH RFC 06/20] rust_binder: add oneway transactions Users of "rust: file: add `FileDescriptorReservation`": [PATCH RFC 13/20] rust_binder: add BINDER_TYPE_FD support [PATCH RFC 14/20] rust_binder: add BINDER_TYPE_FDA support Users of "rust: file: add kuid getters": [PATCH RFC 05/20] rust_binder: add nodes and context managers [PATCH RFC 06/20] rust_binder: add oneway transactions Users of "rust: file: add `DeferredFdCloser`": [PATCH RFC 14/20] rust_binder: add BINDER_TYPE_FDA support Users of "rust: file: add abstraction for `poll_table`": [PATCH RFC 07/20] rust_binder: add epoll support This patchset has some uses of read_volatile in place of READ_ONCE. Please see the following rfc for context on this: https://lore.kernel.org/all/20231025195339.1431894-1-boqu... This was previously sent as an rfc: https://lore.kernel.org/all/20230720152820.3566078-1-alic... Signed-off-by: Alice Ryhl <aliceryhl@google.com> --- Alice Ryhl (4): rust: security: add abstraction for security_secid_to_secctx rust: file: add `Kuid` wrapper rust: file: add `DeferredFdCloser` rust: file: add abstraction for `poll_table` Wedson Almeida Filho (3): rust: file: add Rust abstraction for `struct file` rust: cred: add Rust abstraction for `struct cred` rust: file: add `FileDescriptorReservation` rust/bindings/bindings_helper.h | 9 ++ rust/bindings/lib.rs | 1 + rust/helpers.c | 94 +++++++++++ rust/kernel/cred.rs | 73 +++++++++ rust/kernel/file.rs | 345 ++++++++++++++++++++++++++++++++++++++++ rust/kernel/file/poll_table.rs | 97 +++++++++++ rust/kernel/lib.rs | 3 + rust/kernel/security.rs | 78 +++++++++ rust/kernel/sync/condvar.rs | 2 +- rust/kernel/task.rs | 71 ++++++++- 10 files changed, 771 insertions(+), 2 deletions(-) --- base-commit: 98b1cc82c4affc16f5598d4fa14b1858671b2263 change-id: 20231123-alice-file-525b98e8a724 Best regards, -- Alice Ryhl <aliceryhl@google.com>