History

Merge tag 'execve-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull execve updates from Kees Cook: "Execve and binfmt updates. Eric and I have stepped up to be the active maintainers of this area, so here's our first collection. The bulk of the work was in coredump handling fixes; additional details are noted below: - Handle unusual AT_PHDR offsets (Akira Kawata) - Fix initial mapping size when PT_LOADs are not ordered (Alexey Dobriyan) - Move more code under CONFIG_COREDUMP (Alexey Dobriyan) - Fix missing mmap_lock in file_files_note (Eric W. Biederman) - Remove a.out support for alpha and m68k (Eric W. Biederman) - Include first pages of non-exec ELF libraries in coredump (Jann Horn) - Don't write past end of notes for regset gap in coredump (Rick Edgecombe) - Comment clean-ups (Tom Rix) - Force single empty string when argv is empty (Kees Cook) - Add NULL argv selftest (Kees Cook) - Properly redefine PT_GNU_* in terms of PT_LOOS (Kees Cook) - MAINTAINERS: Update execve entry with tree (Kees Cook) - Introduce initial KUnit testing for binfmt_elf (Kees Cook)" * tag 'execve-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: binfmt_elf: Don't write past end of notes for regset gap a.out: Stop building a.out/osf1 support on alpha and m68k coredump: Don't compile flat_core_dump when coredumps are disabled coredump: Use the vma snapshot in fill_files_note coredump/elf: Pass coredump_params into fill_note_info coredump: Remove the WARN_ON in dump_vma_snapshot coredump: Snapshot the vmas in do_coredump coredump: Move definition of struct coredump_params into coredump.h binfmt_elf: Introduce KUnit test ELF: Properly redefine PT_GNU_* in terms of PT_LOOS MAINTAINERS: Update execve entry with more details exec: cleanup comments fs/binfmt_elf: Refactor load_elf_binary function fs/binfmt_elf: Fix AT_PHDR for unusual ELF files binfmt: move more stuff undef CONFIG_COREDUMP selftests/exec: Test for empty string on NULL argv exec: Force single empty string when argv is empty coredump: Also dump first pages of non-executable ELF libraries ELF: fix overflow in total mapping size calculation

Linus Torvalds committed 4 years ago

Commit b7a801f2 parents ad9c6ee dd6640916 files · +374 −127Browse files

Showing the changes to include/uapi (1 of 16 files). Show all

Unified · Split

include/uapi/linux/elf.h+4−3
@@ -35,10 +35,11 @@ typedef __s64 Elf64_Sxword; · 34 unmodified lines
35#define PT_HIOS 0x6fffffff /* OS-specific */35#define PT_HIOS 0x6fffffff /* OS-specific */
36#define PT_LOPROC 0x7000000036#define PT_LOPROC 0x70000000
37#define PT_HIPROC 0x7fffffff37#define PT_HIPROC 0x7fffffff
38#define PT_GNU_EH_FRAME 0x6474e55038#define PT_GNU_EH_FRAME (PT_LOOS + 0x474e550)
39#define PT_GNU_PROPERTY 0x6474e553
40
41#define PT_GNU_STACK (PT_LOOS + 0x474e551)39#define PT_GNU_STACK (PT_LOOS + 0x474e551)
40#define PT_GNU_RELRO (PT_LOOS + 0x474e552)
41#define PT_GNU_PROPERTY (PT_LOOS + 0x474e553)
42
42 43
43/* ARM MTE memory tag segment type */44/* ARM MTE memory tag segment type */
44#define PT_ARM_MEMTAG_MTE (PT_LOPROC + 0x1)45#define PT_ARM_MEMTAG_MTE (PT_LOPROC + 0x1)