Received: by 10.223.176.46 with SMTP id f43csp2658197wra; Thu, 25 Jan 2018 13:09:48 -0800 (PST) X-Google-Smtp-Source: AH8x227ps3G6qX1Yl6hqv5ItgesMv3aUkF5plCClwl6JuGEB0rfQGXi/gcI77y6PTspzUHfvSMMO X-Received: by 10.101.101.144 with SMTP id u16mr13784545pgv.73.1516914588626; Thu, 25 Jan 2018 13:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516914588; cv=none; d=google.com; s=arc-20160816; b=VXVWYBWAlW7r6amc5tXh/YxXPkpQ3wWakXQsIUzRiY6Fh1MtuezxbyjB8HT5jLYB+F NO4KsQl2/wkQX6ZO4ZDf+Ujv26LROe0FDTnhD7T8uYngTkUwatk+y7DgMvA5pDntW2Bh uVxBmq2SFmsmXvBDGzY0cpxuydknIR2uctxQZWNj32dD323Wtt0b7bGAa3Tw7tEvpN5O 3gKjYPMQ6LRLL205oxsuLE5sg5wiaS7oATizs7HM5Rd7cKxam7IHnR68RkKpdkNaStng GZwi6asQ6AnmXN6gmWl0F2ArL0GUYWPZ1LTFPUeeA/oeys8dzTozWlJwUQbm6LTDNNP4 sXag== 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:dmarc-filter :arc-authentication-results; bh=0s/DvZejqebxAAr4DB+vLXbqY5i/o+0pnwIkc+HcFe0=; b=UNkKAk/ZtXyYFtYrlXViyrp47BThTBGtNGI8rkIZfbO4TYi9H8xDxrJZW7SzFuYFFX Ta1spmE8gLjnoPiqApiegl8qrOCFX/KoVf7bfUBCxL0FK926GbavaR+5CQWWWDtFKX8s IQWcFI0HrEwVwzvBmiUFOM0T/p/IwjDyB0cwsoKYtlcEshSbwLl31xbgK4bq1269noMC 5eg1f2NymXz15Spovi47X7W5TL1+v1hDwCZFKucDX+tcllep6/wsKWlbgt6TVXX2W9iP 77akIKNSzAxjyQi6UIbEUT6BaheHkt6FL6NzfeGzHdP/J35cChTjXSfnZFDjoM7LRDn4 cuEQ== 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 t64si2024627pgb.300.2018.01.25.13.09.32; Thu, 25 Jan 2018 13:09:48 -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; 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 S1751399AbeAYVJE (ORCPT + 99 others); Thu, 25 Jan 2018 16:09:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:50220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeAYVJD (ORCPT ); Thu, 25 Jan 2018 16:09:03 -0500 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) (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 C646421781 for ; Thu, 25 Jan 2018 21:09:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C646421781 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org Received: by mail-oi0-f42.google.com with SMTP id m83so6296149oik.8 for ; Thu, 25 Jan 2018 13:09:02 -0800 (PST) X-Gm-Message-State: AKwxytdlToVEcPAUVguJQlveSsSmSbXAZBdUjcifpStgoSMi0/WYxY61 4vCtW5wEh76T5spTtVaACnzHB9j2B6C3H+vDu3SZjg== X-Received: by 10.202.172.68 with SMTP id v65mr12189811oie.121.1516914538732; Thu, 25 Jan 2018 13:08:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.66.36 with HTTP; Thu, 25 Jan 2018 13:08:38 -0800 (PST) In-Reply-To: References: <503224b776b9513885453756e44bab235221124e.1516644136.git.luto@kernel.org> From: Andy Lutomirski Date: Thu, 25 Jan 2018 13:08:38 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on To: Linus Torvalds Cc: Andy Lutomirski , "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:06 PM, Linus Torvalds wrote: > On Thu, Jan 25, 2018 at 1:02 PM, Andy Lutomirski wrote: >> >> Feel free to Acked-by: Andy Lutomirski that patch. >> >> Or I can grab it and send it to -tip. > > I'm not going to apply it for 4.15, I just wanted to see how it > looked, and do some minimal profiling. > > From the profiles, as mentioned, moving 'status' from thread_struct to > thread_info is probably worth doing. But I didn't look at the impact > of that at all. > > So it should go through all the normal channels in -tip for 4.16. > > I'll happily sign off on the patch, but it was really pretty mindless, > so I'm not sure I need the authorship either. > >> Re: the trampoline not showing up: if I find some time, I'll try to >> wire it up correctly in kallsyms. > > That would be lovely. Right now the system call exit shows up pretty > clearly in profiles, and most of it is (obviously) the cr3 write. So > the missing entry trampoline is not insignificant. > 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. --Andy