Re: [PATCH 1/9] binfmt_misc: let a register string create an entry disabled

Farid Zakaria <[email protected]> Sun, 02 Aug 2026 16:37:58 -0700
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.bpf,org.kvack.linux-mm
Message-ID <178571387898.1880415.17662890925792360904.b4-review@b4>
On Thu, 30 Jul 2026 15:34:03 +0200, Christian Brauner <[email protected]> wrote:
> diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
> index 707f8a14f8a6..ca7840b01a2b 100644
> --- a/fs/binfmt_misc.c
> +++ b/fs/binfmt_misc.c
> @@ -75,6 +86,7 @@ static const struct binfmt_misc_flag misc_flags[] = {
>  	{ 'F', MISC_FMT_OPEN_FILE,	0,			"open interpreter file now"	},
>  	{ 'T', MISC_FMT_TRANSPARENT,	MISC_FMT_OPEN_BINARY,	"transparent"			},
>  	{ 'L', MISC_FMT_LOADER,		0,			"loader substitution"		},
> +	{ 'D', MISC_FMT_DISABLED,	0,			"register disabled"		},

AI brought up an interesting point that this now changes the set of
valid delimiters which you might want to call out in the commit message.

For instance 'DnameDMD0DmagicDDinterpD' was allowed before.
It might be a very obscure feature to pick a delimiter because
https://docs.kernel.org/admin-guide/binfmt-misc.html does not even
mention it beyond 'where you can choose the : upon your needs'.

-- 
Farid Zakaria <[email protected]>