Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2864048ybc; Mon, 18 Nov 2019 05:59:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzkX438yEZumsXeQOkQ/sNhFp13lh6GNMcGerWFGpN+56eGT8S0kVIQC6yt8BZ9SL9g0gRm X-Received: by 2002:a17:906:4409:: with SMTP id x9mr20327410ejo.236.1574085584794; Mon, 18 Nov 2019 05:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574085584; cv=none; d=google.com; s=arc-20160816; b=Oop4locSgzUsuGLfMZGFn+zfE6WlcSrOWEG5p2dR8IZ0XkckY6SDu0w8CofUC7gMxG aa7n9kswYqWjgZGGn3cPcnI4a8URfj2PENXDRLbEOeQPG2a3at/47sKXpcZ987dfdbMY KwwREpw8QociPizGNRIGgnpVm5c0PJtWeh3aQHZxvUQDLR8QxD3gV2DztZ0MAw+ItrO9 i+P7J+vn3IyT526BVNtptnh47d22SkkYvgc7gLFjQRxraMqYM7GucS7/KyFS2ZhakDMK JAmuVT2VeXo20M6LsVkvA6xSSUCeWkBZLMnunQ9oO42RdXRZVAVsUypIKj7EMurDQYCb /xag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=BP0zP3OW9XzDUFIK80nnJmyfc1wDEkpFtTQ47Ux99Uw=; b=EDQNWhYWfxtHGJhn30C4LZh7mSw0orBaoYvUu9qKarLDq5KsAaJQOPRsaLVND0couf 7BA2lZ9EeXEBe3OfATeTstDyg2tP9ySOoffWA07AfgFpLqQ/BhXE2dc6f29RBdqS9DD0 PmkjSAEFJDEkIyqgaW836Ir7DPMwJXWe1DXg8IycgCXv/0yNLeqqPR5bYcG6wX1+iEss PdqcIYQJVKYRGvn9z8A4F5VMdQ/1LCMpE0Y4xXT+kwxEqO94bzeBCoMMdaziwH+nuaYU W58XTfxEH6SlxBMlpF3e3kfUMMEZvntsNdsKeBt6iUsfPhD4KrMPXVPbjP0YFYu8gwEd kHdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oth-regensburg.de header.s=mta01-20160622 header.b=n73Lu6tf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oth-regensburg.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si11887068edy.116.2019.11.18.05.59.21; Mon, 18 Nov 2019 05:59:44 -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; dkim=pass header.i=@oth-regensburg.de header.s=mta01-20160622 header.b=n73Lu6tf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oth-regensburg.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbfKRN6S (ORCPT + 99 others); Mon, 18 Nov 2019 08:58:18 -0500 Received: from mta01.hs-regensburg.de ([194.95.104.11]:47026 "EHLO mta01.hs-regensburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbfKRN6R (ORCPT ); Mon, 18 Nov 2019 08:58:17 -0500 Received: from E16S02.hs-regensburg.de (e16s02.hs-regensburg.de [IPv6:2001:638:a01:8013::92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "E16S02", Issuer "E16S02" (not verified)) by mta01.hs-regensburg.de (Postfix) with ESMTPS id 47GrBv0K35zy7Q; Mon, 18 Nov 2019 14:58:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oth-regensburg.de; s=mta01-20160622; t=1574085495; bh=BP0zP3OW9XzDUFIK80nnJmyfc1wDEkpFtTQ47Ux99Uw=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=n73Lu6tfJbNvCSwc5NJYlUBDib51gI9FZpyWpeOXTWDx2Bltvhsu29mz52WNS+8z9 TAME7t92l8CVEqTBzKHvzSm+8h4ZXXZNyeR+OJm3KbV4/Oyna41pOvdQiP3mJ6TbLu QKgZCcMqrXYPMFFF29hQGRBLllRfmkGa5KzvmAz7kUj6V878MWH3w/a1knTKEfxGfO Kx3CAxd5CI3pzz9n2uHaycamAekqx67Y8vaYaJ4jttNbPW19J4J88otNIHwrgpavh7 e18hPdCuL9VXp1+XbaocdPCLHNvOeogUMjaTPgtlP8c0Bos/SHOoZZGYJ+n3f4CkF/ Sl4fkh5/+q0iQ== Received: from [192.168.178.10] (194.95.106.138) by E16S02.hs-regensburg.de (2001:638:a01:8013::92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Mon, 18 Nov 2019 14:58:14 +0100 Subject: Re: [FYI PATCH 0/7] Mitigation for CVE-2018-12207 To: Jan Kiszka , Dave Hansen , Paolo Bonzini , , CC: "Gupta, Pawan Kumar" References: <1573593697-25061-1-git-send-email-pbonzini@redhat.com> <23353382-53ea-8b20-7e30-763ef6df374c@siemens.com> From: Ralf Ramsauer Autocrypt: addr=ralf.ramsauer@oth-regensburg.de; keydata= mQINBFFbFOQBEACuc/5RqBxcHJiMjuQo4cUit/whIFgjcorx77z/srj/Cn5mKnWMLgmhszFC nzrgLw+1KewrJ/+qcrJKmX3Dw58VaktfjV0QUEnPmQXND3PUIE4Bl01GZ4Z/NKtaavdTWPTH wKzjbDucCzYKMBEYT3AMQRwQLNBF7VboV1T2fy+J505P9LP649c/Ept5vAsFH/3k2YpVVYcf Xp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U/ JJgxnS+spAh+33uqWLP00CmOT06WNwSY6k3WSYfA5EvsLCsrrmO8NOIUjMC8pLqiEFgXgw6M CANKNJN23Aapo+rPF+kHvnMR/YFrgapJn3VGrG5lELovqGyqc7afIgiiEMSUY1zcJ9VlS0Z4 OvbTjvPYy4tb8aGgMQ6cmsqiaIpHFZ2UJtk4R5asCmwIkbVWQLxvNlX9J5bXr/PHU0UlYJYB mp34WgKNwgwyso67v0GZDKJyaBMvk7alZEOKGWcMKEE6Pr3ByURudR8w Message-ID: <60b2a488-74b8-897c-4b25-e228d3fe7d55@oth-regensburg.de> Date: Mon, 18 Nov 2019 14:58:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [194.95.106.138] X-ClientProxiedBy: E16S04.hs-regensburg.de (2001:638:a01:8013::94) To E16S02.hs-regensburg.de (2001:638:a01:8013::92) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On 11/14/19 9:09 AM, Jan Kiszka wrote: > On 13.11.19 22:24, Dave Hansen wrote: >> On 11/13/19 12:23 AM, 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? >> >> It's "something worse". >> >> I built a kernel module reproducer for this a long time ago.  The >> symptom I observed was the whole system hanging hard, requiring me to go >> hit the power button.  The MCE software machinery was not involved at >> all from what I could tell. > > Thanks for clarifying this - too bad. > >> >> About creating a unit test, I'd be personally happy to share my >> reproducer, but I built it before this issue was root-caused.  There are I'd appreciate if you could share your code. >> actually quite a few underlying variants and a good unit test would make >> sure to exercise all of them.  My reproducer probably only exercised a >> single case. Still, it triggers the issue, that's enough to compare it to my reproducer. >> > > Would be interesting to see this. Ralf and tried something quickly, but > there seems to be a detail missing or wrong. Yep, we still can't reproduce the issue on an affected CPU, and don't know what we miss. Thanks, Ralf > > Jan >