Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1080451imm; Fri, 12 Oct 2018 11:23:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CNUAsPeopFulVDvx9Kaatjx6acOqnOf9SX6EkSOIVR+zbM1uhjeTYPv5/wy/KotANpZW5 X-Received: by 2002:a63:80c6:: with SMTP id j189-v6mr6693874pgd.40.1539368616437; Fri, 12 Oct 2018 11:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539368616; cv=none; d=google.com; s=arc-20160816; b=wEq8Cy3IpiQ5fnlrEXWTB5dcFxEayIjBrqQ0WkYk67EL7Z2IApRcA08+u3KcmYgdDh HB/zj8Lj9ktgsYmEWeMqll7pxYHKYioQzkFxnrgBkJEvSPXXuUgwHAWT7+SdRPcsdU9A xbIkHuKIfDhylTxVMhGGjikRkHJWrsWLdRRKXsrlJpjaj+8fOvk19ElxrETcOcmibJrA H/Pdd1UPyg9/Tg3sDcCH4GrN4/rlgnfGMPBl4HP65AUoc1tU/5XeHSSt6EhGUQoKfhTW ZU27H6jiQYKzDLvGPoXq/bwTPhS31fDFLfEHMWYmafVULr2RHmXVJV3T1LGY1HqPTtsY Y93A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=q/nvU2SXCzA1M+Vn7uxxRtDLXka0GXkzWDxE2RuniPQ=; b=CGz9ZcnDIWSDTtq64n10l59hUs0iLRqjbC3F2yZDpMqbcHFDXtfaJM4nfAc+UWX1fY OzZAJsA+s/cgmWZ8ZXT0irLylI5LLevqn59TpwF0NEWCIE7DeVsOjrB3O+/au1E8KcO0 hneYDhKv4+jz/ziwESi2nAO0rQPBWPAhWlGbatPjZME/jpho7j8Vd9HnLrX7y4Y13yOl NedcPLx3mz8MTOzQgv/kh0Fl98IydW6hQQNcq2pCiyHfMP67CtyMpMHwai7dXMFZP2o0 TX6bpVznRpFnpf8FnUerIgHrXqam2jXGRT5G3CYjW3XVqssBJ6LhNv6GqEnWZ+q9V7Ea 0FCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=NiOgo0XK; 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 m63-v6si1803284pld.379.2018.10.12.11.23.21; Fri, 12 Oct 2018 11:23:36 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=NiOgo0XK; 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 S1726867AbeJMBz1 (ORCPT + 99 others); Fri, 12 Oct 2018 21:55:27 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34671 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbeJMBz1 (ORCPT ); Fri, 12 Oct 2018 21:55:27 -0400 Received: by mail-wr1-f67.google.com with SMTP id l6-v6so13984752wrt.1 for ; Fri, 12 Oct 2018 11:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q/nvU2SXCzA1M+Vn7uxxRtDLXka0GXkzWDxE2RuniPQ=; b=NiOgo0XKhHQKALux+Xn9M/gMwMvS3LcAJCB4HAVfVH3LwCBZBCH6g47Bv9UO5ye/GH RYUCDe2eT+aXnnJ/6iQlVokC4sCC+ug1fqqfsDhqmYsgzwpYaJzA23V7WN/qpJCgo1Os mV3a0pp+7wO+6URoQxUkOUDN34pf8q5UEneYlCG4lJkV8466ByZxqxu4i1wiqMOBDsYX 0Fjw5jJzS/vfSs1XcoNPB2wnife4Un4LEIXRo9OYvjVZj2hr+pE6y4u3U1G445wYiWOD cmMkSVWKnJB8mM/UNBRdcPFWYVaByh5iAnDs1i0vq6wD2+9kU2i28kB3bNniGPMZ+70B GNNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q/nvU2SXCzA1M+Vn7uxxRtDLXka0GXkzWDxE2RuniPQ=; b=dwwbcDtrTW6hcCXr4icUebQK4ZzNMXu25J+T1qKW3KAUq2WO4OhWyiBt7DqUDDEmFs PyqkWgIJ23BNrRSSNdkoZjB5/Uum6lXHJXa7OQB1mY7Yrmx7hyJtMM4zkcclduvMvnEw V0AyNfEAMKnsZX9C1kzxcrh4E3kPKkPVwfaoNMgxc1Qf6/oHy3j2Ot1lNiwZb4TpGvBm LTcuylG4MF8hxrOGB1+X7ctuFqRKMdNIJNZfJf00tPHmYHrpv8k5AL3vLfbv7pqPHm5V s9q9p12hGDNnyAzssW4BSId39xeYq0GNFejuhI+c09BR2ACdvgNesykcMzEYliz+YcHl qHtw== X-Gm-Message-State: ABuFfog/Uq/L2nOYdCkQ02nvbTI3ev7D+w4pnQikyYfyizJf00H197Mk GwTo91mnrU2WN+FHJJ6afTHlBej7g8p5WOleO5ZNfQ== X-Received: by 2002:adf:b188:: with SMTP id q8-v6mr6241416wra.95.1539368499981; Fri, 12 Oct 2018 11:21:39 -0700 (PDT) MIME-Version: 1.0 References: <20181011230021.0a7604fa@vmware.local.home> <20181012122641.3d87ed29@gandalf.local.home> In-Reply-To: <20181012122641.3d87ed29@gandalf.local.home> From: Andy Lutomirski Date: Fri, 12 Oct 2018 11:21:28 -0700 Message-ID: Subject: Re: [RFC][PATCH] x86: ptrace: Add function argument access API To: Steven Rostedt Cc: LKML , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , "H. Peter Anvin" , Masami Hiramatsu , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 12, 2018 at 9:26 AM Steven Rostedt wrote: > > > Anyone have any issues with this patch? > I'm conceptually okay with it. That being said, regs_within_kernel_stack(), which you're indirectly using, is off-by-a-few. And updating it to use probe_kernel_read() might be nice for robustness. --Andy