Skip to content

Add explicit coredump filtering for DAX mappings

Ross Zwisler linux-fsdevel linux-nvdimm lkml nvdimm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2coredump: add DAX filtering for ELF coredumpsDocumentation/filesystems/proc.txt fs/binfmt_elf.c include/linux/sched.h+25 -110 replies
2/2coredump: add DAX filtering for FDPIC ELF coredumpsfs/binfmt_elf_fdpic.c+15 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff Moyer
SeriesA-b
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] Add explicit coredump filtering for DAX mappings

Add two new flags to the existing coredump mechanism for ELF files to allow us to explicitly filter DAX mappings. This is desirable because DAX mappings, like hugetlb mappings, have the potential to be very large.

The coredump code relies on get_user_page() to populate the coredump file with the appropriate data, and for DAX mappings this currently fails. This results in a hole being placed in the coredump file, so you end up reading back zeros. Once the get_user_pages() patch series from Dan Williams [1] is merged, DAX core dumps will give real data.

I have a patch ready for core(5) to update the documentation on the new filtering flags. I'll send it out once this gets merged.

[1] http://thread.gmane.org/gmane.linux.kernel.mm/139026

Ross Zwisler (2):
coredump: add DAX filtering for ELF coredumps
coredump: add DAX filtering for FDPIC ELF coredumps

 Documentation/filesystems/proc.txt | 22 ++++++++++++----------
 fs/binfmt_elf.c                    | 10 ++++++++++
 fs/binfmt_elf_fdpic.c              | 15 +++++++++++++++
 include/linux/sched.h              |  4 +++-
 4 files changed, 40 insertions(+), 11 deletions(-)
Signature · 1 line
2.1.0