Skip to content

coredump: add new elf notes: siginfo, mapped files

Denys Vlasenko lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches7 repliesSuperseded

Changes since previous version from the cover letter

* added a patch which unifies location of compat_siginfo_t (this should fix powerpc64 compile failure)
* merged with the NT_FILE patch
* added missed include of vmalloc.h
* minor style fixes

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4coredump: pass siginfo_t* to do_coredump() and below, not merely signrfs/binfmt_aout.c fs/binfmt_elf.c fs/binfmt_elf_fdpic.c +5 more+21 -210 replies
2/4compat: move compat_siginfo_t definition to asm/compat.harch/arm64/include/asm/compat.h arch/arm64/kernel/signal32.c arch/mips/include/asm/compat-signal.h +16 more+513 -4760 replies
3/4coredump: add a new elf note with siginfo of the signalfs/binfmt_elf.c fs/compat_binfmt_elf.c include/linux/elf.h+36 -20 replies
4/4coredump: extend core dump note section to contain file names of mapped filesfs/binfmt_elf.c fs/compat_binfmt_elf.c include/linux/elf.h+108 -40 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchOleg Nesterov
1/4R-b
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH -mm v4 0/4] coredump: add new elf notes: siginfo, mapped files

Andrew, this changeset supersedes all my recent previous patches, please drop them from -mm.

This changeset is on top of "add support for %d=__get_dumpable() in core name" patch currently in -mm.

Changes since previous version:
* added a patch which unifies location of compat_siginfo_t (this should fix powerpc64 compile failure)
* merged with the NT_FILE patch
* added missed include of vmalloc.h
* minor style fixes

Compat coredump code was compile tested on x86-64 and mips64. Changeset also touches arm64, parisc, powerpc64, s390, sparc, and tile arches, I can't compile-test those at the moment.

Denys Vlasenko (4):
coredump: pass siginfo_t* to do_coredump() and below, not merely
signr
compat: move compat_siginfo_t definition to asm/compat.h
coredump: add a new elf note with siginfo of the signal
coredump: extend core dump note section to contain file names of
mapped files

 arch/arm64/include/asm/compat.h       |   60 +++++++++++++-
 arch/arm64/kernel/signal32.c          |   53 ------------
 arch/mips/include/asm/compat-signal.h |   62 --------------
 arch/mips/include/asm/compat.h        |   69 +++++++++++++++-
 arch/parisc/include/asm/compat.h      |   59 +++++++++++++-
 arch/parisc/kernel/signal32.h         |   52 ------------
 arch/powerpc/include/asm/compat.h     |   60 +++++++++++++-
 arch/powerpc/include/asm/siginfo.h    |    1 -
 arch/powerpc/kernel/ppc32.h           |   51 -----------
 arch/s390/include/asm/compat.h        |   75 +++++++++++++++++-
 arch/s390/kernel/compat_linux.h       |   68 ---------------
 arch/sparc/include/asm/compat.h       |   61 +++++++++++++-
 arch/sparc/include/asm/siginfo.h      |    1 -
 arch/sparc/kernel/signal32.c          |   52 ------------
 arch/tile/include/asm/compat.h        |   62 ++++++++++++++
 arch/tile/kernel/compat_signal.c      |   57 -------------
 arch/x86/include/asm/compat.h         |   74 ++++++++++++++++-
 arch/x86/include/asm/ia32.h           |   67 ---------------
 fs/binfmt_aout.c                      |    2 +-
 fs/binfmt_elf.c                       |  147 ++++++++++++++++++++++++++++++---
 fs/binfmt_elf_fdpic.c                 |    6 +-
 fs/binfmt_flat.c                      |    2 +-
 fs/compat_binfmt_elf.c                |    7 ++
 fs/coredump.c                         |   10 +-
 include/linux/binfmts.h               |    2 +-
 include/linux/compat.h                |    5 -
 include/linux/coredump.h              |    4 +-
 include/linux/elf.h                   |    6 ++
 kernel/signal.c                       |    2 +-
 29 files changed, 676 insertions(+), 501 deletions(-)
Signature · 1 line
1.7.7.6