]> git.baikalelectronics.ru Git - kernel.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 Williams <dan.j.williams@intel.com>
Mon, 9 Nov 2015 18:29:54 +0000 (13:29 -0500)
commit287d678ce904172af503ceeb988f5f1075723a60
tree6cfa915dabfa9512ade4d974eb36635293c02447
parent33b6c88b1541f335fbc9989b036f733657b1fe53
coredump: add DAX filtering for ELF coredumps

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>
Documentation/filesystems/proc.txt
fs/binfmt_elf.c
include/linux/sched.h