Re: [PATCH rust-next] rust: binder: refactor context management to use KVVec

From: Alice Ryhl

Date: Sun Jan 18 2026 - 04:37:15 EST


On Sat, Jan 17, 2026 at 09:22:42AM -0700, jkhall81 wrote:
> Replace the intrusive linked list management in context.rs with KVVec.
> This modernization simplifies the ownership model by using standard
> Arc-based tracking and moves away from manual unsafe list removals.
>
> The refactor improves memory safety by leveraging Rust's contiguous
> collection types while maintaining proper error propagation for
> allocation failures during process registration.
>
> Suggested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Link: https://github.com/rust-for-linux/linux/issues/1215
> Signed-off-by: jkhall81 <jason.kei.hall@xxxxxxxxx>

This could cc the rust for linux list:
rust-for-linux@xxxxxxxxxxxxxxx

Alice