[PATCH v3 0/4] rust_binder: check current before closing fds

Alice Ryhl posted 4 patches 1 week, 4 days ago
drivers/android/binder/allocation.rs | 29 ++++++++++++++++-------------
drivers/android/binder/process.rs    |  4 ++--
rust/kernel/sync/aref.rs             | 22 ++++++++++++++++++++++
rust/kernel/task.rs                  |  9 +++++++++
4 files changed, 49 insertions(+), 15 deletions(-)
[PATCH v3 0/4] rust_binder: check current before closing fds
Posted by Alice Ryhl 1 week, 4 days ago
Please see the last patch in this series for details.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes in v3:
- Apply 'if' statement around for loop.
- Link to v2: https://lore.kernel.org/r/20260227-close-fd-check-current-v2-0-b3347edbb310@google.com

Changes in v2:
- Note that ARef<U> == U can't be implemented due to impl overlap.
- Add #[inline] in == for Task.
- Add a patch that makes use of the new == impl for Task.
- Link to v1: https://lore.kernel.org/r/20260219-close-fd-check-current-v1-0-fcab8d8469f5@google.com

---
Alice Ryhl (4):
      rust: sync: implement == operator for ARef
      rust: task: implement == operator for Task
      rust_binder: make use of == for Task
      rust_binder: check current before closing fds

 drivers/android/binder/allocation.rs | 29 ++++++++++++++++-------------
 drivers/android/binder/process.rs    |  4 ++--
 rust/kernel/sync/aref.rs             | 22 ++++++++++++++++++++++
 rust/kernel/task.rs                  |  9 +++++++++
 4 files changed, 49 insertions(+), 15 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260219-close-fd-check-current-98e3ee59880a

Best regards,
-- 
Alice Ryhl <aliceryhl@google.com>