Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp63095rwb; Thu, 12 Jan 2023 03:36:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtl10ZVstK35z31KQL3tHdqTwUglV7tCw/nOZ8LLWPsK1HYfI+S8MmK7otukyscqlV7tDir X-Received: by 2002:a17:907:674f:b0:864:e562:c427 with SMTP id qm15-20020a170907674f00b00864e562c427mr2578850ejc.48.1673523384090; Thu, 12 Jan 2023 03:36:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673523384; cv=none; d=google.com; s=arc-20160816; b=aIFQXcBkQ+nKVdqcPfG7hhGVe+cHBxkW/u7ERQMmpEj1ZA225QbkwWb8xqy09Gn08j m31hM7wE5femaNfz5Ru4T+5PiIf4PwU7MKpY86+PQQx2o45lC46z07BqCGLmz+ljdnZc 36Sfcy6B3c1VahO+8BhH/2KD9tOv3fmygMb0zhEhPUNNDFkfqc/7qjXtdIYdQIZ1U8Aa /KQTgAikJ/9Ondnk2oa8LatLsbXXA8nTMl6FDpWBD9cEgIZdzjG5823BHR9/JpDEmv2Q SEj8zoC7jxmpTRR02AciIxJe6oaR6J1HM0amCOrWiokkbT9k2cngQleoDdTxV7nXUHsu evCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CJ1uL2ZqSBbV653T/Ui6KWFShGRfcaqwoq4TgOsz5Q0=; b=LwKFbls4eHj0sqwTLO+URCFO8Nac6Hw72zb8Gvo3Kb3ig4NVNS8Xh/evKpVewqTIXm q9KrOI2glJ5ETCUJrp+BYkK5Mt+52gASAd1fyKgsv1B8AelG423gHJ3zzFVuqeZQd4V4 oif6C8o0Xzo6Tu9fA2lv95cwjmruxXSVWrtsAKgegn+qLlwE0iomJUvSYUfMBATD/Z6A aVza5Iq7B2jLrrOCZcwFzP2yJHyJQMYQrIUJ64+XgvJfpCPo3DAqz86cDi/6tNlOG93A Wpe5+Rrkm0mOXOHmceDDy6IYt4FmQoV8lZJnuljdFffoehMU3W9NSSZvU42/j1woJkct 08/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PciC4Qa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di20-20020a170906731400b00780e89ce0b0si18127337ejc.600.2023.01.12.03.36.11; Thu, 12 Jan 2023 03:36:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PciC4Qa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237665AbjALKkr (ORCPT + 49 others); Thu, 12 Jan 2023 05:40:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232433AbjALKjk (ORCPT ); Thu, 12 Jan 2023 05:39:40 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 305996586 for ; Thu, 12 Jan 2023 02:34:16 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 824171EC04A9; Thu, 12 Jan 2023 11:34:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1673519654; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=CJ1uL2ZqSBbV653T/Ui6KWFShGRfcaqwoq4TgOsz5Q0=; b=PciC4Qa5czY4g5t8Yzc7JIAhA6koQP0Ox6MVVEXSKlsBLa8JSZmEb/nmDHtJpIZSynNnfR TxGIJuX14Rz6hmdaXwSy9qWrKlCVjGbSsY9bWR0N18MdQddWRJtPvXclfvh7dPkz3Oa8JB D9qiK40XVjjAhDtmWAbkS7t9AvtbAk8= Date: Thu, 12 Jan 2023 11:34:08 +0100 From: Borislav Petkov To: Pawan Gupta Cc: Breno Leitao , tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, jpoimboe@kernel.org, peterz@infradead.org, x86@kernel.org, cascardo@canonical.com, leit@meta.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] x86/bugs: Explicitly clear speculative MSR bits Message-ID: References: <20221128153148.1129350-1-leitao@debian.org> <20230112070037.q6cg23tn57onmxfi@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230112070037.q6cg23tn57onmxfi@desk> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2023 at 11:00:37PM -0800, Pawan Gupta wrote: > > SPEC_CTRL_RRSBA_DIS_S is a disable bit and I presume it needs to stay enabled. > > The mitigation is enabled when this bit is set. When set, it prevents RET > target to be predicted from alternate predictors (BTB). This should stay > 0, unless enabled by a mitigation mode. > > > Only when spec_ctrl_disable_kernel_rrsba() runs. And I'd say perf-wise it > > doesn't cost that much... > > I guess this doesn't matter now, because this patch is resetting it by > default that keeps the mitigation disabled with no perf impact. Ok, lemme queue it then. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette