Re: [PATCH 1/4] coredump: add an interface to control the core dump routine

From: David Howells
Date: Thu Mar 29 2007 - 15:17:54 EST


Pavel Machek <pavel@xxxxxx> wrote:

> > Userland core dumper is useful because it is relatively easy to be
> > customized, but its reliability highly depends on the application
> > programs.
>
> Fix userland core dumper to be reliable, then.

I don't think it's that easy. The userland core dumper, as I understand it,
has to work *within* an application program (it's a library), thus the
application program my scotch the core dumper in a couple of ways:

(1) by trying to claim the same services (such as signal handlers).

(2) by destroying the coredumper should the application run amok and splat it
(by munmapping it, mmapping over it, writing over it, etc.).

Plus there are cases that an in-application userspace coredumper can't catch -
namely double/triple faults.

David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/