From: Alice Ryhl <aliceryhl@google.com>
To: Chao Huang <958028483@qq.com>, Chao Huang <huangchao@kylinos.cn>
Cc: "Alice Ryhl" <aliceryhl@google.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Carlos Llamas" <cmllamas@google.com>,
"Arve Hjønnevåg" <arve@android.com>,
"Todd Kjos" <tkjos@android.com>,
"Christian Brauner" <brauner@kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] rust_binder: free minor on binder-control creation failure
Date: Mon, 30 Nov 2026 09:08:24 +0000 [thread overview]
Message-ID: <20261130090824.2980912-1-aliceryhl@google.com> (raw)
In-Reply-To: <tencent_1A58B9876E7CB92D87222EF73098C40AAF05@qq.com>
On Sun, Nov 29, 2026 at 10:45:19PM +0800, Chao Huang wrote:
> 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.
Thanks for the v5, though this fix has already been picked up into
char-misc-next via commit 16ecdcab15fb ("rust_binderfs: fix minor number
leak on binder-control creation failure") [1].
[1] https://lore.kernel.org/r/20261102144532.123432-1-adhyanshverma2010@gmail.com
Alice
next prev parent reply other threads:[~2026-11-30 9:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 11:23 [PATCH] binderfs: " Chao Huang
2026-08-08 13:34 ` Alice Ryhl
2026-08-10 9:32 ` [PATCH v2] " Chao Huang
2026-08-10 20:16 ` Carlos Llamas
2026-08-11 1:05 ` [PATCH v3] " Chao Huang
2026-08-11 2:52 ` Carlos Llamas
2026-11-29 13:27 ` [PATCH v4] " Chao Huang
2026-11-29 13:33 ` Greg KH
2026-11-29 14:45 ` [PATCH v5] rust_binder: " Chao Huang
2026-11-30 9:08 ` Alice Ryhl [this message]
2026-11-30 9:49 ` Chao Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130090824.2980912-1-aliceryhl@google.com \
--to=aliceryhl@google.com \
--cc=958028483@qq.com \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=cmllamas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=huangchao@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=tkjos@android.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®