From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 448DBC433B4 for ; Wed, 14 Apr 2021 13:10:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DE4AB611AD for ; Wed, 14 Apr 2021 13:10:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE4AB611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=alien8.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2CE856B00A2; Wed, 14 Apr 2021 09:10:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A4C96B00A3; Wed, 14 Apr 2021 09:10:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 16C976B00A4; Wed, 14 Apr 2021 09:10:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0226.hostedemail.com [216.40.44.226]) by kanga.kvack.org (Postfix) with ESMTP id EEDF36B00A2 for ; Wed, 14 Apr 2021 09:10:17 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B3D588249980 for ; Wed, 14 Apr 2021 13:10:17 +0000 (UTC) X-FDA: 78031006074.21.70FCF5D Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf19.hostedemail.com (Postfix) with ESMTP id A121790009DE for ; Wed, 14 Apr 2021 13:10:01 +0000 (UTC) Received: from zn.tnic (p200300ec2f0e8f0048923c048b418a85.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:8f00:4892:3c04:8b41:8a85]) (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 445FE1EC0258; Wed, 14 Apr 2021 15:10:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1618405816; 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=ub16e8IgsqCsaQskNeYCBWNu+OwjL3P+PDajfBScz2g=; b=eOUVItvGPZmx64t3BeuBZnhqA0RvaTr46W3ZuhcgzHBQSeGW31lRrhGfLCuaPi38qj78qm HnO90lsvBhSyQcqZxmLQ7btlvp47NL3Cp1gNaNCl9f14oplZ7BRp6xcu5k7DbIWCRe2Uic lfJXsfATPXGHVO7tKxFvCezuRt6Jpxo= Date: Wed, 14 Apr 2021 15:10:18 +0200 From: Borislav Petkov To: Jue Wang Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, luto@kernel.org, naoya.horiguchi@nec.com, tony.luck@intel.com, x86@kernel.org, yaoaili@kingsoft.com Subject: Re: [PATCH 3/4] mce/copyin: fix to not SIGBUS when copying from user hits poison Message-ID: <20210414131018.GG10709@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: A121790009DE X-Stat-Signature: zsp9ukeurs1jkkoe4kz8dfg8b7xbyxoh X-Rspamd-Server: rspam02 Received-SPF: none (alien8.de>: No applicable sender policy available) receiver=imf19; identity=mailfrom; envelope-from=""; helo=mail.skyhub.de; client-ip=5.9.137.197 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618405801-245835 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Apr 13, 2021 at 10:47:21PM -0700, Jue Wang wrote: > This path is when EPT #PF finds accesses to a hwpoisoned page and > sends SIGBUS to user space (KVM exits into user space) with the same > semantic as if regular #PF found access to a hwpoisoned page. > > The KVM_X86_SET_MCE ioctl actually injects a machine check into the guest. > > We are in process to launch a product with MCE recovery capability in > a KVM based virtualization product and plan to expand the scope of the > application of it in the near future. Any pointers to code or is this all non-public? Any text on what that product does with the MCEs? > The in-memory database and analytical domain are definitely using it. > A couple examples: > SAP HANA - as we've tested and planned to launch as a strategic > enterprise use case with MCE recovery capability in our product > SQL server - https://support.microsoft.com/en-us/help/2967651/inf-sql-server-may-display-memory-corruption-and-recovery-errors Aha, so they register callbacks for the processes to exec on a memory error. Good to know, thanks for those. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette