Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1669188pxb; Fri, 18 Feb 2022 12:45:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh5rHRWKw2afz1Yv/7Hx+pH+Y23iRtjul04nHSRpKxq39/LMh0JhJlb7oAiHyQPkKa+vvw X-Received: by 2002:a63:d116:0:b0:372:9961:4203 with SMTP id k22-20020a63d116000000b0037299614203mr7606500pgg.361.1645217122104; Fri, 18 Feb 2022 12:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645217122; cv=none; d=google.com; s=arc-20160816; b=aJ3CsPsCcJ+6GiFcYecm1DqUJviQGbOOLrBTfos+sTMxdgi36dFsmqEXNA0kKjwFIN wB4gPXk9BEiaDSTpEfQz+atj616Mo32uXjqLtakeHRSvry9VVROtHJ1sTAgCIfe18eaS G5wBvBctj0Le3VXg2oDx/+Bn046cGR3I1AkA7tdV7tK8NWd+Qs2HdVJApRNKG2YVfj0y cHyMRCJ1/wZ5skOpkXcGBEkdasn+IaCRCJyhJ7Jan4KX9wxa+X/AquCVLlPhcb4WQBXa IuEUJzL89l/6ri4pvG1jWOnUSOAR5P3VLo7fIxVbnA5GDMURXhyeiKKPoSfFiQD+FIo4 xxfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V0NhB1xsVCUvvgT8xA5VIM+U/pg8RDe8EADZNUdbmpw=; b=DGjrn2rO7rVFX3mkRp7dIRLP3FO64zgId2kH+CKFE+4IJYsS7Rv+4QgLwWPGGvZiUK /CjThga/jTxHFgEv07N0xjEle231VYT9rDWad81yRIA4oEyAbZkbkaPD0XMJfo8Z4UOb bjCfb9+PNm9qpbub+V19qNc5+y07dk4VtWix0vTCjkU4j7jDZpR1T/FGHQ6rSr0sM8Br v2nE/DHbp2XP6s8Ry6qpO9cywyym72bFieoMcSjcAFTNH7SkEVL/l9rjnbzGv82BXEZ3 LoK3iNO+iEuX9CF7u3xukKC2FUoTi5hHIIm2QJ8sbmC6gOk6rHqf8sXYnk/tUkDigx3R GUxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=LQlGKbvY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8si27042115plg.258.2022.02.18.12.44.56; Fri, 18 Feb 2022 12:45:22 -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=@google.com header.s=20210112 header.b=LQlGKbvY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238692AbiBRRjr (ORCPT + 99 others); Fri, 18 Feb 2022 12:39:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238681AbiBRRjo (ORCPT ); Fri, 18 Feb 2022 12:39:44 -0500 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 195DD2BB19 for ; Fri, 18 Feb 2022 09:39:27 -0800 (PST) Received: by mail-vs1-xe2b.google.com with SMTP id t22so10794723vsa.4 for ; Fri, 18 Feb 2022 09:39:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V0NhB1xsVCUvvgT8xA5VIM+U/pg8RDe8EADZNUdbmpw=; b=LQlGKbvYmoghEDOz5mAfbSZPQkv9R6f2PjO4g3ZFPDnIXwP1lLVPJ5YIbRGtI7uAtx iqeVrwXL3aFY+U3ilfBt9nIAXyEAkLvuaj0j2O6q+oL1nMYnzyM3cfxm5WdnEM6Rr+Yw AyVUuarJkT+7aDv1gxDQMrtFRE6TueKIeUiiCTmeLHNx+iEWOgdDvCwV2+C2ExC8MjT9 Qf3RSPskYUcr1y2ZqortgdG723i6PYuX+f6Abej0MKG9zikCic40qsCz45QuCAtv6v5A 4jJh4U3Wi1Dk6QHBouD0TVocOYoHNB6/XeGapQbTLlh25DgLOsTCIbG5svtly19Wvsb0 VfnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V0NhB1xsVCUvvgT8xA5VIM+U/pg8RDe8EADZNUdbmpw=; b=cns8pv9+CM+9+xRgId87h+G0wR8Y4viTRBV6KuFW+C8utT1hBjXvuYgThhYEDsfoX1 fOEJ9J3KzWg947I9dPVrtMMvG2DxBXFHiVIydqx4VuUhZS7Nx1JmEdyduoDIAuaFnzkN Y2lmeB3ztPJZoDpLBr81Mlu8wdq22l+3mwX3vIvHmAyYG1UROhmEj4DitegL9zwuadXZ RIPNPg4tmlwNqYR8pYqTwzgyWbypXk1x7nsxokrc/37WSjOkwC1yJxsIhURcOCZtNC9Z 7biAEUtRTBDAZODqqZRgtSNWvpqsgnvyuwmXuAyKaic11QXqOjszPX713KbpKS1U9d09 KALQ== X-Gm-Message-State: AOAM530g3pVoKdxuzunPWVE4c0+KBXU4Q3ObbgmtZ/KDqUavbFIUpeOg so+Kqc/UczcD3+ulYmL1psI2PkksATOW2gmFkFbAIw== X-Received: by 2002:a67:c081:0:b0:31b:8d09:7e25 with SMTP id x1-20020a67c081000000b0031b8d097e25mr3768382vsi.42.1645205966074; Fri, 18 Feb 2022 09:39:26 -0800 (PST) MIME-Version: 1.0 References: <20220218013209.2436006-1-juew@google.com> In-Reply-To: From: Jue Wang Date: Fri, 18 Feb 2022 09:39:14 -0800 Message-ID: Subject: Re: [PATCH v2] x86/mce: work around an erratum on fast string copy instructions. To: Borislav Petkov Cc: Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 9:16 AM Borislav Petkov wrote: > > 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. Ok, makes good sense. Thanks Boris! -Jue > > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette