Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1013550imm; Thu, 31 May 2018 13:33:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVpusaK/HsFpgzeXYQ+K3KZSjB7bwlUTq7R2AqwvndV1Fu14Wplw5fYYLUtvsJDxzCSgBl X-Received: by 2002:a17:902:9a4c:: with SMTP id x12-v6mr8177062plv.213.1527798787865; Thu, 31 May 2018 13:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527798787; cv=none; d=google.com; s=arc-20160816; b=fTv1BN/pIfiq4Xa0oIiafyzXo1vakURHqYGS99N7ASFw9evb0nZersdrwNvc816xzE S2TtSDkN64mEJpV5THKWreD3rZgi/a3C/T0+4UV0gZtuqkcPsP4LhP+POS8mfccmsrox xboeHO7XGtC49HO9y02HE6uN0FkOYWIlmHhz6NUl+8PFYLHh/StQ423DoZpgBc3NM/pO 12CYGUI0ggng16NunLTOtIWduNakRv5P1+drmyhcePQi8Rrlu7CEB4g+kJq7gI+WX7i2 BMidagMbK4MkykOwb7jWBkHAjuGqBQLUfXGa9f0UXz+vK5HipaEdjAKxqlJa1H+aUZpq d0Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:arc-authentication-results; bh=VPsOmAq6X/ZlpAtLrb29+kMyTRbsyQOAYAZdLxCWHOU=; b=db9v3BnMN/09lM6oDr0nGPzsB2RORl0Y17h4AxA7zVo+LhtHk483bLlmL12Qxqyn/n iXtlZUBaZpncCnlaqHFKR36l2sT7SJajoXZNhF1+qKBhYlWPz304aTQRmUwrSAfN67OB 3FUtoRVi3jv+XVVvsY4ok7ffzo1jiURpqB6RPCr0R5oZ1OhPz3I6dF24sV5VBtHNnK1G KbfPy8PjhGsAFQaEjIYwymXONfTeYztM2yj/XevIJyQ8cRBqe+44DYvZDLmc5yHGSj60 7GrntxbY3CjG91UNiDHiTQCjIwsZuPoXlDyTZjvB2sSceRDlCuzdLyOyW36rm+/fiqwZ gAcg== 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 r1-v6si12220121pgu.52.2018.05.31.13.32.53; Thu, 31 May 2018 13:33:07 -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 S1754578AbeEaUbu convert rfc822-to-8bit (ORCPT + 99 others); Thu, 31 May 2018 16:31:50 -0400 Received: from terminus.zytor.com ([198.137.202.136]:37985 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754434AbeEaUbt (ORCPT ); Thu, 31 May 2018 16:31:49 -0400 Received: from [192.168.5.208] ([99.37.246.88]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w4VKVfJi3705191 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 31 May 2018 13:31:44 -0700 Date: Thu, 31 May 2018 13:31:32 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <1527789525-8857-1-git-send-email-chang.seok.bae@intel.com> <1527789525-8857-3-git-send-email-chang.seok.bae@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH V2 02/15] x86/fsgsbase/64: Make ptrace read FS/GS base accurately To: Andy Lutomirski , "Bae, Chang Seok" CC: Andrew Lutomirski , Thomas Gleixner , Ingo Molnar , Andi Kleen , Dave Hansen , "Metzger, Markus T" , "Ravi V. Shankar" , LKML From: hpa@zytor.com Message-ID: <7A65BD11-6A84-4CDF-9FF7-34303BABBDD1@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 31, 2018 1:14:59 PM PDT, Andy Lutomirski wrote: >On Thu, May 31, 2018 at 10:58 AM Chang S. Bae > wrote: >> >> From: Andy Lutomirski >> >> ptrace can read FS/GS base using the register access API >> (PTRACE_PEEKUSER, etc) or PTRACE_ARCH_PRCTL. Make both of these >> mechanisms return the actual FS/GS base. >> >> This will improve debuggability by providing the correct information >> to ptracer (GDB and etc). > >LGTM. LGTM? -- Sent from my Android device with K-9 Mail. Please excuse my brevity.