Re: [PATCH 2/2] exec: Make do_coredump more robust and safer whenusing pipes in core_pattern (v3)
From: Oleg Nesterov
Date: Sun Jun 28 2009 - 22:39:49 EST
On 06/29, Oleg Nesterov wrote:
>
> But in fact I don't really understand why do we need the new sysctl.
Sorry Neil, I misread the patch. This sysctls limits the number of coredumps
to pipe in flight, not the number of "wait for ->readers == 0".
Agreed, perhaps makes sense. But imho a separate patch is better. And,
> Yes,
> if the collecting process never exits, the coredumping thread can't be reaped.
> But this process runs as root, it can do other bad things. And let's suppose
> it just does nothing, say sleeps forever, and do not read the data from pipe.
> In that case, regardless of any sysctls, ->core_dump() never finishes too.
so I think this core_pipe_limit is more or less orthogonal to "wait for complete".
Oleg.
--
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/