Re: [PATCH] rust_binderfs: fix minor number leak on binder-control creation failure
From: Adhyansh Verma
Date: Fri Nov 27 2026 - 05:00:08 EST
On Thu, Nov 26, 2026 at 07:58:35AM +0000, Alice Ryhl wrote:
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Hi Alice,
Thanks for the review and the context regarding commit fd2bc059ed46!
Much appreciated.
I am back at the workstation today and was following up on the thread.
While auditing the open and initialization error paths in the Rust
binder driver, I also noticed a process leak in rust_binder_open() when
BinderfsProcFile::new() fails (where Process::open() registers the
process into ctx.manager.all_procs, but on subsequent failure we return
without deregistering, permanently leaking the Process and credentials).
I have verified a fix for that against char-misc-next and will post it
shortly as a separate patch for review.
Thanks again,
Adhyansh