Re: [PATCH v3] rust_binder: reject context manager self-transaction
From: Alice Ryhl
Date: Thu Jul 02 2026 - 06:49:11 EST
On Thu, Jun 25, 2026 at 04:09:57PM +0530, Keshav Verma wrote:
> Rust binder resolved handle 0 to the context manager node, but it does not
> reject the case where the caller owns the same node.
>
> The C binder driver rejects transactions from the context-manager process
> to handle 0 after resolving the target node. Match that behavior in Rust
> Binder by rejecting handle 0 transactions when the resolved context-manager
> node is owned by the calling process.
>
> This applies to both synchronous and oneway transactions because both paths
> resolve the target through Process::get_transaction_node().
>
> Cc: stable@xxxxxxxxxx
> Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
> Signed-off-by: Keshav Verma <iganschel@xxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>