All of lore.kernel.org
 help / color / mirror / Atom feed
* [git pull] saner ELF compat handling
@ 2021-02-15 17:02 Al Viro
  2021-02-21 18:39 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2021-02-15 17:02 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, linux-arch

	Sanitizing ELF compat support, especially for triarch architectures:
* X32 handling cleaned up
* MIPS64 uses compat_binfmt_elf.c both for O32 and N32 now
* Kconfig side of things regularized
	Eventually I hope to have compat_binfmt_elf.c killed, with
both native and compat built from fs/binfmt_elf.c, with -DELF_BITS={64,32}
passed by kbuild, but that's a separate story - not included here.
	Sat in -next for the entire cycle, no problems reported...

The following changes since commit 698222457465ce343443be81c5512edda86e5914:

  MIPS: Fix malformed NT_FILE and NT_SIGINFO in 32bit coredumps (2020-12-28 23:26:17 +0100)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.elf-compat

for you to fetch changes up to e565d89e4aa07e3f20ac5e8757b1da24b5878e69:

  get rid of COMPAT_ELF_EXEC_PAGESIZE (2021-01-06 08:42:51 -0500)

----------------------------------------------------------------
Al Viro (14):
      binfmt_elf: partially sanitize PRSTATUS_SIZE and SET_PR_FPVALID
      elf_prstatus: collect the common part (everything before pr_reg) into a struct
      [amd64] clean PRSTATUS_SIZE/SET_PR_FPVALID up properly
      x32: make X32, !IA32_EMULATION setups able to execute x32 binaries
      Merge remote-tracking branch 'mips/mips-fixes' into work.elf-compat
      mips binfmt_elf*32.c: use elfcore-compat.h
      mips: kill unused definitions in binfmt_elf[on]32.c
      mips: KVM_GUEST makes no sense for 64bit builds...
      mips compat: don't bother with ELF_ET_DYN_BASE
      mips: don't bother with ELF_CORE_EFLAGS
      mips compat: switch to compat_binfmt_elf.c
      Kconfig: regularize selection of CONFIG_BINFMT_ELF
      compat_binfmt_elf: don't bother with undef of ELF_ARCH
      get rid of COMPAT_ELF_EXEC_PAGESIZE

 arch/Kconfig                               |   3 +
 arch/arm64/Kconfig                         |   1 -
 arch/ia64/kernel/crash.c                   |   2 +-
 arch/mips/Kconfig                          |   8 +-
 arch/mips/include/asm/elf.h                |  56 +++++---------
 arch/mips/include/asm/elfcore-compat.h     |  29 ++++++++
 arch/mips/kernel/Makefile                  |   4 +-
 arch/mips/kernel/binfmt_elfn32.c           | 113 ----------------------------
 arch/mips/kernel/binfmt_elfo32.c           | 116 -----------------------------
 arch/mips/kernel/scall64-n64.S             |   2 +-
 arch/parisc/Kconfig                        |   1 -
 arch/powerpc/Kconfig                       |   1 -
 arch/powerpc/platforms/powernv/opal-core.c |   6 +-
 arch/s390/Kconfig                          |   1 -
 arch/s390/kernel/crash_dump.c              |   2 +-
 arch/sparc/Kconfig                         |   1 -
 arch/x86/Kconfig                           |   2 +-
 arch/x86/include/asm/compat.h              |  11 ---
 arch/x86/include/asm/elf.h                 |   2 +-
 arch/x86/include/asm/elfcore-compat.h      |  31 ++++++++
 fs/Kconfig.binfmt                          |   2 +-
 fs/binfmt_elf.c                            |  21 +++---
 fs/binfmt_elf_fdpic.c                      |  22 ++----
 fs/compat_binfmt_elf.c                     |   7 +-
 include/linux/elfcore-compat.h             |  15 +++-
 include/linux/elfcore.h                    |   7 +-
 kernel/kexec_core.c                        |   2 +-
 27 files changed, 129 insertions(+), 339 deletions(-)
 create mode 100644 arch/mips/include/asm/elfcore-compat.h
 delete mode 100644 arch/mips/kernel/binfmt_elfn32.c
 delete mode 100644 arch/mips/kernel/binfmt_elfo32.c
 create mode 100644 arch/x86/include/asm/elfcore-compat.h

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [git pull] saner ELF compat handling
  2021-02-15 17:02 [git pull] saner ELF compat handling Al Viro
@ 2021-02-21 18:39 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2021-02-21 18:39 UTC (permalink / raw)
  To: Al Viro; +Cc: Linus Torvalds, linux-kernel, linux-arch

The pull request you sent on Mon, 15 Feb 2021 17:02:29 +0000:

> git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.elf-compat

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/591fd30eee47ed75d1296d619dd467414d0894e3

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-21 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 17:02 [git pull] saner ELF compat handling Al Viro
2021-02-21 18:39 ` pr-tracker-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.