All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add explicit coredump filtering for DAX mappings
@ 2015-10-05 22:33 ` Ross Zwisler
  0 siblings, 0 replies; 9+ messages in thread
From: Ross Zwisler @ 2015-10-05 22:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ross Zwisler, Alexander Viro, Ingo Molnar, Jonathan Corbet,
	Peter Zijlstra, linux-doc, linux-fsdevel, Dan Williams,
	linux-nvdimm, Matthew Wilcox

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

-- 
2.1.0


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

end of thread, other threads:[~2015-10-15 20:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 22:33 [PATCH 0/2] Add explicit coredump filtering for DAX mappings Ross Zwisler
2015-10-05 22:33 ` Ross Zwisler
2015-10-05 22:33 ` [PATCH 1/2] coredump: add DAX filtering for ELF coredumps Ross Zwisler
2015-10-05 22:33   ` Ross Zwisler
2015-10-05 22:33 ` [PATCH 2/2] coredump: add DAX filtering for FDPIC " Ross Zwisler
2015-10-05 22:33   ` Ross Zwisler
2015-10-13 22:54 ` [PATCH 0/2] Add explicit coredump filtering for DAX mappings Ross Zwisler
2015-10-13 22:54   ` Ross Zwisler
2015-10-15 20:01 ` Jeff Moyer

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.