Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Feb 2003 14:47:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Feb 2003 14:47:01 -0500 Received: from mx1.elte.hu ([157.181.1.137]:48795 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Thu, 20 Feb 2003 14:47:00 -0500 Date: Thu, 20 Feb 2003 20:53:48 +0100 (CET) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Zwane Mwaikambo , Chris Wedgwood , Kernel Mailing List , "Martin J. Bligh" , William Lee Irwin III Subject: Re: doublefault debugging (was Re: Linux v2.5.62 --- spontaneous reboots) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 694 Lines: 19 On Thu, 20 Feb 2003, Ingo Molnar wrote: > hm, i think i can see the SMP race. > > the last put_task_struct() can also be done by procfs - and nothing > keeps it from freeing the task in __put_task_struct(), while the task > struct is after its final put_task_struct(), but before the switch_to(). this race is correctly solved by moving the wait_task_inactive() from release_task() into the tsk != current branch of __free_task_struct(). Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/