Re: [PATCH] binfmt_elf_fdpic: fix /proc/<pid>/auxv

From: Kees Cook
Date: Wed Apr 24 2024 - 18:56:25 EST


On Fri, 22 Mar 2024 12:54:18 -0700, Max Filippov wrote:
> Althought FDPIC linux kernel provides /proc/<pid>/auxv files they are
> empty because there's no code that initializes mm->saved_auxv in the
> FDPIC ELF loader.
>
> Synchronize FDPIC ELF aux vector setup with ELF. Replace entry-by-entry
> aux vector copying to userspace with initialization of mm->saved_auxv
> first and then copying it to userspace as a whole.
>
> [...]

Applied to for-next/execve, thanks!

[1/1] binfmt_elf_fdpic: fix /proc/<pid>/auxv
https://git.kernel.org/kees/c/10e29251be0e

Take care,

--
Kees Cook