Re: [PATCH] fs: binfmt_elf_efpic: don't use missing interpreter's properties

From: Kees Cook
Date: Mon Feb 05 2024 - 11:16:06 EST


On Thu, 18 Jan 2024 07:06:37 -0800, Max Filippov wrote:
> Static FDPIC executable may get an executable stack even when it has
> non-executable GNU_STACK segment. This happens when STACK segment has rw
> permissions, but does not specify stack size. In that case FDPIC loader
> uses permissions of the interpreter's stack, and for static executables
> with no interpreter it results in choosing the arch-default permissions
> for the stack.
>
> [...]

Applied to for-next/execve, thanks!

[1/1] fs: binfmt_elf_efpic: don't use missing interpreter's properties
https://git.kernel.org/kees/c/15fd1dc3dadb

Take care,

--
Kees Cook