Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3972278ybc; Thu, 14 Nov 2019 18:32:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwe0VQ69kL5o07RnNoOvX+tS4OHAeXwuNC7pAHQ8lJlLRVl5wGSOJalR+/g8RdUJZ17F+7n X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr10418111eju.256.1573785141473; Thu, 14 Nov 2019 18:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573785141; cv=none; d=google.com; s=arc-20160816; b=cu2DDDphsROESu61V98xYV5r5pKMm0B+xScHbeC+ePKjtnY2C168sD55rTWLzPeQis QskxlIEWPbUCdjbdSKYh9THi7Pmf8wVTZH3KeXyEdcAQx39WIlQbNSSPYEjuGQ2KEZpQ JfaYJiee0viijtzRBF1iJ6oPVXi8ZwdySyEkVUeC7xkbyzK8LP3S3QvdOWWfMB6n+kKA B1vWNUcPVdDvSi+WR4lBADGddjZo4v98F18PUUVlPHWDRrv9yi1kxPegwCTT8SqfA/tq ghsKE9VT0aymksYk3xeIwb8+07N2LWNDA08Fd35pEY2NwzdgLsY8RJwJgCCCVvM4aoBA RNQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HcoD8IX3cg0Fia2+9Tg9F5Cj33xqxj4kW6ZQYC+RTMA=; b=Hj2cgW/h5zhb7yZa+fimZOoJtUHGiBoYDcYt5bEYPrsXoZpfQOt9OkpoMXMDCVnlpi MyKzdu0ZIP090pJjExPU3RMPJz3I72uC6hMy2XX+Sk7V23UU+9i/xAx+bvIVftmJlmy7 O2IcP+sNlFCNZi+wsYcx6fU54wBymXZ8tcD+LEG9L6hHqY5RQL3B9j8bSQdcYtRaq/3D IOoBWsLdS5nbJwByNVslYK1o9AU0Ugt5Lhf6TeYrkmOTbuW1zAw6aHck7kXSFaCkN3ER d6Q01ENXdn+En3CQmzZ/YHixqkiU2ixG/3F0v9jwYQ5l2MDUuKYwJsHRueIKyv0yN+DY AIxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a60si5604719edf.169.2019.11.14.18.31.56; Thu, 14 Nov 2019 18:32:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbfKOCaS (ORCPT + 99 others); Thu, 14 Nov 2019 21:30:18 -0500 Received: from mga09.intel.com ([134.134.136.24]:52067 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727075AbfKOCaS (ORCPT ); Thu, 14 Nov 2019 21:30:18 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 18:30:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,306,1569308400"; d="scan'208";a="199050528" Received: from guptapadev.jf.intel.com (HELO guptapadev.amr) ([10.7.198.56]) by orsmga008.jf.intel.com with ESMTP; 14 Nov 2019 18:30:17 -0800 Date: Thu, 14 Nov 2019 18:23:28 -0800 From: Pawan Gupta To: Jan Kiszka Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Ralf Ramsauer , "Gupta, Pawan Kumar" Subject: Re: [FYI PATCH 0/7] Mitigation for CVE-2018-12207 Message-ID: <20191115022328.GC18745@guptapadev.amr> References: <1573593697-25061-1-git-send-email-pbonzini@redhat.com> <23353382-53ea-8b20-7e30-763ef6df374c@siemens.com> <20191113232510.GB891@guptapadev.amr> <671b49ab-f65d-8b44-4da6-137d05cd1b9c@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <671b49ab-f65d-8b44-4da6-137d05cd1b9c@siemens.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 14, 2019 at 09:13:22AM +0100, Jan Kiszka wrote: > On 14.11.19 00:25, Pawan Gupta wrote: > > On Wed, Nov 13, 2019 at 09:23:30AM +0100, Paolo Bonzini wrote: > > > On 13/11/19 07:38, Jan Kiszka wrote: > > > > When reading MCE, error code 0150h, ie. SRAR, I was wondering if that > > > > couldn't simply be handled by the host. But I suppose the symptom of > > > > that erratum is not "just" regular recoverable MCE, rather > > > > sometimes/always an unrecoverable CPU state, despite the error code, right? > > > > > > The erratum documentation talks explicitly about hanging the system, but > > > it's not clear if it's just a result of the OS mishandling the MCE, or > > > something worse. So I don't know. :( Pawan, do you? > > > > As Dave mentioned in the other email its "something worse". > > > > Although this erratum results in a machine check with the same MCACOD > > signature as an SRAR error (0x150) the MCi_STATUS.PCC bit will be set to > > one. The Intel Software Developers manual says that PCC=1 errors are > > fatal and cannot be recovered. > > > > 15.10.4.1 Machine-Check Exception Handler for Error Recovery [1] > > > > [...] > > The PCC flag in each IA32_MCi_STATUS register indicates whether recovery > > from the error is possible for uncorrected errors (UC=1). If the PCC > > flag is set for enabled uncorrected errors (UC=1 and EN=1), recovery is > > not possible. > > > > And, as Dave observed, even that event is not delivered to software (maybe > just logged by firmware for post-reset analysis) but can or does cause a > machine lock-up, right? It can either cause a machine lock-up or a reset and the event delivery to the software is not guaranteed. Thanks, Pawan