Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2740307imm; Tue, 4 Sep 2018 09:15:13 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3BrXuOeQxSoUqP8o2WrAxrDAnJt8JPsmmlOnsbANdrIGz7fCBFVRK0sbjv0cnY310fZ5b X-Received: by 2002:a62:8704:: with SMTP id i4-v6mr35352650pfe.62.1536077713708; Tue, 04 Sep 2018 09:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536077713; cv=none; d=google.com; s=arc-20160816; b=R/rLrmd4GOxSjwMXswnUaitYpvljQpLiU9poMQGMbIkkMa6P/htx+x9F7kpiMOxLK2 5tNJtENigf5Th2Jn7WLbfhr0UkINmDWHzo6tFWwe5FVDsLwuy2sHXInVi5jf//fGFMqy Tu1+zH+QiL4IFVB+K0L3Bt6vC+WCyBvcRzvne9USoLR+4qYX+wQ8+X/648Cx4/OIxhwB d8XcSPXYL/alMiuyusuo55+7oECVumTrwQJr4FovAISiLmJ3+xJeCDXUEwk1i5i6a13N f9Hefpn9w4kQSWodmym6tFAWtoQDliIIkWL/JDI/gocVxlvNSblNkvDgPuBsIRrjEiKl aMaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=0yitKuUbG++NH9/8aMI7ZeO/sv9X+abFFFUtyxCE/uE=; b=mCz8qZ9V7wm35nLYbbwHt5XG1g20DcNpfszewYKiAG/nG6eCrke5CEGtST6pCdQGS2 gvnCqFor1VaHRs1F/HBNDAc5DZvEFb9s91zYgLmvmMkeOyf02RUmXEdJke2pS8TpzDRx IjeDt3dyydllbMaQ3LpDfyO99FeEs+tBc80wQ3QukSF1oikwPQQAECXB0S4/87hlzxXy qUSoT271CxeA0utjaWTxjVFEj/BcoiLcXB4jDsdNkU+4wB6OXl9fwz32CPL7U9xKgB6t MYWPlWxQpS9EnhA/2MsC3v9c29YCi43fabY3Hrc9wY2w+P5DOvuInIbXdLBuWO+wPWVQ gv8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m126-v6si24789983pfb.126.2018.09.04.09.14.58; Tue, 04 Sep 2018 09:15:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbeIDUjD (ORCPT + 99 others); Tue, 4 Sep 2018 16:39:03 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57499 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726347AbeIDUjD (ORCPT ); Tue, 4 Sep 2018 16:39:03 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fxDws-00022U-6m; Tue, 04 Sep 2018 18:13:02 +0200 Date: Tue, 4 Sep 2018 18:13:01 +0200 (CEST) From: Thomas Gleixner To: Jiri Kosina cc: Ingo Molnar , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , "Woodhouse, David" , Oleg Nesterov , Tim Chen , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v3 1/3] ptrace: Provide ___ptrace_may_access() that can be applied on arbitrary tasks In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Sep 2018, Jiri Kosina wrote: > +/** > + * ___ptrace_may_access - variant of ptrace_may_access that can be used > + * between two arbitrary tasks > + * @curr: source task That's a pretty shitty name, really. If @curr is supposed to be an arbitrary task, then please rename it in a way which makes that entirely clear. curr is too close to current. Just grep for 'task_struct \*curr'. Thanks, tglx