linux_dsm_epyc7002/include
Neil Horman 7dc0b22e3c core_pattern: ignore RLIMIT_CORE if core_pattern is a pipe
For some time /proc/sys/kernel/core_pattern has been able to set its output
destination as a pipe, allowing a user space helper to receive and
intellegently process a core.  This infrastructure however has some
shortcommings which can be enhanced.  Specifically:

1) The coredump code in the kernel should ignore RLIMIT_CORE limitation
   when core_pattern is a pipe, since file system resources are not being
   consumed in this case, unless the user application wishes to save the core,
   at which point the app is restricted by usual file system limits and
   restrictions.

2) The core_pattern code should be able to parse and pass options to the
   user space helper as an argv array.  The real core limit of the uid of the
   crashing proces should also be passable to the user space helper (since it
   is overridden to zero when called).

3) Some miscellaneous bugs need to be cleaned up (specifically the
   recognition of a recursive core dump, should the user mode helper itself
   crash.  Also, the core dump code in the kernel should not wait for the user
   mode helper to exit, since the same context is responsible for writing to
   the pipe, and a read of the pipe by the user mode helper will result in a
   deadlock.

This patch:

Remove the check of RLIMIT_CORE if core_pattern is a pipe.  In the event that
core_pattern is a pipe, the entire core will be fed to the user mode helper.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Cc: <martin.pitt@ubuntu.com>
Cc: <wwoods@redhat.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:42:50 -07:00
..
acpi ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
asm-alpha kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-arm kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-arm26 softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-avr32 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-blackfin kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-cris kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-frv kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-generic unexport asm/shmparam.h 2007-10-17 08:42:47 -07:00
asm-h8300 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-ia64 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-m32r kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-m68k kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-m68knommu kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-mips kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-parisc kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-powerpc kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-ppc softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-s390 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-sh kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-sh64 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-sparc kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-sparc64 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-um uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
asm-v850 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-x86 kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-xtensa kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
crypto [CRYPTO] sha: Add header file for SHA definitions 2007-10-10 16:55:50 -07:00
keys
linux core_pattern: ignore RLIMIT_CORE if core_pattern is a pipe 2007-10-17 08:42:50 -07:00
math-emu Fix <math-emu/soft-fp.h> tpyo 2007-08-18 17:15:17 -07:00
media v4l: copy_to_user() is not a good method name 2007-10-13 09:58:59 -07:00
mtd
net [IPV6]: Replace sk_buff ** with sk_buff * in input handlers 2007-10-15 12:50:28 -07:00
pcmcia pcmcia: use DMA_MASK_NONE for the default for all pcmcia devices 2007-10-16 09:42:50 -07:00
rdma IB/cm: Modify interface to send MRAs in response to duplicate messages 2007-10-09 19:59:17 -07:00
rxrpc
scsi remove sglist_len 2007-10-16 11:24:44 +02:00
sound [ALSA] version 1.0.15 2007-10-16 16:57:46 +02:00
video pm2fb: hardware cursor support for the Permedia2 2007-10-16 09:43:18 -07:00
xen xen: xen/page.h compile fix 2007-07-26 11:35:16 -07:00
Kbuild