* backport binfmt_misc: pass binfmt_misc flags to the interpreter
@ 2021-03-02 8:02 YunQiang Su
2021-03-04 13:44 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: YunQiang Su @ 2021-03-02 8:02 UTC (permalink / raw)
To: stable
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12-rc1&id=2347961b11d4079deace3c81dceed460c08a8fc1
This patch can be apply to 5.10 and 5.11 directly.
binfmt_misc: pass binfmt_misc flags to the interpreter
It can be useful to the interpreter to know which flags are in use.
For instance, knowing if the preserve-argv[0] is in use would allow to
skip the pathname argument.
This patch uses an unused auxiliary vector, AT_FLAGS, to add a flag to
inform interpreter if the preserve-argv[0] is enabled.
Note by Helge Deller:
The real-world user of this patch is qemu-user, which needs to know if
it has to preserve the argv[0]. See Debian bug #970460.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: YunQiang Su <ysu@wavecomp.com>
URL: http://bugs.debian.org/970460
Signed-off-by: Helge Deller <deller@gmx.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: backport binfmt_misc: pass binfmt_misc flags to the interpreter
2021-03-02 8:02 backport binfmt_misc: pass binfmt_misc flags to the interpreter YunQiang Su
@ 2021-03-04 13:44 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2021-03-04 13:44 UTC (permalink / raw)
To: YunQiang Su; +Cc: stable
On Tue, Mar 02, 2021 at 04:02:22PM +0800, YunQiang Su wrote:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12-rc1&id=2347961b11d4079deace3c81dceed460c08a8fc1
> This patch can be apply to 5.10 and 5.11 directly.
>
> binfmt_misc: pass binfmt_misc flags to the interpreter
>
> It can be useful to the interpreter to know which flags are in use.
>
> For instance, knowing if the preserve-argv[0] is in use would allow to
> skip the pathname argument.
>
> This patch uses an unused auxiliary vector, AT_FLAGS, to add a flag to
> inform interpreter if the preserve-argv[0] is enabled.
>
> Note by Helge Deller:
> The real-world user of this patch is qemu-user, which needs to know if
> it has to preserve the argv[0]. See Debian bug #970460.
>
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> Reviewed-by: YunQiang Su <ysu@wavecomp.com>
> URL: http://bugs.debian.org/970460
> Signed-off-by: Helge Deller <deller@gmx.de>
This feels like a new feature, how does it fit with the stable kernel
rules?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-04 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-02 8:02 backport binfmt_misc: pass binfmt_misc flags to the interpreter YunQiang Su
2021-03-04 13:44 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox