From: sashiko-bot@kernel.org
To: "Christian Brauner" <brauner@kernel.org>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH 3/3] binfmt_misc: document the pre-opened interpreter limit
Date: Mon, 03 Aug 2026 12:18:42 +0000 [thread overview]
Message-ID: <20260803121843.BBABD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260803-work-binfmt_misc-interplimit-v1-3-4a2435500bd9@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch inadvertently removes useful documentation about binding files with no path of their own (e.g., memfd, unlinked files) using `/proc/self/fd/N`.
--
--- Patch [3]: [PATCH 3/3] binfmt_misc: document the pre-opened interpreter limit ---
commit 7e931b9fad1ca1a8aeab3afa756448374ff5e74d
Author: Christian Brauner <brauner@kernel.org>
binfmt_misc: document the pre-opened interpreter limit
This commit documents how pre-opened interpreters are accounted for and limited
by the new /proc/sys/user/max_binfmt_misc_interpreters sysctl. It details how
nested namespaces affect the limit and explains the -ENOSPC error behavior.
> diff --git a/Documentation/admin-guide/binfmt-misc.rst b/Documentation/admin-guide/binfmt-misc.rst
> index 622b5d8c89957..d26b63a27c259 100644
> --- a/Documentation/admin-guide/binfmt-misc.rst
> +++ b/Documentation/admin-guide/binfmt-misc.rst
[ ... ]
> @@ -215,10 +220,9 @@ with the credentials the entry file was opened with, exactly the way ``F``
> pre-opens a static entry's interpreter; the paths must be absolute. The
> path is everything past the first space, so there is nothing it cannot
> express, and no interpreter has to fit in a register string. An entry
> -binds at most 100 interpreters; a write past that is refused with
> -``-ENOSPC``. To bind a file that has no path of its own - already
> -unlinked, a ``memfd``, or reachable only in another mount namespace -
> -open it and write ``/proc/self/fd/N``.
> +binds at most 100 interpreters, and each one is charged against
> +``max_binfmt_misc_interpreters`` like any other binding. A write past either
> +limit is refused with ``-ENOSPC``.
[Severity: Low]
This isn't a bug, but does this unintentionally remove the instructions for
binding files that have no path of their own? The previous text provided
useful details on how to use /proc/self/fd/N for unlinked files or memfds,
which seems to have been dropped during the rewording of the limit behavior.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260803-work-binfmt_misc-interplimit-v1-0-4a2435500bd9@kernel.org?part=3
next prev parent reply other threads:[~2026-08-03 12:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 12:14 [PATCH 0/3] binfmt_misc: bound the interpreters an entry can pre-open Christian Brauner
2026-08-03 12:15 ` [PATCH 1/3] binfmt_misc: correctly account pre-opened interpreters Christian Brauner
2026-08-03 12:15 ` [PATCH 2/3] selftests/exec: test the pre-opened interpreter limit Christian Brauner
2026-08-03 12:15 ` [PATCH 3/3] binfmt_misc: document " Christian Brauner
2026-08-03 12:18 ` sashiko-bot [this message]
2026-08-03 14:06 ` Christian Brauner
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=20260803121843.BBABD1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brauner@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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