Re: [PATCH] fix race copy_process() vs de_thread()

From: Oleg Nesterov
Date: Mon Aug 24 2009 - 06:54:41 EST


On 08/24, Roland McGrath wrote:
>
> I think I like your first patch better. It's a larger patch, but that's
> because it winds up with smaller code.

Yes, agreed.

And another reason for the first patch: ->live should not be used as a refcnt,
it is not. This should work for copy_process() but looks confusing and relies
on CLONE_THREAD subtleness anyway.

I'll re-check this patch and resend. I guess -stable needs this fix too.

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/