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

From: Alice Ryhl

Date: Fri Feb 27 2026 - 04:45:04 EST


Please see the last patch in this series for details.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
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@xxxxxxxxxx

---
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 | 4 ++++
drivers/android/binder/process.rs | 4 ++--
rust/kernel/sync/aref.rs | 22 ++++++++++++++++++++++
rust/kernel/task.rs | 9 +++++++++
4 files changed, 37 insertions(+), 2 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260219-close-fd-check-current-98e3ee59880a

Best regards,
--
Alice Ryhl <aliceryhl@xxxxxxxxxx>