Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2024577imu; Sun, 18 Nov 2018 14:02:48 -0800 (PST) X-Google-Smtp-Source: AJdET5dWlqy48FHznNG1zw1bFOjM4vv6Kp9lS1T9jb+t+HYi7BKh7Gd6rgilUm9yKe56zk0yKtyc X-Received: by 2002:a62:cf02:: with SMTP id b2mr13238910pfg.183.1542578568751; Sun, 18 Nov 2018 14:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542578568; cv=none; d=google.com; s=arc-20160816; b=hIajM60w0XryQydYF2vYAeKone9PQGeTjTJWHsKhWX8h2C3pdJlIxkulnoSOrw6Wjb tW17ldQT6QXHVnc/2ExW3MmcfDHBy1wJ0ukwlY4fzadUa/YbFLtdTtkynwLjG65I5EKj eO4oQytj0W0SHcCFAlS1FcukHr1fCfu2QlPOe70ekikERA9T1owFCF1hNK6sGLj6fwFS P/sTjOMN0OjdE6zj1sfFUm/CNWty9oyL3B9+nKwoi/KAsXSOob59oDGRY2dsFDcS+QdV G7qBuaIMQlLrcRajFjGvfoHceqApgCvmMuV+R6enAUo/7WXWsHwrWNcCOrP7aHKvli2q QHgw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=5bj5rrlbW7BtQ4+yq6AMumnTIpUMq4U5nAKgTonCCHU=; b=ZILK2bOnbGhkiM5sGFzgrKjE4iNhd7cWcfaCF8Qn9vddcoDEsFVb62hdtVXeAUqcXW GC6XSQe9A/rA7D6Xz2u2IItizQmnQvT4LS0zhidCH5n0Ikc3VWULL+smhmusbrFQJN6z qok0Uefzy6/jgCCiipUW9ybubQdfz/5nWbuSKYCXlRFR23vbVEUDTRWHpusQ5QnpaWui gtzHZieGkUjUsrdAU1BwVeTuZUxsGPdWqX/VvyZzEVxouxM7tTNpbBOuIfx+V5pT40+I 4bENFWIBmFYNLkjXDMo9f9NdJxHYUfPRtX3CP33jm3cCIEDzJ++99Nc3bwlYNd7dSGm6 43vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bMQ2odlh; 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 187si15348493pfv.238.2018.11.18.14.02.34; Sun, 18 Nov 2018 14:02: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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bMQ2odlh; 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 S1726950AbeKSIVy (ORCPT + 99 others); Mon, 19 Nov 2018 03:21:54 -0500 Received: from mail-lj1-f177.google.com ([209.85.208.177]:42661 "EHLO mail-lj1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbeKSIVy (ORCPT ); Mon, 19 Nov 2018 03:21:54 -0500 Received: by mail-lj1-f177.google.com with SMTP id l15-v6so16299218lja.9 for ; Sun, 18 Nov 2018 14:00:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5bj5rrlbW7BtQ4+yq6AMumnTIpUMq4U5nAKgTonCCHU=; b=bMQ2odlhahXQKIvmjC3QxV5PTiqiDzxKi0x24C2hSVO/y0qqRi3PWCAkN1mIgbfhb4 9KngNoM/WeQF0ZI+65/fh+7hUkktkaSbUHFiutT1P92V1yNzNeT+XPxNgGIC9iGg4bu+ kri0snCrgfCdoK7fWvmMw9B5z15SR/cLgrrkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5bj5rrlbW7BtQ4+yq6AMumnTIpUMq4U5nAKgTonCCHU=; b=rNqe1PvYXyGNjqpckybY5gmdSVLe86suJcs/KBn0zAnLmnmMNyt6bXe634Ed2ZGwKr 0mu+uNqZotoUKcjfCSTtM6bHRp/VqfGAp5VDdw2lehqQk4vC1/FwXn9O/PgIq9dkWa+Q KTJDM/8OvsmNcSE/e9HOj7tIcAI4js3DF2IsIC5R9xGk6vRSZiTZrTL4NHiKW1RN4dV0 EzX41ZC5nVrB1n9Yt2WZ/GixXegKQSDQLdkpMm3DqBdFK1t0cQt+smSe+G+Mlrmdl9LH jDQTB7e6612Xb1LwJktFxxlo3ML0N1V5FwdJUd/nqFZb9SlFs/TBfK9wxWM+oKg5KC9a 6Neg== X-Gm-Message-State: AGRZ1gKebk4sI3sLMrmfXW2us6w7hRaLZlzMyXQeRLbYaiuWxrGqVv5f bryQ/3iaWDLnWnRwKzC/osnapzi3Gig= X-Received: by 2002:a2e:2e1a:: with SMTP id u26-v6mr11287076lju.8.1542578421773; Sun, 18 Nov 2018 14:00:21 -0800 (PST) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id q8-v6sm4128415lji.69.2018.11.18.14.00.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Nov 2018 14:00:20 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id v5so19952013lfe.7 for ; Sun, 18 Nov 2018 14:00:20 -0800 (PST) X-Received: by 2002:a19:3fcf:: with SMTP id m198mr9034917lfa.106.1542578419958; Sun, 18 Nov 2018 14:00:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Sun, 18 Nov 2018 14:00:03 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: STIBP by default.. Revert? To: Jiri Kosina Cc: Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Andi Kleen , Tim Chen , Casey Schaufler , Linux List Kernel Mailing , "the arch/x86 maintainers" , stable@vger.kernel.org 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, Nov 18, 2018 at 1:49 PM Jiri Kosina wrote: > > > So why do that STIBP slow-down by default when the people who *really* > > care already disabled SMT? > > BTW for them, there is no impact at all. Right. People who really care about security and are anal about it do not see *any* advantage of the patch. But people who aren't that worried suddenly see potentially huge slowdowns. In other words, the behavior of the patch is basically essentially exactly the reverse of what you'd want. You penalize the people who don't even want it and don't care. > STIBP is only activated on systems with HT on; plus odds are that people > who don't care about spectrev2 already have 'nospectre_v2' on their > command-line, so they are fine as well. I'm talking about *normal* people. People who simply aren't all that invested in this all. People who just want to get their work done. > So, I think it's as theoretical as any other spectrev2 (only with the > extra "HT" condition added on top). What? No. It's *way* more theoretical than something like meltdown, which could be trivially used to get data from another protection domain. Have you seen any actual realistic attacks for normal human users? Things where the *kernel* should actually care? The javascript thing is for the browser to fix up, not for the kernel to say "now everything should run up to 50% slower". Linus