Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2470768imu; Mon, 19 Nov 2018 00:45:34 -0800 (PST) X-Google-Smtp-Source: AJdET5cpnUZWqrS8xIRKjLXXQnj7WV4exrs8KmQU2hmwCuaB7HV/F00N0kXS4qumAtDfxf6PWkbZ X-Received: by 2002:a63:5f95:: with SMTP id t143mr19596415pgb.395.1542617133998; Mon, 19 Nov 2018 00:45:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542617133; cv=none; d=google.com; s=arc-20160816; b=RGmhZLbSehv+SgtHXXDmho7lzLlsId6DwVXh7pUPityE8nFSfNM1T2OxeBG6dPBV50 haw3F/UB+r/B2wzf/CBziffDGD2CDvKH9lWcO0iHIFXZZ8WwAG+vtpZB8MW3QNMA6zqC 49Z5/9toeJ2CvjrhbH15GQlHXv0aELju0fH5VAAugfUGen4W/S9VLj2k4xNWRl6cTp4i FrxNa0ATo/Tcd2Sfk8lBBQunCkVuJRu8vv88uXBXzc5j/4e/p0XAlkOBbgNqhOgEd/Y3 wshb5NddtYHo6Db0uQiP7TfMlIKtZpejbn2gvbD4/mKPCy2SIXW2fgUqGHwrso3ISJTe nWKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=zFXGSeijHyrmhKC/INpCLIEHAclfPUclAiKCnuHymeg=; b=zTITtVenPtTeiXhAqPTvVDw8NEvsxzpmuhcwidwm8aXRV6LOg91w0EQOFw9Gmysy/a 7SR2nmgPQPGek6KYim1q/6erlc0Jmr9C4Tcu0Gcmh+HLdeUx1GyEaU1ge3b3AoTkfVAL gVd5E+rx+OrH6KlKB/NWVNJ/KQb9SwyW43C9RPv+iLwk/fiMN1KRtQc/CxQwN/Y2FZgO j8a8U2+O7yW2vDbk/UyVfgKfBeUbyphyGZvIzQXBrtt26YVgvTvVbsMZmCzAzO5rI/nx TbL92MK/dt4GaJmtgNfDezTzbOYjNOP4avAsy9yv04S5Br0Wx8uEt+pcj2v5kFDffMDw DdeA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37-v6si39687785plb.167.2018.11.19.00.45.19; Mon, 19 Nov 2018 00:45:33 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727190AbeKSTGX (ORCPT + 99 others); Mon, 19 Nov 2018 14:06:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:52550 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726088AbeKSTGX (ORCPT ); Mon, 19 Nov 2018 14:06:23 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B2291AE4D; Mon, 19 Nov 2018 08:43:24 +0000 (UTC) Date: Mon, 19 Nov 2018 09:43:22 +0100 (CET) From: Jiri Kosina To: Ingo Molnar cc: Linus Torvalds , 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 Subject: Re: STIBP by default.. Revert? In-Reply-To: <20181119083855.GA129733@gmail.com> Message-ID: References: <20181119083855.GA129733@gmail.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Nov 2018, Ingo Molnar wrote: > > This was marked for stable, and honestly, nowhere in the discussion > > did I see any mention of just *how* bad the performance impact of this > > was. > > Yeah. This was an oversight - we'll fix it! > > > When performance goes down by 50% on some loads, people need to start > > asking themselves whether it was worth it. It's apparently better to > > just disable SMT entirely, which is what security-conscious people do > > anyway. > > > > So why do that STIBP slow-down by default when the people who *really* > > care already disabled SMT? > > > > I think we should use the same logic as for L1TF: we default to > > something that doesn't kill performance. Warn once about it, and let > > the crazy people say "I'd rather take a 50% performance hit than > > worry about a theoretical issue". > > Yeah, absolutely. > > We'll also require performance measurements in changelogs enabling any > sort of mitigation feature from now on - this requirement was implicit > but 53c613fe6349 flew in under the radar, so it's going to be explicit an > explicit requirement. Do you already have an idea whether you'd proceed with Tim's patchset for current cycle? If so, great as far as I am concerned. If not, I'll send a patch that switches this to opt-in via kernel cmdline (+boot-time warning if not mitigated). Thanks, -- Jiri Kosina SUSE Labs