Re: [PATCH v2] rust_binder: clear freeze listener on node removal

From: Greg Kroah-Hartman

Date: Fri Jul 03 2026 - 06:38:43 EST


On Mon, Jun 15, 2026 at 01:13:16PM +0000, Alice Ryhl wrote:
> Generally userspace is supposed to explicitly clear freeze listeners
> before they drop the refcount on the node ref to zero, but there's
> nothing forcing that. Currently, in this scenario the freeze listener
> remains in the freeze_listeners rbtree and in the remote node's freeze
> listener list, even though the ref for which the listener is registered
> is gone. This could potentially lead to a memory leak due to a refcount
> cycle. Thus, remove the freeze listener in this scenario.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
> This series is based on top of:
> https://lore.kernel.org/all/20260615-binder-noderefs-spin-v3-0-3235f5a3e0a0@xxxxxxxxxx/

Hm, but that's not a bugfix series, so I can't take this patch now for
7.2-final. Do you want to redo this one or wait for 7.3-rc1?

thanks,

greg k-h