Re: [PATCH 0/3] exec: Make do_coredump more robust and safer whenusing pipes in core_pattern (v4)

From: Neil Horman
Date: Tue Jun 30 2009 - 13:39:00 EST


Ok, Heres version 4 of this patch set. Based on feedback from the past few days
I've made some changes (noted below). I've tested all of these patches here,
and they work quite well, I'm able to prevent recursive core dumps, wait on
dumps to complete, and limit the number of dupms I handle in parallel

Change Notes:

1) Diffed against latest Linus kernel + Olegs cleanup patches to do_coredump

2) Refactored into 3 patches instead of two (I still don't think its needed, but
I've received more than one request to pull the sysctl into a separate patch, so
I'm going with consensus here, and it won't hurt anything anyway)

3) Changed how we detect completed user space processes. We need to be able to
close a pipe and then wait on the pipe reader to finish with it. As such we
have to do some trickery with the pipe readers and writers counts to make that
happen.

Patches in subsequent mails
Regards
Neil

--
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/