All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	"Akira Kawata" <akirakawata1@gmail.com>,
	"Alexander Viro" <viro@zeniv.linux.org.uk>,
	"Alexey Dobriyan" <adobriyan@gmail.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Andy Lutomirski" <luto@kernel.org>,
	"Ariadne Conill" <ariadne@dereferenced.org>,
	"Bill Messmer" <wmessmer@microsoft.com>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Christian Brauner" <brauner@kernel.org>,
	"Dave Martin" <Dave.Martin@arm.com>,
	"David Gow" <davidgow@google.com>,
	"Eric Biederman" <ebiederm@xmission.com>,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	"Ivan Kokshaysky" <ink@jurassic.park.msu.ru>,
	"Jann Horn" <jannh@google.com>,
	"Kees Cook" <keescook@chromium.org>,
	"Magnus Groß" <magnus.gross@rwth-aachen.de>,
	"Matthew Wilcox" <willy@infradead.org>,
	"Matt Turner" <mattst88@gmail.com>,
	"Michael Kerrisk" <mtk.manpages@gmail.com>,
	"Peter Collingbourne" <pcc@google.com>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Richard Henderson" <rth@twiddle.net>,
	"Rich Felker" <dalias@libc.org>,
	"Rick Edgecombe" <rick.p.edgecombe@intel.com>,
	"Shuah Khan" <shuah@kernel.org>, "Tom Rix" <trix@redhat.com>,
	"Yang Yingliang" <yangyingliang@huawei.com>,
	"Yu-cheng Yu" <yu-cheng.yu@intel.com>
Subject: [GIT PULL] execve updates for v5.18-rc1
Date: Mon, 21 Mar 2022 07:44:54 -0700	[thread overview]
Message-ID: <202203210740.98EB66F8@keescook> (raw)

Hi Linus,

Please pull these execve and binfmt updates for v5.18-rc1. 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.

Thanks!

-Kees

The following changes since commit 439a8468242b313486e69b8cc3b45ddcfa898fbf:

  binfmt_elf: Avoid total_mapping_size for ET_EXEC (2022-03-01 10:29:20 -0800)

are available in the Git repository at:

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

for you to fetch changes up to dd664099002db909912a23215f8775c97f7f4f10:

  binfmt_elf: Don't write past end of notes for regset gap (2022-03-18 10:17:09 -0700)

----------------------------------------------------------------
execve updates for v5.18-rc1

- 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)

----------------------------------------------------------------
Akira Kawata (2):
      fs/binfmt_elf: Fix AT_PHDR for unusual ELF files
      fs/binfmt_elf: Refactor load_elf_binary function

Alexey Dobriyan (2):
      ELF: fix overflow in total mapping size calculation
      binfmt: move more stuff undef CONFIG_COREDUMP

Eric W. Biederman (7):
      coredump: Move definition of struct coredump_params into coredump.h
      coredump: Snapshot the vmas in do_coredump
      coredump: Remove the WARN_ON in dump_vma_snapshot
      coredump/elf: Pass coredump_params into fill_note_info
      coredump: Use the vma snapshot in fill_files_note
      coredump: Don't compile flat_core_dump when coredumps are disabled
      a.out: Stop building a.out/osf1 support on alpha and m68k

Jann Horn (1):
      coredump: Also dump first pages of non-executable ELF libraries

Kees Cook (6):
      exec: Force single empty string when argv is empty
      selftests/exec: Test for empty string on NULL argv
      MAINTAINERS: Update execve entry with more details
      ELF: Properly redefine PT_GNU_* in terms of PT_LOOS
      binfmt_elf: Introduce KUnit test
      Merge branch 'coredump-vma-snapshot-fix-for-v5.18' of https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace into for-next/execve

Rick Edgecombe (1):
      binfmt_elf: Don't write past end of notes for regset gap

Tom Rix (1):
      exec: cleanup comments

 MAINTAINERS                              |   4 +
 arch/alpha/Kconfig                       |   1 -
 arch/m68k/Kconfig                        |   1 -
 fs/Kconfig.binfmt                        |  10 ++
 fs/binfmt_elf.c                          | 153 +++++++++++++++++--------------
 fs/binfmt_elf_fdpic.c                    |  20 ++--
 fs/binfmt_elf_test.c                     |  64 +++++++++++++
 fs/binfmt_flat.c                         |   7 ++
 fs/compat_binfmt_elf.c                   |   2 +
 fs/coredump.c                            |  86 +++++++++++++----
 fs/exec.c                                |  32 ++++++-
 include/linux/binfmts.h                  |  15 +--
 include/linux/coredump.h                 |  20 +++-
 include/uapi/linux/elf.h                 |   7 +-
 tools/testing/selftests/exec/Makefile    |   1 +
 tools/testing/selftests/exec/null-argv.c |  78 ++++++++++++++++
 16 files changed, 374 insertions(+), 127 deletions(-)
 create mode 100644 fs/binfmt_elf_test.c
 create mode 100644 tools/testing/selftests/exec/null-argv.c

-- 
Kees Cook

             reply	other threads:[~2022-03-21 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 14:44 Kees Cook [this message]
2022-03-22  3:06 ` [GIT PULL] execve updates for v5.18-rc1 pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203210740.98EB66F8@keescook \
    --to=keescook@chromium.org \
    --cc=Dave.Martin@arm.com \
    --cc=adobriyan@gmail.com \
    --cc=akirakawata1@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=ariadne@dereferenced.org \
    --cc=brauner@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=dalias@libc.org \
    --cc=davidgow@google.com \
    --cc=ebiederm@xmission.com \
    --cc=geert@linux-m68k.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=jannh@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=magnus.gross@rwth-aachen.de \
    --cc=mattst88@gmail.com \
    --cc=mtk.manpages@gmail.com \
    --cc=pcc@google.com \
    --cc=rdunlap@infradead.org \
    --cc=rick.p.edgecombe@intel.com \
    --cc=rth@twiddle.net \
    --cc=shuah@kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=trix@redhat.com \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    --cc=wmessmer@microsoft.com \
    --cc=yangyingliang@huawei.com \
    --cc=yu-cheng.yu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.