[PATCH v2 0/2] Fix VMA confusion in Rust Binder
From: Alice Ryhl
Date: Wed Feb 18 2026 - 06:53:57 EST
This series contains two bugfixes for Rust Binder. I'd like to follow
them up with better solutions by changing the VMA api, but as an
immediate fix this should work.
See the first commit for an explanation of the actual bug.
Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Changes in v2:
- Use imperative mood.
- Add some comments about why reuse of ShrinkablePageRange is not a
problem.
- Use ptr::from_ref()
- Rustfmt
- Link to v1: https://lore.kernel.org/r/20260217-binder-vma-check-v1-0-1a2b37f7b762@xxxxxxxxxx
---
Alice Ryhl (2):
rust_binder: check ownership before using vma
rust_binder: avoid reading the written value in offsets array
drivers/android/binder/page_range.rs | 83 +++++++++++++++++++++++++++---------
drivers/android/binder/thread.rs | 17 +++-----
2 files changed, 69 insertions(+), 31 deletions(-)
---
base-commit: 0f2acd3148e0ef42bdacbd477f90e8533f96b2ac
change-id: 20260217-binder-vma-check-b6fca42e986c
Best regards,
--
Alice Ryhl <aliceryhl@xxxxxxxxxx>