[GIT PULL] execve updates for v6.18-rc1

Kees Cook
2025-09-29T19:05:37Z

Hi Linus,

Please pull these handful of execve updates for v6.18-rc1.

Thanks!

-Kees

The following changes since commit c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9:

Linux 6.17-rc2 (2025-08-17 15:22:10 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.18-rc1

for you to fetch changes up to 8c94db0ae97c72c253a615f990bd466b456e94f6:

binfmt_elf: preserve original ELF e_flags for core dumps (2025-09-03 20:49:32 -0700)

----------------------------------------------------------------
execve updates for v6.18-rc1

- binfmt_elf: preserve original ELF e_flags for core dumps (Svetlana
Parfenova)

- exec: Fix incorrect type for ret (Xichao Zhao)

- binfmt_elf: Replace offsetof() with struct_size() in fill_note_info()
(Xichao Zhao)

----------------------------------------------------------------
Svetlana Parfenova (1):
binfmt_elf: preserve original ELF e_flags for core dumps

Xichao Zhao (2):
exec: Fix incorrect type for ret
binfmt_elf: Replace offsetof() with struct_size() in fill_note_info()

arch/riscv/Kconfig | 1 +
fs/Kconfig.binfmt | 9 +++++++++
include/linux/mm_types.h | 5 +++++
fs/binfmt_elf.c | 48 +++++++++++++++++++++++++++++++++++++-----------
fs/exec.c | 2 +-
5 files changed, 53 insertions(+), 12 deletions(-)

--
Kees Cook