diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-09-30 03:19:35 +0300 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-09-30 03:19:35 +0300 |
| commit | 50157eaa0c13bb5aac5cc45330bf055d95d4af57 (patch) | |
| tree | dd6938627b254452156cbd2d06841499f87456db /include | |
| parent | 8c1ed3021883f5e49f74dfb41ce0a24e5d07fdf0 (diff) | |
| parent | 8c94db0ae97c72c253a615f990bd466b456e94f6 (diff) | |
| download | linux-50157eaa0c13bb5aac5cc45330bf055d95d4af57.tar.xz | |
Merge tag 'execve-v6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull execve updates from Kees Cook:
- 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)
* tag 'execve-v6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
binfmt_elf: preserve original ELF e_flags for core dumps
binfmt_elf: Replace offsetof() with struct_size() in fill_note_info()
exec: Fix incorrect type for ret
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mm_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index a643fae8a349..7f625c35128b 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -1107,6 +1107,11 @@ struct mm_struct { unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */ +#ifdef CONFIG_ARCH_HAS_ELF_CORE_EFLAGS + /* the ABI-related flags from the ELF header. Used for core dump */ + unsigned long saved_e_flags; +#endif + struct percpu_counter rss_stat[NR_MM_COUNTERS]; struct linux_binfmt *binfmt; |
