Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2913865pxb; Sun, 20 Feb 2022 04:30:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLqfNh8fKefuLLWt9aqK73TZdb9tsjKRiz5W5hTykUNlB9kHCPQ8Nuirz6NdYmXfnMNQ8b X-Received: by 2002:a63:5815:0:b0:372:d984:7e1f with SMTP id m21-20020a635815000000b00372d9847e1fmr12385286pgb.302.1645360200719; Sun, 20 Feb 2022 04:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645360200; cv=none; d=google.com; s=arc-20160816; b=KKf6QksRP+K4rZLBvBMobXN8o2/UKQAwYMjqJo290A4X8JwONMwDNkW7MNfZ6uC+ZP O/V2u76JEBeElhMLR0+bW96Hb6qQa3/tZ1jYTNiaG3r5yRVnymUcFdLX5z1/99ariHU0 04rORY3d7oyBdO0TtY5IKrBFPVp2JPxYTEuTeakwC/HyW9BO5Qn6BuI+HNuzCl9g4s/a FTgrgyedjVZqK8ZFN3fCwEJU4Fw7rH/TtL9XyjdpUOc7k9hj0erKbhdt7y2kVBxcWg2y R0F0EbMEO4BNAjIsOJU50atxoXAzHmbMyuumBBqqzz/O296BSETBFhNtDsmU/ks3GUR7 vhvQ== 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=SwNBtYXWJ8xiYRb8tX389TEN1/KTpft305R1guyh4Rg=; b=Fv4X4TLZ4DFLL/VXsK4zaeqg6mETn+Tlc9QkS8S2Z4Epd8G52jRmwA6IGa9HRyV86I a2MOrPEe0ZY/RB502zjAWet8Ss5sGTdkSZgmWpYVctzUVHuhHKGYcLTD19aeSMVFSAxu BAgjDaE3AXCKNhl8dLxqabny8hSP8YBPYrO/tGEfyojF1x6azGDBUhrw/CzZ0aNgDLNP QqOStbR3HBM4mOYWEej3DRCQkXOpB1txn8p+w9xlM7dmMJLCKCjKibvvLa80RmtfvNMk 8SFScZP4x/t8HB3wxOZXAPToZ//jDc9JY0oDNL6uz5x/ewOtPDpW8qtR2zC8VpLYd2Cj +ABA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="HEND9/BS"; 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 bf15si1089398pgb.245.2022.02.20.04.29.45; Sun, 20 Feb 2022 04:30:00 -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="HEND9/BS"; 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 S237790AbiBRRR3 (ORCPT + 99 others); Fri, 18 Feb 2022 12:17:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238508AbiBRRRB (ORCPT ); Fri, 18 Feb 2022 12:17:01 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA5552B8ADB for ; Fri, 18 Feb 2022 09:16:03 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 5650F1EC0304; Fri, 18 Feb 2022 18:15:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645204557; 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=SwNBtYXWJ8xiYRb8tX389TEN1/KTpft305R1guyh4Rg=; b=HEND9/BS0oJ+LlJZKY72NIJltRz8k1VKVsnwXtG8WtQwT3M+tPyNBD+n0D2FIl6MOFucH8 lCqIHoXJuQoRZSDukk2xSsnoWFOtWMVwQDeCDbmLAZy/APHak5P6PN3LisZ8Qw2JPj+3xu BzIEgPNmQUQSZTjoLmt4OvG8iuyjNxw= Date: Fri, 18 Feb 2022 18:16:00 +0100 From: Borislav Petkov To: Jue Wang Cc: Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v2] x86/mce: work around an erratum on fast string copy instructions. Message-ID: References: <20220218013209.2436006-1-juew@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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, 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 On Fri, Feb 18, 2022 at 08:21:36AM -0800, Jue Wang wrote: > My concern was that here returns 0 instead the value read from the msr. You'd walk into that code only if you're doing MCE injections. In that case, it won't read or write MSR_IA32_MISC_ENABLE because the injection code writes into the injection mce struct only. So it won't disable fast strings when you manage to inject the exact error type which triggers this erratum. I think that's actually a good thing - you don't want to disable fast strings just because you injected a particular MCE type. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette