Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3B86367C for ; Wed, 16 Feb 2022 18:53:01 +0000 (UTC) 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 E80DC1EC0529; Wed, 16 Feb 2022 19:52:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645037576; 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=Tv2WpngyBiNluh/VuV6xl+yPEIiPp/meijatzd5qsZ0=; b=UuzZBvIGMXFHEr16Oh7C9uy60PmWEGkUg4CtM97vw5J7oF+OiwvkEyOritaYHm0SnyBmhv 7pJlRz8hVe0kEz3vTxMe0kUTb1xsyGFZvGBgxnKZUj5+b+5WVjGzrx4V3rjXBVnwrSGQVP BLMTmMU39TAzWVUOonk4lEGfkNWB8NI= Date: Wed, 16 Feb 2022 19:52:58 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: Jue Wang , "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> <9f402331d25c47b69349c8171bbd49c1@intel.com> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9f402331d25c47b69349c8171bbd49c1@intel.com> On Wed, Feb 16, 2022 at 06:41:58PM +0000, Luck, Tony wrote: > > 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. > > Is this a case of "perfect is the enemy of good enough"? Well, you guys sounded like this happens left and right... > It is a rare scenario (only a pain point for Jue because Google has > billions and billions of cores running this code). You need: > > 1) An uncorrected error > 2) That error must be in first cache line of a page > 3) Kernel must execute page_copy from the page immediately before that page > > When all three happen, kernel crashes because we don't > have a recover path from kernel page_copy You should've lead with that - this is basically one of those "under a complex set of conditions" things. Anything against me adding them to the commit message? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette