Received: by 10.213.65.68 with SMTP id h4csp1055292imn; Thu, 22 Mar 2018 14:19:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELtl8lQAHTLHgrSVxlBRf+5+eV/NXvwCgVkyxzADqiiVkpEFTXdepH23iO1woAD/UkzZt2RI X-Received: by 2002:a17:902:b40b:: with SMTP id x11-v6mr15308098plr.203.1521753550819; Thu, 22 Mar 2018 14:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521753550; cv=none; d=google.com; s=arc-20160816; b=sraW2ZUeuRhicXbODwkOkUa8ioKiRDL5nHgo/Nv8RE0eOS6O0KrpMgKgJFeTSn/fmA 4452LJB43yLMOjD9REI3Jz0ZC7blQ1gzaFJPirEdx6DIo9UQ+JnhKTGzRiPBULdRv4dB 3knSr8nUglLibfcaqpMRtaiY2u2GI4WYhyz2gwvgg1qOk7iIZ9CYkckf4WYuHjzgmtuC 19Q0U5LOKoAjJkipnfL6q516ArBJt8d/rJG4ZGcA+j2GHM5Q2Gf7Tm58HUfoH+KhajPZ W5LgHmMkQFf+294kPoGxHuc3FZBrx8zP6yzTUOzLbyfi8vgF793Gb6d8h0vAgE7FRmxT 1FMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=sn10yc8W6j0zh72jMJyRycyaoB9okabq0jsBVluFmJY=; b=Nsy1c8fxK2aN6InVDU8o86uX9WgREcskshgnIBxqwgAeiSZIgxvsseiCehoJsv1qUi vWfbiPdQvEWNQ1y1Ath3CFBVmurEVjaEpfvDZqZicOxhzGaYKTjwTrL+WxB6uXy6Oeoh Hq79xDczFT0XG2vAgSeLI3dOleUr1Ok831Xo1BVXoA9aq26tg6/yU7sXjHE2K+ispS8w 8hY6k0EXhmAXw8J8jaj2tcADhChLy+TzsBjcU7E7sWWePsZIa4bz12TXoJhhv8v9gFKz o9XB2CB5XA6x3eV3BbiJ0mjn2GkXPILjqbmjazQSi0rAiKAxI0xMti0m779ZweVbArBr O3lA== 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 c187si5351604pfa.362.2018.03.22.14.18.53; Thu, 22 Mar 2018 14:19:10 -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 S1751739AbeCVVRz convert rfc822-to-8bit (ORCPT + 99 others); Thu, 22 Mar 2018 17:17:55 -0400 Received: from mga09.intel.com ([134.134.136.24]:47031 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbeCVVRy (ORCPT ); Thu, 22 Mar 2018 17:17:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2018 14:17:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,345,1517904000"; d="scan'208";a="26244244" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 22 Mar 2018 14:17:53 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 22 Mar 2018 14:17:53 -0700 Received: from crsmsx102.amr.corp.intel.com (172.18.63.137) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 22 Mar 2018 14:17:52 -0700 Received: from crsmsx101.amr.corp.intel.com ([169.254.1.143]) by CRSMSX102.amr.corp.intel.com ([169.254.2.248]) with mapi id 14.03.0319.002; Thu, 22 Mar 2018 15:17:50 -0600 From: "Bae, Chang Seok" To: Andy Lutomirski CC: X86 ML , Andi Kleen , "H. Peter Anvin" , "Metzger, Markus T" , "Luck, Tony" , "Shankar, Ravi V" , LKML Subject: RE: [PATCH 14/15] x86/fsgsbase/64: Support legacy behavior when FS/GS updated by ptracer Thread-Topic: [PATCH 14/15] x86/fsgsbase/64: Support legacy behavior when FS/GS updated by ptracer Thread-Index: AQHTv61cgKpKrSnds0atXlLhYuaZSaPZns+A//+jdICAAP9OgIAAfB0AgAElGwCAAHavgIAAe5+A//+VaACAAHdSAP//4dlL Date: Thu, 22 Mar 2018 21:17:49 +0000 Message-ID: References: <1521481767-22113-1-git-send-email-chang.seok.bae@intel.com> <1521481767-22113-15-git-send-email-chang.seok.bae@intel.com> <9C732DC6-F9CA-474F-B8F5-F8EBE406B12E@intel.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.19.9.46] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ________________________________________ From: Andy Lutomirski [luto@kernel.org] Sent: Thursday, March 22, 2018 09:53 >>> But your patch doesn't actually do this, since gdb will just do >>> SETREGS anyway, right? >> GDB does SETREGS on any exclusive (FS/GS) updates in inferior call. > This means that your patch has exactly the same effect as the code in > my git tree, right? Then let's stick with something like what's in my > git tree, since it's far simpler. Difference is if flipping FS/GS multiple times, user may check the base from LDT. But I don't have strong will to keep arguing this; Markus or somebody might want to say something. The whole point as I understand is to avoid any regression on legacy ptracers. If a strong confidence lies on the simple version, let me. My first thought bought this in fact. Thanks, Chang