Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760885AbZDXQr2 (ORCPT ); Fri, 24 Apr 2009 12:47:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760621AbZDXQoh (ORCPT ); Fri, 24 Apr 2009 12:44:37 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52214 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760657AbZDXQog (ORCPT ); Fri, 24 Apr 2009 12:44:36 -0400 Date: Fri, 24 Apr 2009 18:39:49 +0200 From: Oleg Nesterov To: Roland McGrath Cc: Andrew Morton , linux-kernel@vger.kernel.org, David Howells , James Morris , Hugh Dickins Subject: ptrace && cred_exec_mutex (Was: [PATCH] ptrace: tracehook_unsafe_exec: remove the stale comment) Message-ID: <20090424163949.GA12035@redhat.com> References: <20090423212250.GA22537@redhat.com> <20090423232717.975ABFC3C7@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090423232717.975ABFC3C7@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 Content-Length: 652 Lines: 21 (change subject, add more CCs) On 04/23, Roland McGrath wrote: > > > tracehook_unsafe_exec() doesn't need task_lock(), remove the old comment. > > Please make it instead say that cred_exec_mutex is held by the caller > through the exec. Yes. Except it looks like ->cred_exec_mutex is never used in fact. ptrace_attach() takes current->cred_exec_mutex ? iow, ptrace and exec use different locks ? Oleg. -- 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/