Received: by 10.223.176.46 with SMTP id f43csp2220693wra; Sun, 21 Jan 2018 14:28:37 -0800 (PST) X-Google-Smtp-Source: AH8x224ibDoHppoi4EllNq1uHhEcYBJtsReYBqm/O+c2lCr2ZgwZX54zPZNyILeXGwOzXzTXr0gQ X-Received: by 10.101.96.207 with SMTP id r15mr5435378pgv.139.1516573717300; Sun, 21 Jan 2018 14:28:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516573717; cv=none; d=google.com; s=arc-20160816; b=zEXkhxq2HrWzJh0LA6UAclfWAkmsTxCPlOF8z6xumGmNGaYxormZZV7N7AmQz1IN6U jMqBwVSLvAZsi3/ksrt65DZu6IVLUjwPBCvIc/bVjEvCPSmqkMb/Kiv7Pj2BKrjZPu3x UGRDPNNlDU7wdcFvlUu1XrZxVEZJkw1AOcfTigCdPxpGOrci1EUFpQYimjIy3aIsNpli driPHzkR1xBI7XuZ2cZMMPS4cDfSToD/sCGyAT0Wd07c4CqImm8pWIM0Ck9IsjyYURbL jGGSQ75jBILocjeuq/KfGXh3Zv/Ufzg6fKcD7Nr+kLqEG2fxE4w6uqk1ThPhStjbLPzC sP5A== 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=KUCltglMZQkIQiG96tbEXSlg7N/TQkY8DzfvtbUl/Ak=; b=vwhRSCvSBIRvPjnGW9D5gfyardIX+xFhjYZxHHhlaiOHO1/dqErBz5F7Q6nNad70RJ DYP3xEa3FcSntQ+LckaNuDGm/ECf6J63sZmNwd+6HBqRI9WUqsEj26IUPVfLfJXRDMnX JKm0FGtoIIuR/+OLgfTznEC0LT6xpWWYf+fHdJ+5hklu7tPnF6gnD56F0NEBL5JpLN8a dLv0yuvMDJlZVd+LJIYxQ41CowhBm0nmYxHTU8XHUetISNdOKlunETBPBP/qxNFegGTi jneLUO5pxzwW4YhDPE7DoQ6f+euTNbYEmonIutvKfcqs8QEL+D31xtgoMXXkDa5osxGF zmMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YRFe2oKf; 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 y20si14430459pfj.54.2018.01.21.14.28.23; Sun, 21 Jan 2018 14:28:37 -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=YRFe2oKf; 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 S1750948AbeAUW2B (ORCPT + 99 others); Sun, 21 Jan 2018 17:28:01 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:37553 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbeAUW17 (ORCPT ); Sun, 21 Jan 2018 17:27:59 -0500 Received: by mail-it0-f41.google.com with SMTP id q8so7769680itb.2; Sun, 21 Jan 2018 14:27:59 -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=KUCltglMZQkIQiG96tbEXSlg7N/TQkY8DzfvtbUl/Ak=; b=YRFe2oKfA9cbRUA1oTjVsDWie1Oo5xoSAWEK0ep+lEclbwe4fDswH/huGXLU/MHs96 hcr5vzfkJ5JPfoYsMpbK8MsSQZDbXUq08Rovt7995TMb0JaBvC/8lpi0d3sXeM8fWf+p ApDQlypXm5wU2EH+kmlRaukN/fT7aJKvXZENKj+iexqI10zOfzhviRUIJWWgs4DjDnf4 G8ny1wXyCtTQZRiNW6jeHKdsgPrQ+7j74DP+IIUaDHgmWgLBY/DRR9vWSYdg5/eoPXTN xFyLyP0s92UEHh2APOp9layFIe2FRcPAEt/k3wzewpXmkIjMGAHaCKLVAT4MAWH/uJOq RrUQ== 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=KUCltglMZQkIQiG96tbEXSlg7N/TQkY8DzfvtbUl/Ak=; b=Xtp5aPC0KT8bexAH7iQUgclCYpqpCOG7GTaAaTh9bAoUGXHZw+Fhr768lItaaQH5dC HwSV6IPJyrnOcEMjSMknwDNlLLZaouDJR8DBR4SDPwoH9AFhwkmeGWoPNmLBCqIlJ4Xr OHx6o5xjHHxS1le5ZNr/fO3BYTB27ThYv6NIiYcyemZ8aKTmIVEIe2tEekaGy+8aHrTo nejoSFrtyM3/9WVP3wP3fk94JF3vLqu1ZZDTWU0CZt64RZmZA+2hozDsQkyuEYHrZNlO ICy1gUIH5oY902UQhiQRZl+l/cx87HM5LEbU/T30D4VukzFQx7+mnvk3QnqNecVRiYMR Z3SA== X-Gm-Message-State: AKwxyte7pQ65Z6ITyDm2QWWfZpvwo786ahNwSgjp4qo3LItGeIFYaGkp WfqpLW3AgkoxrA2nCZrEE/dGyRUTyExnG4tzbMU= X-Received: by 10.36.248.134 with SMTP id a128mr5853420ith.152.1516573678903; Sun, 21 Jan 2018 14:27:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Sun, 21 Jan 2018 14:27:58 -0800 (PST) In-Reply-To: <1516572013.9814.109.camel@infradead.org> References: <1516476182-5153-1-git-send-email-karahmed@amazon.de> <1516476182-5153-10-git-send-email-karahmed@amazon.de> <1516566497.9814.78.camel@infradead.org> <1516572013.9814.109.camel@infradead.org> From: Linus Torvalds Date: Sun, 21 Jan 2018 14:27:58 -0800 X-Google-Sender-Auth: 3Yk3E5Z_T2dTvNRgZs04vKvPPPw Message-ID: Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation To: David Woodhouse Cc: KarimAllah Ahmed , Linux Kernel Mailing List , Andi Kleen , Andrea Arcangeli , Andy Lutomirski , Arjan van de Ven , Ashok Raj , Asit Mallick , Borislav Petkov , Dan Williams , Dave Hansen , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , KVM list , "the arch/x86 maintainers" , Arjan Van De Ven 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 Sun, Jan 21, 2018 at 2:00 PM, David Woodhouse wrote: >> >> The patches do things like add the garbage MSR writes to the kernel >> entry/exit points. That's insane. That says "we're trying to protect >> the kernel". We already have retpoline there, with less overhead. > > You're looking at IBRS usage, not IBPB. They are different things. Ehh. Odd intel naming detail. If you look at this series, it very much does that kernel entry/exit stuff. It was patch 10/10, iirc. In fact, the patch I was replying to was explicitly setting that garbage up. And I really don't want to see these garbage patches just mindlessly sent around. Linus