Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1738196iog; Tue, 14 Jun 2022 12:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNBum6gZHJm/Gf556MOYlovjyy7f5vLsRRpsoyuAO4ETvXo1+oS1rCXeSITY6xlvhN3k4o X-Received: by 2002:a63:2cd0:0:b0:3fe:2810:ba99 with SMTP id s199-20020a632cd0000000b003fe2810ba99mr5790825pgs.27.1655233760295; Tue, 14 Jun 2022 12:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655233760; cv=none; d=google.com; s=arc-20160816; b=x4HcOFvU3B/8ieMrwGC16GojjK/6Mb1J5lzkr237hU4lFx5gorD2BaYyqmNvwp0R6H nNPuQEq12pNf/oYamlPqdHX5+X1fmrxrDpRlVkl77Gq0BuqRiJZsa/frIng3httcjOJ6 +WcP9hsb6eeW2dIfSThoe/x9fCNC6/+RJJoRQhUYvSMh3HH9Wn3SGEHCj5MP1fOq4WVd VTh0OyunN2I2oP9nRPzLJTog6f0EUkZDhxUuGNfRp/Xxw2+P6Di4s7C2Sw48eigfbiuP Yueop7nATXcm5fSH3HXjSUpVayIfxuX2CiafNDtCGbQinUtFrQ9YALtCmRkGuBWoHsdo jk8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7M7k3FFoouugOKmBTkoY3MIg1lwneDRkuuLsvzeUssc=; b=sXhTe1AlG5I6YC3Vq4cb6ukzmy9LuIke97C+O/TzhAjBZMyzkNSIVtuBSl46Yrd//F AtIGm4r0UXmeeRHLvY6eWt3Ko/WoBBC26HsbQ2Xy8pcgSepHWegNQtp68L1SHrVMY+sF Kxln7vPLJTsrOjeOnYgGjb2W3UOj4iBz7MgxZCCZ0guj8ivO1hvt/RqXe0tWCeJ9sf+R PalSU016ssZfbKpEg2km5NIUCtqs8MP0CKfdsIgmNjvZ8B8TyT+95Cd0CHFfenCfCnnt O9P41RphVSFYFuaFfyUWjc8E4fIJUmZ/147jCycQyZ3DpMltmNcyqtcpz8toGHKrocB4 eXTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IFJ+Q+7g; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a17090ac70b00b001e0aafb62bdsi12816857pjt.105.2022.06.14.12.09.07; Tue, 14 Jun 2022 12:09:20 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=IFJ+Q+7g; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357630AbiFNSvj (ORCPT + 99 others); Tue, 14 Jun 2022 14:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358011AbiFNSum (ORCPT ); Tue, 14 Jun 2022 14:50:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F59E4F46F; Tue, 14 Jun 2022 11:45:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 265D1617C6; Tue, 14 Jun 2022 18:45:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33FEBC3411D; Tue, 14 Jun 2022 18:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655232337; bh=NwbFDdR/g+6S1n2EfYrR5uXDC3U6sc0OJF0Mf+8i7GI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IFJ+Q+7gC6KwSGHpseE1DJR+je2i5+fWNuZ8shiEJ9nb49jJX5XR4Q8mnuJ4H3L7J KiKbjmw0WkcQOrXlmwcPVcxsoewO2c1QpWUY4zb7VKY/tnF0TT2tor6VYGl0g809lU Gmj4M38ixZteJA50rGpEHgaZMqcqkQd+iYn+5TYg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Josh Poimboeuf , Thomas Gleixner Subject: [PATCH 5.18 11/11] x86/speculation/mmio: Print SMT warning Date: Tue, 14 Jun 2022 20:40:48 +0200 Message-Id: <20220614183723.622139878@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220614183720.861582392@linuxfoundation.org> References: <20220614183720.861582392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Josh Poimboeuf commit 1dc6ff02c8bf77d71b9b5d11cbc9df77cfb28626 upstream Similar to MDS and TAA, print a warning if SMT is enabled for the MMIO Stale Data vulnerability. Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/bugs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -1258,6 +1258,7 @@ static void update_mds_branch_idle(void) #define MDS_MSG_SMT "MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.\n" #define TAA_MSG_SMT "TAA CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/tsx_async_abort.html for more details.\n" +#define MMIO_MSG_SMT "MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details.\n" void cpu_bugs_smt_update(void) { @@ -1302,6 +1303,16 @@ void cpu_bugs_smt_update(void) break; } + switch (mmio_mitigation) { + case MMIO_MITIGATION_VERW: + case MMIO_MITIGATION_UCODE_NEEDED: + if (sched_smt_active()) + pr_warn_once(MMIO_MSG_SMT); + break; + case MMIO_MITIGATION_OFF: + break; + } + mutex_unlock(&spec_ctrl_mutex); }