[GIT PULL] execve fixes for v6.9-rc2

From: Kees Cook
Date: Tue Mar 26 2024 - 18:45:32 EST


Hi Linus,

Please pull these execve fixes for v6.9-rc2.

Thanks!

-Kees

The following changes since commit 725d50261285ccf02501f2a1a6d10b31ce014597:

exec: Simplify remove_arg_zero() error path (2024-03-09 13:46:30 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.9-rc2

for you to fetch changes up to 5248f4097308c1cdcf163314a6ea3c8c88c98cd9:

binfmt: replace deprecated strncpy (2024-03-21 20:20:52 -0700)

----------------------------------------------------------------
execve fixes for v6.9-rc2

- Fix selftests to conform to the TAP output format (Muhammad Usama Anjum)

- Fix NOMMU linux_binprm::exec pointer in auxv (Max Filippov)

- Replace deprecated strncpy usage (Justin Stitt)

- Replace another /bin/sh instance in selftests

----------------------------------------------------------------
Justin Stitt (1):
binfmt: replace deprecated strncpy

Kees Cook (2):
selftests/exec: execveat: Improve debug reporting
selftests/exec: Convert remaining /bin/sh to /bin/bash

Max Filippov (1):
exec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack()

Muhammad Usama Anjum (3):
selftests/exec: binfmt_script: Add the overall result line according to TAP
selftests/exec: load_address: conform test to TAP format output
selftests/exec: recursion-depth: conform test to TAP format output

fs/binfmt_elf_fdpic.c | 2 +-
fs/exec.c | 1 +
tools/testing/selftests/exec/Makefile | 4 +-
tools/testing/selftests/exec/binfmt_script.py | 10 ++++-
tools/testing/selftests/exec/execveat.c | 12 +++---
tools/testing/selftests/exec/load_address.c | 34 ++++++++---------
tools/testing/selftests/exec/recursion-depth.c | 53 +++++++++++++-------------
7 files changed, 61 insertions(+), 55 deletions(-)

--
Kees Cook