]> www.infradead.org Git - users/jedix/linux-maple.git/commit
coredump: add DAX filtering for ELF coredumps
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Mon, 5 Oct 2015 22:33:36 +0000 (16:33 -0600)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:20:06 +0000 (12:20 -0500)
commitbd7e0c37ece0f591b47ebcccbe9bd49de3975852
tree3d8ec97b5c524ca67a3b10df55d014e1685cc22c
parent0d8aa2ba468ddb68d0e834cbb65d40a45198969a
coredump: add DAX filtering for ELF coredumps

Orabug: 22913653

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.

Update the coredump_filter documentation in
Documentation/filesystems/proc.txt so that it addresses the new DAX
coredump flags.  Also update the documented default value of
coredump_filter to be consistent with the core(5) man page.  The
documentation being updated talks about bit 4, Dump ELF headers, which
is enabled if CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is turned on in the
kernel config.  This kernel config option defaults to "y" if both ELF
binaries and coredump are enabled.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 5037835c1f3eabf4f22163fc0278dd87165f8957)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
Documentation/filesystems/proc.txt
fs/binfmt_elf.c
include/linux/sched.h