Commit 0e8354e7 authored by Max Filippov's avatar Max Filippov Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: binfmt_elf_fdpic: fix /proc/<pid>/auxv



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.

Change-Id: I927914def6be36bb64b870412ae71be58574453b
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Link: https://lore.kernel.org/r/20240322195418.2160164-1-jcmvbkbc@gmail.com


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
(cherry picked from commit 10e29251)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 6d0c450c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment