From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbZHXKye (ORCPT ); Mon, 24 Aug 2009 06:54:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751052AbZHXKyd (ORCPT ); Mon, 24 Aug 2009 06:54:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38358 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbZHXKyc (ORCPT ); Mon, 24 Aug 2009 06:54:32 -0400 Date: Mon, 24 Aug 2009 12:50:54 +0200 From: Oleg Nesterov To: Roland McGrath Cc: Hiroshi Shimamoto , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] fix race copy_process() vs de_thread() Message-ID: <20090824105054.GA6966@redhat.com> References: <4A9210A4.4010108@ct.jp.nec.com> <20090824061420.341A9414DF@magilla.sf.frob.com> <4A923403.6010201@ct.jp.nec.com> <20090824083826.GA475@redhat.com> <20090824085331.GB475@redhat.com> <20090824091558.BDAFE414DF@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090824091558.BDAFE414DF@magilla.sf.frob.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.