Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5548221imm; Tue, 16 Oct 2018 12:00:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV600B2Y8EqUPF7y6OVMkGQ/5kh6ZwcsrG9d+X5b1dphczhaVGFCdPw1/eXQRnHYZ6swosrDY X-Received: by 2002:a63:720c:: with SMTP id n12-v6mr21514147pgc.193.1539716435666; Tue, 16 Oct 2018 12:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539716435; cv=none; d=google.com; s=arc-20160816; b=ViabBb8f0RAaoaT/L2Narhbwi1STTMfgV/Aq02YN2sQ232GxM7ENRmyRpnu8oBlWF5 8RVDxuRUsbkbaD7reXjaEffHRfir+PQqd9m0u9smYtCKRk/bM6mbm7lklKf/qLcD9ikO w1UsDJSyUp4CtGNZWqwAQZdTus3z9T/uAvItZ9Cf7Tyj5+Xzby2jaWWHwpyoL8OVOluW kNytNgbM9th9cOXu5iM1z0kOj4WX8Oetps32DjkWVRRCGKsxo4rM7A8Ht0aiBjRz9jp7 Y9lb/ZDpU1UCy8FeJ41xjWHDLcvqun9CIFqb7CkNLLMQZTwiL/Hrn1vEx3uRJdkwxkBk nwgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5nVuM9sHGQEpopKbnaHjvoEbxPueHntKJfOQA2VRWPI=; b=ohm1QvtxBS5DatgbSXGejsCLowwfV7EW1uwR4vlu1i8yq9DwO844dFTXRAyDvq3gC9 cGWR1lAH/gn30BTO8pq2iVGPAYyGADiR+E8b0wWANBvmNSXBXu16hkUxICZ8xAWmOPNQ LO/NBy1VcD9yJ2JkdWEbKDsJJDPMbaLsr4Nd0u3pMitLXFTulQdXfCwPhSnpR1n5fU5f Cb7gqbSTq3TbADzPKMQ8BxA5NYEnak6G8DY2Z46tSsYCpaGMzuVymTO8PYy3XpgypyuW khUMB6p33mm1q2xj2LClEQ3dx3h/OkVgV9Vflf+XHGejcgSvKmS97wQCJ9VnAowjk7v2 lrqw== 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 w24-v6si14389261pll.346.2018.10.16.12.00.03; Tue, 16 Oct 2018 12:00:35 -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 S1727171AbeJQCvR (ORCPT + 99 others); Tue, 16 Oct 2018 22:51:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:35820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbeJQCvQ (ORCPT ); Tue, 16 Oct 2018 22:51:16 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A27022098A; Tue, 16 Oct 2018 18:59:26 +0000 (UTC) Date: Tue, 16 Oct 2018 14:59:24 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Andy Lutomirski , LKML , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" , Josh Poimboeuf Subject: Re: [RFC][PATCH] x86: ptrace: Add function argument access API Message-ID: <20181016145924.6bde80d8@gandalf.local.home> In-Reply-To: <20181015235646.2cbb7dc9bc4b7b54f900e0fb@kernel.org> References: <20181011230021.0a7604fa@vmware.local.home> <20181012122641.3d87ed29@gandalf.local.home> <20181012155439.59f77556@gandalf.local.home> <20181015235646.2cbb7dc9bc4b7b54f900e0fb@kernel.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Oct 2018 23:56:46 +0900 Masami Hiramatsu wrote: > This patch looks good to me. > But if the concern is real, all regs_get_kernel_stack_nth() user must move > onto _safe() version, at least all tracers code. Doing a git grep on regs_get_kernel_stack_nth(), I think you are right. I'll resend and make the _nth() function just the _safe() function. No need to do it without the probe_kernel_read() call. > > Reviewed-by: Masami Hiramatsu Thanks, -- Steve > >