Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760088AbZKFWKP (ORCPT ); Fri, 6 Nov 2009 17:10:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753735AbZKFWKL (ORCPT ); Fri, 6 Nov 2009 17:10:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24570 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759945AbZKFWKJ (ORCPT ); Fri, 6 Nov 2009 17:10:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Oleg Nesterov X-Fcc: ~/Mail/linus Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH] ptrace: copy_thread() should clear TIF_SINGLESTEP and X86_EFLAGS_TF In-Reply-To: Oleg Nesterov's message of Friday, 6 November 2009 22:50:04 +0100 <20091106215004.GA2232@redhat.com> References: <20091106211637.GA1696@redhat.com> <20091106212554.BD731CF@magilla.sf.frob.com> <20091106215004.GA2232@redhat.com> X-Windows: never had it, never will. Message-Id: <20091106221002.8057DCF@magilla.sf.frob.com> Date: Fri, 6 Nov 2009 14:10:02 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 789 Lines: 21 > I thought this flag has no effect without TIF_SINGLESTEP, and it is > always updated by enable_single_step(). Right, but to be anal about the semantics you shouldn't clear TF if it's not set, etc. > 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... Well, arch people can weigh in about if it is problematical. Skimming over the existing arch definitions, it looks OK to me. Thanks, Roland -- 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/