Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3759285img; Mon, 25 Mar 2019 17:45:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYfx4PyBS6NwzL+yreLvHDYZLrj+A07vbuNLUwq7QtoLrv2fcYOMIfII603jvUX52JdOdC X-Received: by 2002:a63:f541:: with SMTP id e1mr25870708pgk.388.1553561105105; Mon, 25 Mar 2019 17:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553561105; cv=none; d=google.com; s=arc-20160816; b=jJHQ2A9Rk2BFep5SvGVAxhHiwht84dFbSvOVrr7s9r9vwknp560V+UTvPwp8g2Elq9 XblXsuS37yupDz852NsHDm3rr+TOy708HrjkGu3pNL9GkvlPRpY0xjgz7ogMOgVHoGuo i7kw827ShINBBCJ9lOGYxydS/ZmE92Q3lYFnJl38m1vSAz9j1r5HH7hRjNp+eXJNYaHw vY/HBqQpGz4djq8DdIwUJoj/oyOqNAcAJzzobqV+3j27yg2gNDRAZcRURhgT/IUv2Dix ovZ7rTeWm+9X23fJI9H0YjO0d/buzwKaF4vB04+6RBKm0NAXDnqCt8GpLOD3V5HQI8dH nkGw== 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=bqYgF8s8GWWSCHDhzwhxbpmkmWcd6WTOlOUhH/OA8xo=; b=MDLRSmU7OxnoW18bOjTSAVWNgpT8kiXS2jyBreUmS+EUMFB7OBF1kdC4gi2UvcADWe Gel8Dbv/FazLZLXOFmqOys0ZuH+JQofimqFsn6BrnSAIQANVPAHv6ijfL6bScE9jmoXy 6aWrb8MTQWb9OXBIRWgjzdW+gAFEz59zqniAnv8l+LDDe2cGCmcfmgaLGgyE525inJvi x2jTpYlJJ/ZN47DIrfdqU4YcvwXJgfYNgCeIi5d017A13mUFNYgZQM3U2icW4MP0gq7R VSD4rXppZdSTJG5cfuZcTV0VFumdu6r+kzt5VhQGWONP+o12U5cUF5oQ/PaTwUZgjCO5 ZS9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WIrEHykO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si14562237pgt.128.2019.03.25.17.44.49; Mon, 25 Mar 2019 17:45:05 -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=@kernel.org header.s=default header.b=WIrEHykO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729610AbfCZAoJ (ORCPT + 99 others); Mon, 25 Mar 2019 20:44:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:33000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbfCZAoI (ORCPT ); Mon, 25 Mar 2019 20:44:08 -0400 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7B57E20854 for ; Tue, 26 Mar 2019 00:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553561047; bh=vFArf6P1wXYjyAT2h/qrDf+gUQQNhHrIjEXJ2Zj9kww=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WIrEHykOpF0gzLzT8dgwO/qVY0LX5+pwUwSBHEgYqxV9V3zGyskxNWIJ6r2P2G5x5 rUHFbnA8xYAE96bLp3bgjUlN9CZQWBtNqPgXNZ/QEJQoEuqIhHFWKtnHs8mbzuIdwR pvZWCi1VjmiaM5WreDpqk5VQTtV6EVIHeeq/86qM= Received: by mail-wm1-f50.google.com with SMTP id z6so1169758wmi.0 for ; Mon, 25 Mar 2019 17:44:07 -0700 (PDT) X-Gm-Message-State: APjAAAX9nFXqF3HV5XjwvNhkiWOYQ6A0+vuLG2nfO8Qpo60/m/8udqDE aBzO/zW7KfQHaX0kvlW8nMQAIcbCmFKjZsDEtKueZA== X-Received: by 2002:a7b:c257:: with SMTP id b23mr12826110wmj.83.1553561046047; Mon, 25 Mar 2019 17:44:06 -0700 (PDT) MIME-Version: 1.0 References: <1552680405-5265-1-git-send-email-chang.seok.bae@intel.com> In-Reply-To: <1552680405-5265-1-git-send-email-chang.seok.bae@intel.com> From: Andy Lutomirski Date: Mon, 25 Mar 2019 17:43:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v6 00/12] x86: Enable FSGSBASE instructions To: "Chang S. Bae" Cc: Thomas Gleixner , Ingo Molnar , Andy Lutomirski , "H . Peter Anvin" , Andi Kleen , Ravi Shankar , LKML 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, Mar 15, 2019 at 1:07 PM Chang S. Bae wrote: > > Updates from v5 [5]: > * Drop the new tain flag (TAINT_INSECURE) > * Cleanup copy_thread_tls(), some changelog, and unnecessary comments on > assembly macros > * Rearrange some helper updates appropriately (from patch 4 to 6) I think this stuff is in generally decent shape, but I have two big broad comments: What's the status of the stuff hpa was working on to make the behavior of modify_ldt() predictable? Can we please have a test case that explicitly exercises the way that ptrace reads and writes the base registers?