[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Consistent LBR/TSX vmentry failure (0x80000022) calling domain_crash() in vmx.c:3324


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Elliot Killick <elliotkillick@xxxxxxxxxxx>
  • Date: Wed, 20 May 2020 14:59:33 +0000
  • Arc-authentication-results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=elliotkillick@xxxxxxxxxxx; dmarc=pass header.from=<elliotkillick@xxxxxxxxxxx> header.from=<elliotkillick@xxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1589986779; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cw3sbluNfCHHl1K+t3LIMvsgkm5XgmIsw435d5vASq0=; b=lnbO5MAseOwSBJE3NflNvVACPew4nNZEBgDSzr2Qm7de37Mo/R3HxLbUZQplPKU8Y6NEU5igABE+gToalTuelEgQtfM5GTP412GVJWoLALlYmys622NYORGnyLadyOknFeCYfRuLTblenuFm3SCiqpJW9WnLNfKFu6WtSdPNhKs=
  • Arc-seal: i=1; a=rsa-sha256; t=1589986779; cv=none; d=zohomail.eu; s=zohoarc; b=hsuZSaxiZNrWx4SZfuji5fG9mpoim99fDkem1jGRnxduetF9Oo5F6GhhBb1Cjc5di167pKl7LbQMu5B3zK33BRMnCYR49Q3Lgq/Od8r3B8TI/reJ+e4XupDTfRNP4FckxPsBbGvuoK6x5D07n5dVHEfIvBB0FcX+NfRB+Rj9h+Y=
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 20 May 2020 14:59:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2020-05-20 12:31, Andrew Cooper wrote:
> On 20/05/2020 12:46, Elliot Killick wrote:
>> On 2020-05-20 11:27, Andrew Cooper wrote:
>>> On 20/05/2020 12:20, Elliot Killick wrote:
>>>> On 2020-05-20 11:10, Andrew Cooper wrote:
>>>>> On 20/05/2020 11:33, Elliot Killick wrote:
>>>>>> Hello,
>>>>>>
>>>>>> Xen is crashing Windows 10 (64-bit) VMs consistently whenever IDA
>>>>>> Debugger
>>>>>> (https://www.hex-rays.com/products/ida/support/download_freeware/)
>>>>>> launches the Local Windows Debugger. The crash occurs when trying to
>>>>>> launch the debugger against any executable (e.g. calc.exe) right at the
>>>>>> time IDA says it is "Moving segment from <X address> to <Y address>".
>>>>>>
>>>>>> Tested on Windows 7, 8 and Linux as well but the bug is only triggered
>>>>>> on Windows 10. Happens whether or not IDA is running with administrator
>>>>>> privileges. No drivers/VM tools installed. Windows has a bug check code
>>>>>> of zero, leaves no memory dump, nothing in the logs from QEMU in Dom0,
>>>>>> the domain just powers off immediately leaving a record of the incident
>>>>>> in the hypervisor.log. So, it does appear to be a Xen issue. Modern
>>>>>> Intel CPU.
>>>>>>
>>>>>> Does anyone have some ideas on what may be causing this?
>>>>> What exact CPU do you have?  This looks exactly like the
>>>>> Haswell/Broadwell TSX errata.
>>>>>
>>>>> ~Andrew
>>>>>
>>>> i5-4590
>>> How about the output of `head /proc/cpuinfo` in dom0?
>>>
>>> ~Andrew
>>>
>> processor    : 0
>> vendor_id    : GenuineIntel
>> cpu family   : 6
>> model                : 60
>> model name   : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
>> stepping     : 3
>> microcode    : 0x27
>> cpu MHz              : 3299.926
>> cache size   : 6144 KB
>> physical id  : 0
> 
> Ok, so the errata is one of HSM182/HSD172.
> 
> Xen has workaround for all of these.  However, I also see:
> 
>> (XEN) ----[ Xen-4.8.5-15.fc25  x86_64  debug=n   Not tainted ]----
> 
> which is an obsolete version of Xen these days.  It looks like these
> issues were first fixed in Xen 4.9, but you should upgrade to something
> rather newer.
> 
> ~Andrew
> 

Ah, so this is originally a CPU bug which Xen has had to patch over.

As for the Xen version, that's controlled by the "distribution" of Xen I
run which is Qubes. To remedy this I could run the testing stream of
Qubes which currently provides the latest version of Xen (4.13) but that
could bring its own set of problems.

Thank you for the help, Andrew!




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.