Received: by 10.223.176.46 with SMTP id f43csp2671399wra; Thu, 25 Jan 2018 13:22:09 -0800 (PST) X-Google-Smtp-Source: AH8x2263vRTh+rOvgBbimSV0mkZe72urndoB7WtD33yrMlvvj3Tkxvik9YZFWEId7nDlBUaLpKGR X-Received: by 2002:a17:902:3f83:: with SMTP id a3-v6mr12013141pld.263.1516915329610; Thu, 25 Jan 2018 13:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516915329; cv=none; d=google.com; s=arc-20160816; b=jXYUUEWsUEM2yoCGPjR6xIpOzCUEkTUKOlHcBPCEIAN0L0EYqB5rsTARkbivLzj3bU 4xNpfWjoU5asQoWYromLHdO/CnZN6g2ZcdlQDEbRjRsO1l32ZK+tgrU4iYXtDq7THapu LQY+3HhIuSi8nvKv1x2z1tdvo59Z+WqscXGTQW5LP7dbV7vvbi+yE1dNtsYJbeTvgEgH TV12+kKPkH5BS0veRfso3gbCcvu4ClVpgfMZ6XIEA+JsBnigKElkYKRvosKPJ6DRGIKB 0EyWUEGKa0V4fn7UNpOV/RX96Jm9ITXSq+4x+SztQHbs2U11T9NWEezcWpLCPRgQnJWN jBGw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zsc98oIgffse85GTHydFABxhrwrRsGWjzVdBoNpTL+w=; b=d5W7P5KhBjIQm49EM88Uf4Yw8BJXi1Cp3Pdl78iM4ZFEDsdQ2q0t2EbYevLNz4pC5z mTDlT2GU78/zArxicYeDDVZrETvwWjcFDkaFlvMMFtjv1NRGTXrEx6G9AhZ7G9E0BaqY tuPwekhzsnqwAycR8tP2QoldfnuwDSahcdO44UKaWaHysH7J96MHmIiiijulVf+z4Pbc f/vFJ+PvuYA1cw2Ih3PqdUpOPddJusCy8lhKN5XmRERKUDB4F9hKivA22YTg+7y+EZmQ BoFIsWMKOoJ9IxJVOsClUofTDVIdD57gr+IEBeYELZ6VzQF36WVLIM9+e17vXx3hC5gJ TNpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=S2fIItgW; 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 72si5205178pfj.408.2018.01.25.13.21.54; Thu, 25 Jan 2018 13:22:09 -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=fail header.i=@gmail.com header.s=20161025 header.b=S2fIItgW; 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 S1751514AbeAYVUw (ORCPT + 99 others); Thu, 25 Jan 2018 16:20:52 -0500 Received: from mail-oi0-f52.google.com ([209.85.218.52]:36067 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbeAYVUu (ORCPT ); Thu, 25 Jan 2018 16:20:50 -0500 Received: by mail-oi0-f52.google.com with SMTP id w135so6373833oie.3 for ; Thu, 25 Jan 2018 13:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=zsc98oIgffse85GTHydFABxhrwrRsGWjzVdBoNpTL+w=; b=S2fIItgWDq2h31jPI89G0S5sob3fmC88dA0vSX+cXwKR3cPGnkpCjRB6lKORskIttQ XDH/INo2qRKIsIYAfZhNtKrEiv5cAxZUClMnGZbsZ701huyKNb5aWdDck06mTsBX7H7a 1pLN4pKQCmxlhCNjBjgBHIDOrDNDdMbYXyaeqWb7STHuZb4CsSyEhU06WTvHEGtIunc2 T529wK/js/2ICfUbF38pRyUpbI/nzD8rTq8yItR9yZ/BmyUtNRE0VHzUxqthxrRYsbYL /o08AZJFCkZhhA39HZc71jCMFOzf/3eK2KO8zUJ/HX+beYnmX26mqjMpK/2X0pYXopeK mVdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=zsc98oIgffse85GTHydFABxhrwrRsGWjzVdBoNpTL+w=; b=owEk72j6H+7csuXBefESuhXcjaOgNN23chUINLZimvZ7IPH4xsyMQATZo4eJZMr7ni vv8PvguW9yDKDlCGWMZesVARPaz4QOMdNliTHMaMhz1no/zuX4fySi/wL5y9J2h9aILP wAYKa3MoWMRMZ21plmGb92fMJZtORmBaOig2LHLv43Zw8X6kaSSm++HkvbSGK8142nru KZjKcewdtq5lmz4bT3yQ8Jfi29ktB0mSjSbR9tOIhOSjy61n1GluVoCuzK5WIEdbNxTj 21y5RCg5WOM+po812gXU3mYI9CfMPQRuF3VFCXk0XUi3g35/8gU5rlxFXNy4fIVsqBUD cYEg== X-Gm-Message-State: AKwxytfhUJMnOwPkVK4Dr7DNLdG82biO6JqwJEK7dtSScOAgb98Tzzt1 elbuG7tu/gB8EY7X6114lRJR3f0+8eMtS41mGRQ= X-Received: by 10.36.248.134 with SMTP id a128mr14393490ith.152.1516915250328; Thu, 25 Jan 2018 13:20:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Thu, 25 Jan 2018 13:20:49 -0800 (PST) In-Reply-To: References: <503224b776b9513885453756e44bab235221124e.1516644136.git.luto@kernel.org> From: Linus Torvalds Date: Thu, 25 Jan 2018 13:20:49 -0800 X-Google-Sender-Auth: rc0g0SDNSpo48vRSzsRvONfbmUk Message-ID: Subject: Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on To: Andy Lutomirski Cc: "the arch/x86 maintainers" , LKML , Greg Kroah-Hartman , Alan Cox , Jann Horn , Samuel Neves , Dan Williams , Kernel Hardening , Borislav Petkov 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 Thu, Jan 25, 2018 at 1:08 PM, Andy Lutomirski wrote: > > With retpoline, the retpoline in the trampoline sucks. I don't need > perf for that -- I've benchmarked it both ways. It sucks. I'll fix > it, but it'll be kind of complicated. Ahh, I'd forgotten about that (and obviously didn't see it in the profiles). But yeah, that is fixable even if it does require a page per CPU. Or did you have some clever scheme in mind? But that's independent of the slow/fast path. Linus