Re: [PATCH v2 3/7] rust_binder: Implement BINDER_DEBUG_USER_ERROR for refcounting and death notifications

From: Carlos Llamas

Date: Fri Jul 10 2026 - 15:59:13 EST


On Fri, Jul 10, 2026 at 02:32:54PM +0000, Jahnavi MN via B4 Relay wrote:
> From: Jahnavi MN <jahnavimn@xxxxxxxxxx>
>
> This adds dynamic debug logs for:
> - Decrementing handle reference counts that are already zero.
> - Mismatched reference states (calling inc_ref_done with no active
> inc_refs, or using a weak reference as a strong reference).
> - Requesting or clearing death notifications on invalid references,
> already active notifications, or with mismatched cookies.
>
> Signed-off-by: Jahnavi MN <jahnavimn@xxxxxxxxxx>
> ---

LGTM, thanks!

Reviewed-by: Carlos Llamas <cmllamas@xxxxxxxxxx>