]> 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)
commitcaa40a5c0753c9e758496d206b38e6b78026920a
tree6cfa915dabfa9512ade4d974eb36635293c02447
parent31cbd52ff71c27aeaf2e5b8fc2bef99442a2bfb1
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