Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp347072pxb; Wed, 14 Apr 2021 17:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgsc07YZNgoH+n+/Z2G2WYqqk6TGVnXzeSQE25M+Rt/F6wmM3ptIjK7r1ugZRnDsNSbdoV X-Received: by 2002:a17:902:e88e:b029:eb:6dbb:4a7 with SMTP id w14-20020a170902e88eb02900eb6dbb04a7mr930245plg.61.1618446299460; Wed, 14 Apr 2021 17:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446299; cv=none; d=google.com; s=arc-20160816; b=PfyBbKmEMf4KKjAYuKrM5Su790xUrG1cf1tFQc3g5//yAy27TDA9ggnCEzyiAvxRaP 7FQ6zRE+AYSGJGtEagcaCoeWgCUinucDp5/zlZQ8iIGQFL55PlDWmTBzMvgIRmT1ZBUy m971uyo23R1ptM6NAXYDRw5oemNJK5+kj+uKpY5BkzY2Ypjewkz5qokWXEBlX4BUqSvd 6NQRoJcsYuG8OEn/EnNRx5NPkFihlNp6M+K3sog47aO67lXYkCR/A2vuuaJE/5Dt5KXq SxiLXT1DIZVcmOcJDqXBuDLgC0Pc0gDvTjqv3Zq99ncHGBvOgschzrZQaEgw7ecrRX3K c30Q== 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=ub16e8IgsqCsaQskNeYCBWNu+OwjL3P+PDajfBScz2g=; b=tZdzWJ4BUBA1YcF6rkLIrGlmNabuKsjSw+H2jT99rUgew5v8ZwxPWCIihtk6InJ1oH XahCHmOCjtfJxsl/hnyc9JanFGAmE9ZXJlZ2teGrF1UnE4hwOY3VpF3YP1bIsOm59ZIv /nac+c10U1NmzBkVXd6XtDF27RZ4zCR1yQk/jZwR4cLeR8snDbIDjmj9/ob/K2YR9o2a rp1lLEED62oXG+t9o3Se9l1llE4I0cBnya+ae/4gG92rvBh9AKLH2kBIF7eYTP0j/hgs d7nF14J7eRMU3CvzfO0gb7yQk3mFjPzbsocEXbZf5736w0SOMgvXu1kU3dCoIq0JAXne uibQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=eOUVItvG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si1393859plx.104.2021.04.14.17.24.47; Wed, 14 Apr 2021 17:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=eOUVItvG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233702AbhDNNLa (ORCPT + 99 others); Wed, 14 Apr 2021 09:11:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:48700 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351180AbhDNNKj (ORCPT ); Wed, 14 Apr 2021 09:10:39 -0400 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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