Received: by 10.223.176.5 with SMTP id f5csp1740461wra; Sun, 28 Jan 2018 07:23:29 -0800 (PST) X-Google-Smtp-Source: AH8x227fTdA6IoAW8/3Boi5iwh6Nd5rokiEmhdf5VoPBp69FnYqMO7pCKhqYoEKSoN+SG4KpLgwW X-Received: by 2002:a17:902:46a:: with SMTP id 97-v6mr18968811ple.96.1517153009305; Sun, 28 Jan 2018 07:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517153009; cv=none; d=google.com; s=arc-20160816; b=niT8mGvHOWIzi0WB3lDkcdwZLy3bgvWMVMzFcHfCgRpKqwYH6/pCcc5Rs625p625tx YybQlwsqqo+5u6pW4aWmbLrBKNmYCcI0myPLd6y0saLbd9rXeRszjaVmWTds8MplWIFF MUuc/MWCmxb0dkOk5qRCDkT/vgisNjMWI/5fbf6WewDhfodz+AS4VN6UmKBMuWcjGgTm ioU+g6B4x1jjeFXxHEEuScJjiVpgaTg0vwx4YSioae3zjnMO9jGtBFkSyZDZgDb/c0KL dCGD0HlNfXNJHznl4fMj91/6C9SjiQE/Ec1DuEpdbPFbsCoXsMZKmmZ0SoWYRhmKO6QM b0IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=hOUGQj1Hsd+RmxWOzvsSOmVQP56lIYRU0W2rQVFGRKI=; b=B1S0PWhl5mkYElOVJWa++KzIRTMHgemW/Ha7/rllkcuuFbtVqd1e+fqKJUxd39JWQf yf/BOhSdL7ficg16eXk9/utqXk4Iub00NeHEkjW95YHP2WRDYdCrx+q9NkjxUfYZvY+c bk6mC1+EM1O0I6dvSVbOzO7cAO8rHMhhbxEryXK6QHUgouprc79Qj/Bz7EUqaB160gHe DJrj1mgMkH8V+Qis9CHc5Brr3HOcIwcW13pDIMbYAnSHysS7Wxbf7RtVTWc6SfjLXzlc 8iw0+Efj8kcoRrQtqBH+RaQMwYpZplGMo8z0LTsHyZXHXIm19adD8XWujicWehgJfFPY BhJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=ljqeOSRw; 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 c74si1719891pfj.339.2018.01.28.07.23.02; Sun, 28 Jan 2018 07:23:29 -0800 (PST) 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=ljqeOSRw; 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 S1752024AbeA1PWa (ORCPT + 99 others); Sun, 28 Jan 2018 10:22:30 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:37130 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbeA1PW3 (ORCPT ); Sun, 28 Jan 2018 10:22:29 -0500 Received: by mail-pf0-f171.google.com with SMTP id p1so2731867pfh.4 for ; Sun, 28 Jan 2018 07:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hOUGQj1Hsd+RmxWOzvsSOmVQP56lIYRU0W2rQVFGRKI=; b=ljqeOSRwl6iD5/Zzd0R2JwhjJHlrqvtNl7nPX2NKI9LjsVvA95NtNN8mlmTMG9cHJ+ ua1srr0e4NXi+YIZA4QhHZ2wuiage/6jFLdxg52WMyuZFJzzLDbEfEe+lYnK8tF144m1 eJLXmtzhhjVoZEG1wFMMBBRJLO+5xsBo/z5/LTUa0kMg2AM2xT6nsk2vzf22C1EW1HyV WXVd5rfo9rmMsiUdR4Id/8B8HonAXavA0ki5RQPSLTJ9aStXlyM5eFPUdvwyschWRCbj Luvaj+/yHy0jvT0QngK7DXzCPTAqraPmOiDoH8iBHu3Er7eJF4OKg+e/edmFm2HM6sP4 XHOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hOUGQj1Hsd+RmxWOzvsSOmVQP56lIYRU0W2rQVFGRKI=; b=ZcC2vZE5aFCtFHwj/4cumC52pRhuIAaQeDQvZy5ytZYbT58uFJhhE0NR9vGorM/XVn Y9jnyAFKhzqRcnSDm+zsYZi+1/8kG4H97gkpEQubd+SnpMUfsubCJvdq6shgJJqx8/Zh s9vDDvi+1hn4YLTQaJFtmDcuMPWdjYQ+tet6eXjYqWmY3ZL7XPZ0h9y7p53E5uuIL/UV J1HVWHkxncQ1+3p63AN32pCW3Hd10GanA8Sf/iwLTjXvKWvOsZ2D2IqkSwa5NLIi+RGp EKdfa7JoMy56wWOe6xw8uQESVYtbO6xBWnoHulxxz/wsCR7Ui2FYZl7DvTxnG0Y3/INf vC6g== X-Gm-Message-State: AKwxytfNQXxj0oCl0PKkOS/YTkwT9qHYBX1EuGVFFi3SE01C9kShk5T3 2dRnfjCyqjgpcRAF8UQaQRyLAQ== X-Received: by 10.98.76.150 with SMTP id e22mr24124917pfj.28.1517152948249; Sun, 28 Jan 2018 07:22:28 -0800 (PST) Received: from ?IPv6:2601:646:c200:7429:354c:b8f8:fa29:6ee6? ([2601:646:c200:7429:354c:b8f8:fa29:6ee6]) by smtp.gmail.com with ESMTPSA id s89sm27685662pfk.35.2018.01.28.07.22.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jan 2018 07:22:27 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v5 07/12] x86: remove the syscall_64 fast-path From: Andy Lutomirski X-Mailer: iPhone Mail (15C202) In-Reply-To: <20180128092914.dabnzq7arv4bebhn@gmail.com> Date: Sun, 28 Jan 2018 07:22:26 -0800 Cc: Dan Williams , tglx@linutronix.de, linux-arch@vger.kernel.org, kernel-hardening@lists.openwall.com, gregkh@linuxfoundation.org, x86@kernel.org, Ingo Molnar , Andy Lutomirski , "H. Peter Anvin" , torvalds@linux-foundation.org, alan@linux.intel.com, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <5CF96758-5FD5-49BB-80E8-951AF5AB2B68@amacapital.net> References: <151703971300.26578.1185595719337719486.stgit@dwillia2-desk3.amr.corp.intel.com> <151703975137.26578.11230688940391207602.stgit@dwillia2-desk3.amr.corp.intel.com> <20180128092914.dabnzq7arv4bebhn@gmail.com> To: Ingo Molnar Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 28, 2018, at 1:29 AM, Ingo Molnar wrote: >=20 >=20 > * Dan Williams wrote: >=20 >> Quoting Linus: >>=20 >> "Honestly, I'd rather get rid of the fast-path entirely. Compared to >> all the PTI mess, it's not even noticeable. >>=20 >> And if we ever get CPU's that have this all fixed, we can re-visit >> introducing the fastpath. But this is all very messy and it doesn't >> seem worth it right now. >>=20 >> If we get rid of the fastpath, we can lay out the slow path slightly >> better, and get rid of some of those jump-overs. And we'd get rid of >> the ptregs hooks entirely. >>=20 >> So we can try to make the "slow" path better while at it, but I >> really don't think it matters much now in the post-PTI era. Sadly." >=20 > Please fix the title to have the proper prefix and to reference the functi= on that=20 > is actually modified by the patch, i.e. something like: >=20 > s/ x86: remove the syscall_64 fast-path > / x86/entry/64: Remove the entry_SYSCALL_64() fast-path >=20 > With the title fixed: >=20 > Reviewed-by: Ingo Molnar I have a very similar but not quite identical version I'll send out shortly.= The difference is that I fixed the silly prologue. >=20 > Thanks, >=20 > Ingo