From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755151Ab1KBLco (ORCPT ); Wed, 2 Nov 2011 07:32:44 -0400 Received: from h5.dl5rb.org.uk ([81.2.74.5]:52134 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751655Ab1KBLcm (ORCPT ); Wed, 2 Nov 2011 07:32:42 -0400 Date: Wed, 2 Nov 2011 11:30:31 +0000 From: Ralf Baechle To: trisha yad Cc: Oleg Nesterov , linux-mm , Russell King - ARM Linux , linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, kamezawa.hiroyu@jp.fujitsu.com, mhocko@suse.cz, rientjes@google.com, Andrew Morton , Konstantin Khlebnikov , KOSAKI Motohiro , "Rafael J. Wysocki" , Rusty Russell , Tejun Heo Subject: Re: Issue with core dump Message-ID: <20111102113030.GE22462@linux-mips.org> References: <20111101152320.GA30466@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 02, 2011 at 12:03:39PM +0530, trisha yad wrote: > Thanks all for your answer. > > In loaded embedded system the time at with code hit do_user_fault() > and core_dump_wait() is bit > high, I check on my system it took 2.7 sec. so it is very much > possible that core dump is not correct. > It contain global value updated. > > So is it possible at time of send_signal() we can stop modification of > faulty thread memory ? On existing hardware it is impossible to take a consistent snapshot of a multi-threaded application at the time of one thread faulting. A software simulator can handle this sort of race condition but of course this approach has other disadvantages. Ralf