Received: by 10.223.176.46 with SMTP id f43csp2681452wra; Thu, 25 Jan 2018 13:31:44 -0800 (PST) X-Google-Smtp-Source: AH8x2274JZdJi9t303gz0EvJ121c8OfbKXTfQKeohLgmTt2cNWVsJKHQVGcQYC3x/waY+wKeULNM X-Received: by 2002:a17:902:820c:: with SMTP id x12-v6mr12808094pln.103.1516915904229; Thu, 25 Jan 2018 13:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516915904; cv=none; d=google.com; s=arc-20160816; b=wO7R46HAwLCAwPiP7IMyZinAFPZPra0W1pOuZya/U1fLB+Ugmb3JlZEyP3KMlfd4Zk nZGcm3xk1eHOhWPDhxqpkcmdo56WajrBdEUYi+mDH/eKLhAzbmS2sszLxlSRfJZ8BGST xzobQAUblKD5Hq3+KG5xUL4fNNSjEChrFvOe09SQL1yH3e5cFQqF+O/+JF9G0nP2dlrX Z4C3Kp6RFdlYg5V5hX5MMHib3SSRKlcHJpk5JBlur+Q+v/Y25jiEU48II+NfS3a3FU0s wPZO0Da45y43AOB5X9b3uHrZfFi1BD92qDYomGG3H+g5EKD+UnrVljZktdxoO4hZSH1D le7A== 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=pI1ty1cya+5u7AIUOxYWmsVtXthJkaL50pdK0/3hdbg=; b=Aga/nehvoTJhAcf5vBps0T4quH6ee4EfQPBOmUdgI9/lntT7bSd6p7gMzPCszAH2Xf hqsz98EDaSBQ6nGhNhFzRKkY6cgkW+Q4g/m1LUPeWrkeZpVNaWwfY46y7jtAKQ3Yhzwe qx59s8OHBQhvxpCE0BjIQx5AvIAtUhz7sCcKAJ1bxPbhWbPUI4M3tS9GgAXWDzL3oa/g jxeZIQbxPJp30+PzXh6l2+U5+Oj4eB3J6plRUKQxznsptVmT5HVKx5UgmpJ8BcWch0RH iqOBaS/2eA2ZhBROgit+fUNxfPg+5vew+p/66MpQm8m3wvr0nsLLEnR3W5jZwUfSbSlS 6BLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TgyiHcMv; 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 i2si2049035pgt.354.2018.01.25.13.31.28; Thu, 25 Jan 2018 13:31:44 -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=TgyiHcMv; 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 S1751426AbeAYVGy (ORCPT + 99 others); Thu, 25 Jan 2018 16:06:54 -0500 Received: from mail-oi0-f51.google.com ([209.85.218.51]:41843 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeAYVGx (ORCPT ); Thu, 25 Jan 2018 16:06:53 -0500 Received: by mail-oi0-f51.google.com with SMTP id m83so6286674oik.8 for ; Thu, 25 Jan 2018 13:06:53 -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=pI1ty1cya+5u7AIUOxYWmsVtXthJkaL50pdK0/3hdbg=; b=TgyiHcMvdOI/7qUCLY6MTpnmIeVt+7LN+2Zwx0yNwh06uws6uwnQDb5d3oFY2LXMdt CLugikCEjKL7H8W7UqQAelirZcjDvmMw0oLWBigjNtNQKIapw70KwgOQig8fELDJwhku 2IwFxHyHNCXtiFGUWWrh48rY4sVuk5IGNxRsA6v6J0g1WFVD7tYCAXJNJLNIfpgNrtjI UfmXRBYI57pXUVijevFzoP5WMWZlaE+8yPk19ayZzBKd7ScHXjvhuzd2aCefeUZg9qbL V4EEW6VgDyojWxd3m2VOur/h1O0xSFCo10KYPHiisCULM+7Y4DCB3sCZ665cguL7uYqB lzMg== 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=pI1ty1cya+5u7AIUOxYWmsVtXthJkaL50pdK0/3hdbg=; b=m/wfV6sB+6VtfGAWWvFP334TVgAGp3ns2Sx+05ugcRZG4bVGGXyU9/uCHdWjTC7Fw7 LcnqS+Q5/bKjDScPTKqTJZEOynL1F3x5JM6+1Lx/mX7Fbm6Xhx/ObQV1ckOJ3h6Vi0oh EzgLGtOhxeDVE8EWV3ZK53P1tagMR8Tdmpi91OTxx4HgfIEt+IX8w7yDrJbtHjfkv5xj lOFLao4p8rD+7j/B8AXTBM8Xd8auW4j2rhaJibfX7rqJtADaZ3SZsVpQT+UqVgBf0OSH QkUMXXFj5b8Dt5LWdVGXrAH0AmsnRpC4a2cAIXwlTvZR9LqaUeTACsSGHAc+i6l5JnOo Jyig== X-Gm-Message-State: AKwxytfIYzttm1gLIbyWMvaT5VEELi0RuZJHiCCNwUd03LNGiCJWk7hu RHfECwy9H6oYaeCxAqQPU3DOUnlAmfpPQnro4hQ= X-Received: by 10.36.248.134 with SMTP id a128mr14363513ith.152.1516914412895; Thu, 25 Jan 2018 13:06:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.129.9 with HTTP; Thu, 25 Jan 2018 13:06:45 -0800 (PST) In-Reply-To: References: <503224b776b9513885453756e44bab235221124e.1516644136.git.luto@kernel.org> From: Linus Torvalds Date: Thu, 25 Jan 2018 13:06:45 -0800 X-Google-Sender-Auth: qPhWzQk9fG77-UQl0vkXC5TqA8Q 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: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. Linus