Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1105117pxb; Wed, 16 Feb 2022 11:06:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx66uSuEiM0Dm3KKLQGG3m1sEeV94q8IWbzO36L7yCMtxYh4QfSGSO4Cr8c7kluFBae7KA X-Received: by 2002:a17:903:1c2:b0:14d:b46d:8c80 with SMTP id e2-20020a17090301c200b0014db46d8c80mr3758851plh.173.1645038396542; Wed, 16 Feb 2022 11:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645038396; cv=none; d=google.com; s=arc-20160816; b=oSXZhirnFexFZU+YEo1uqQtX9xOMoN63ovuhyDNLlt1SJ3tMu8c9BR1kYeGNoPLJof gT7ozBEbwJd85P/qnQTmxZ5ijaCa/HKJH/nP1FSBcHE/xOQm41q7sVkLoCUKM6sE+8wW NEaiMAaj2JBytGd5HXaKc6lWmiOv8iagYio1TkXTvCUNjnC4r0g8Eq9p/vTRN9tfol/d oJLoq3Pi6/WvfMoQqk8FYzmZTA29WF8zm4VrS1ajmIy+rOCiPqfdaWzacomrZjlmQ7xR EMKpztldKK+tgX5a3t0X+cykHytL9OnkUcxVRo13ri3961pAjAH+4YlewBrg8tNmRDyL wRdg== 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=jBtlGm8WJFBOdlSzBUlWwC0q4z+PZ1kReU2GS1VtCzg=; b=wBUbCUQD/DH/8a9xRmczsp6f61gbUkiuYmDs448PmF6bnajho0nujJgUrz9tMCrg+4 EKSrN78JfqppCrBMFLmhfvU3X6xdnDKC+6Fj+DuRH+UotsAHkPlMgp1JQe29a967FlmL MYb/7cwDbO2dFNo4NHzrzFJ6XvW7R2kdLMVEv5brUSigufFpLhj2CKzOEjGhBFBfW7hw BIZFquetNqThzVDI11aJv8kt3EyHLOyUL4VrmQJTaZnrXtcxXrs5CbGkpKAcXed+Ftzp Vial7FetNpzCn+UAlL/sRHs4Nxb39d9rK4TLkGt8HUJWx4SepYWUcXTPqaTwAFXtCD2W IDjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=jbE12Yg5; 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 p12si17803541plr.591.2022.02.16.11.06.19; Wed, 16 Feb 2022 11:06:36 -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=jbE12Yg5; 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 S237401AbiBPSDP (ORCPT + 99 others); Wed, 16 Feb 2022 13:03:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237402AbiBPSDN (ORCPT ); Wed, 16 Feb 2022 13:03:13 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B6A2293B62 for ; Wed, 16 Feb 2022 10:03:00 -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 75C7F1EC0518; Wed, 16 Feb 2022 19:02:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645034575; 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=jBtlGm8WJFBOdlSzBUlWwC0q4z+PZ1kReU2GS1VtCzg=; b=jbE12Yg54ODKlG6g3sf+XPrMSH70l35ZbFTc1OevwaYL0I99jU3mxv888vgnbJJsai/bLf /XYD0BnZJ2Ch332IwqA7PoBGo4OLSA3J0xwWvzqs9ZDP7B//X5TGWpwSAzz1VRYruNuEEp Wi3EUUglWkMOh4wqFo4hZTm5iVjJg1g= Date: Wed, 16 Feb 2022 19:02:58 +0100 From: Borislav Petkov To: Jue Wang Cc: "Luck, Tony" , x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] x86/mce: Add workaround for SKX/CLX/CPX spurious machine checks Message-ID: References: <20220208150945.266978-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 Wed, Feb 16, 2022 at 07:50:24AM -0800, Jue Wang wrote: > My slight reservation is that this suggests all use cases of "REP; > MOVS*" must take the _ASM_EXTABLE_ form, which is not possible; > considering "REP; MOVS*" can be exercised from any user space program. Well, we could try to decode the instructions around rIP when the #MC is raised and see what caused the MCE and perhaps pick apart which insn caused it, is it accessing behind the buffer boundaries, etc. > If there is a way to get all users of "REP; MOVS*" to use > copy_mc_enhanced_fast_string, this could work. I am not sure this is > possible. Yeah, no, this is for the copy to user direction only. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette