2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/arch/mips
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
..
au1000 [MIPS] Alchemy: Get rid of au1xxx_irq_map_t. 2007-10-16 18:23:48 +01:00
basler/excite
bcm47xx
boot
cobalt
configs Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2007-10-11 19:40:14 -07:00
dec
emma2rh
fw
gt64120/wrppmc
jazz
jmr3927 rtc: make rtc-ds1742 driver hotplug-aware 2007-10-16 09:43:13 -07:00
kernel core_pattern: ignore RLIMIT_CORE if core_pattern is a pipe 2007-10-17 08:42:50 -07:00
lasat [MIPS] Lasat: Fix build by conversion to irq_cpu.c. 2007-10-16 18:23:47 +01:00
lemote/lm2e
lib
math-emu
mips-boards
mipssim [MIPS] MIPSsim: Fix booting from NFS root 2007-10-16 18:23:49 +01:00
mm Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2007-10-16 10:44:35 -07:00
oprofile
pci [MIPS] Lasat: Fix build by conversion to irq_cpu.c. 2007-10-16 18:23:47 +01:00
philips/pnx8550
pmc-sierra
qemu
sgi-ip22 [MIPS] IP22: Enable -Werror. 2007-10-16 18:23:47 +01:00
sgi-ip27
sgi-ip32 [MIPS] IP32: Fix build by conversion to irq_cpu.c. 2007-10-16 18:23:45 +01:00
sibyte
sni
tx4927 rtc: make rtc-ds1742 driver hotplug-aware 2007-10-16 09:43:13 -07:00
tx4938
vr41xx
defconfig
Kconfig [MIPS] Lasat: Fix build by conversion to irq_cpu.c. 2007-10-16 18:23:47 +01:00
Kconfig.debug
Makefile kbuild: enable 'make AFLAGS=...' to add additional options to AS 2007-10-15 21:59:31 +02:00