Re: [PATCH v4] binderfs: free minor on binder-control creation failure

From: Greg KH

Date: Sun Nov 29 2026 - 08:33:38 EST


On Sun, Nov 29, 2026 at 09:27:06PM +0800, Chao Huang wrote:
> From: Chao Huang <huangchao@xxxxxxxxxx>
>
> The binderfs_binder_ctl_create() implementation in rust_binderfs.c
> allocates a minor before creating the binder-control dentry. If
> d_alloc_name() fails, the error path frees the device and drops the
> inode, but leaves the minor allocated in binderfs_minors. Repeated
> failures can therefore exhaust the global minor IDA.
>
> Release the minor from a dedicated error path after a successful
> allocation.
>
> Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver")
> Acked-by: Carlos Llamas <cmllamas@xxxxxxxxxx>
> ---
> Changes in v4:
> - Update only rust_binderfs.c because drivers/android/binderfs.c has been
> removed from the current tree.
>

What about versions 1-3?

And you didn't sign off on this :(