Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- From: Scott James Remnant <scott@xxxxxxxxxx>
- Date: Sun, 02 Aug 2009 14:49:56 +0100
On Sat, 2009-08-01 at 20:22 -0400, Neil Horman wrote:
On Sat, Aug 01, 2009 at 07:28:52PM +0100, Scott James Remnant wrote:Upstart *is* /sbin/init (pid 1)
On Sat, 2009-08-01 at 09:41 -0400, Neil Horman wrote:I don't see how this works. How is upstart (which by definition is a child of
Or by being a bit clever. Upstart catches the SIGSEGV and the signalThis is non-sensical. If init crashes, and the kernel panics, you'll only get aNot without additional work. If init crashed in the initramfs, I don't thinkWhen the system init daemon crashes, the kernel PANICs. When not using
theres a way to handle that. If it crashes at some later time, I think it just
gets restarted IIRC. I'm sure you can change that behavior, but this patch
doesn't address that.
core_pattern, this is ok, we get a core file - when using apport, as far
as I can tell it never waits for apport to finish so we don't get the
crash.
core by sheer luck and good fortune.
handler forks a child process, unmasking the signal in that child
process with no signal handler installed.
init (pid 1)) going to catch a SIGSEGV from its parent? How would any process
catch a signal targeted to its parent?
Scott
--
Scott James Remnant
scott@xxxxxxxxxx
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- References:
- Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- From: Neil Horman
- Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- From: Scott James Remnant
- Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- From: Neil Horman
- Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- Prev by Date: Re: [Bug #13362] rt2x00: slow wifi with correct basic rate bitmap
- Next by Date: Re: [PATCH 15/15] drivers/ide/ide-cd.c: Use DIV_ROUND_CLOSEST
- Previous by thread: Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- Next by thread: Re: [PATCH] exec: Make do_coredump more robust and safer when using pipes in core_pattern
- Index(es):
Relevant Pages
|