Re: [PATCH] binder: rust: pin zero-to-one ref increments to initiating thread
From: Alice Ryhl
Date: Wed Dec 17 2025 - 15:43:39 EST
On Mon, Dec 15, 2025 at 09:45:41PM +0200, Pieter-Louis Schoeman wrote:
> The refcount update path must use the zero-to-one aware API on the first
> increment to preserve correct delivery semantics.
>
> Pass the initiating thread through Process::update_ref() and NodeRef so
> zero->one increments are pinned when available, while keeping decrement
> behavior unchanged.
>
> Also harden update_refcount_locked() to reject increments.
>
> Signed-off-by: Pieter-Louis Schoeman <pl.schoeman@xxxxxxxxxxxxx>
Currently the zero-to-one aware API is used only when a process sends an
outgoing transaction containing a node owned by the sender. Can you
explain what other scenario requires the zero-to-one aware API?
Alice