From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [PATCH] ptrace: copy_thread() should clear TIF_SINGLESTEP and X86_EFLAGS_TF Date: Fri, 6 Nov 2009 22:50:04 +0100 Message-ID: <20091106215004.GA2232@redhat.com> References: <20091106211637.GA1696@redhat.com> <20091106212554.BD731CF@magilla.sf.frob.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx1.redhat.com ([209.132.183.28]:24558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753739AbZKFVyz (ORCPT ); Fri, 6 Nov 2009 16:54:55 -0500 Content-Disposition: inline In-Reply-To: <20091106212554.BD731CF@magilla.sf.frob.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Roland McGrath Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org On 11/06, Roland McGrath wrote: > > There is also the TIF_FORCED_TF logic to check. I thought this flag has no effect without TIF_SINGLESTEP, and it is always updated by enable_single_step(). > Probably it should just > call user_disable_single_step() instead. Perhaps copy_process() should > just call that and then no per-arch changes would be required. OK, thanks, will resend tomorrow. user_disable_single_step() is very much arch-dependent, I am worried if it is safe to call it from copy_process(), when the new task_struct, thread_info, etc are not properly initialized yet... Oleg.