Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17633606A320 for ; Mon, 30 Nov 2026 12:31:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=Bjp+ASKI Received: from list by lists.xenproject.org with outflank-mailman.1507608.1700647 (Exim 4.92) (envelope-from ) id 1xY0Wu-00083o-Rf; Mon, 30 Nov 2026 12:30:48 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1507608.1700647; Mon, 30 Nov 2026 12:30:48 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xY0Wu-00083h-O9; Mon, 30 Nov 2026 12:30:48 +0000 Received: by outflank-mailman (input) for mailman id 1507608; Mon, 30 Nov 2026 12:30:48 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xY0Wu-00083b-3F for xen-devel@lists.xen.org; Mon, 30 Nov 2026 12:30:48 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xY0Wt-00ABNu-8b for xen-devel@lists.xen.org; Mon, 30 Nov 2026 13:30:47 +0100 Received: from [10.42.69.9] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b0d6c76-e002-0a2a0a5209dd-0a2a4509cfb0-4 for ; Mon, 30 Nov 2026 13:30:47 +0100 Received: from [209.85.128.54] (helo=mail-wm1-f54.google.com) by tlsNG-bad1c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b0d6c76-be1a-0a2a45090019-d1558036d4ae-3 for ; Mon, 30 Nov 2026 13:30:47 +0100 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4b467581b98so97288065e9.0 for ; Mon, 30 Nov 2026 04:30:47 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b216esm993887095e9.12.2026.11.30.04.30.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 04:30:45 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:Autocrypt:From:Content-Language:References:Cc:To:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1796041846; x=1796646646; darn=lists.xen.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7EQ5iXwwFWJyg2Eim+jHchnOwdDFWAhLfjeb2qZ+l2A=; b=Bjp+ASKItjHJAilT9kMAc7ouKKRn2SyAEvoI01ZfiMzjxFa0HW72F5PJkaUgVeW+bL h/idlBlV+0KsyYSCmWWUUyMd7AqTeLyAOshwwwmu09/3RjOwgMQiRVhYPLrlEJzkh/Nb NJBdMBukysLW2UlbVNrsV85dvW2LJhH/G4keAZc8TzPlXgrHPlXrFAWCicVdODapRliv 9Y1hWCnZuQXx/pmxrDHHpFFLjIHCq8IlLE5BDSd32vNdKwJDOuwxR/l6x/WZWz/h7ets sie3NFmEKKia6JLv0Hl0xLTQzhYJfecH1K7/9AULoidz/IhEPJTFRCKQW5KTf+rmB7o1 baWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796041846; x=1796646646; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7EQ5iXwwFWJyg2Eim+jHchnOwdDFWAhLfjeb2qZ+l2A=; b=hWrDNJ3gm7w2E3i/VkgKDw9FtBmQmOsoOQqC6Xyr/xlGr/9lCGjuDN4XN6dTnEpn23 JLkWhRYVNdwaFCM99lEYST8oO+W4VQ5rL59O19YO5FthhEFMrBMVqbSskM/4Y9IdmmER SHKqGzRsigmTu/iH3BKsFB3dU3skbYFgTst0vQbrSh5SnYzlCrincGse2GWvy94e/2eJ 6K5c1kEhZtvAFVEN6o1XVC8okqfyRVEJQx8rFduf5etOSxa2HTVawFgjGCpegpWj62Iw mQMNhUjpy4sAUywfJTUe2dnkWuBZQPmZea582TikX9yaOHDR0WC4pq3xcPYMmsZTHZt+ MdVg== X-Forwarded-Encrypted: i=1; AL+hErHF2f6pZF7o3n12ay4ZYq1IKmEZZqrsD0QCY5sSmNfYX7cuALVr8kwaxKieJpixuVRrXohLJXaJaa0=@lists.xen.org X-Gm-Message-State: APuU4Z9uIBs796St8CqxORJ8K12iBxIJxuLvRv0hcDO6FEK0jPKk/uTC hZxMUYUvfCxMtc+djqv9gVCG8kd/qYK8zKnHCFUVhdTbbujPlgBHtozTZUBip9C77w== X-Gm-Gg: AZFdTZe5gJj2M+Ww4ZKhlUTFS0Lzb213VnjNchsfYrp2l2nDT1Fe0VTJ6D90+BW0YBa N48+gMyJY3/lANCJphIgtGLqZy8YZs76UjpdcUggHZ1zviOcjCLvq+vqsRdbxXlMlpENitleuOW JMO8thM2gIy0HwhC1oYNFKxsJts3ukNqYPRxptXfod+Eo6BSRZpTZwifLmVDHvgJ2dzJBDT5lLs 42bHOgqo88LDfWlJ5OQDltRaTSxQxHl4Y6nBIt1LUy1V6DVArkXhQw5tFeK34Ri1Xbc+ltTqege 1JnnPq5ulFpoA3A03rgxrF82YhaiZmuIc+xnJ4HI0sXg2HMAcUK2+pXUqRYCH69WV1j960qllM5 cK7/xIS86JFCACHpSNZWmKcUkZOF5nPh4PEfIrFq9sv8IE6dM6PvmDWbgk+gRVyuSfGXqR2qHp8 3p+KZbH4x0aCSOMvbJ6/yQkHfohR4TzaaWqskmLGRBVLXzVXtvoRyz40vp5h/16ZQOATV1BcXMG mbS1nB8WCSgKqgpyTA6Fyzi/TXVckxV+r0XrAEdsm8vikg/uBiDmejo3BJXwhC+lio8pBCZwKz5 C9s0H1c+85qWgk6s12jrfW0EGcdx5FOsp0MltPc3fDbauQzQAyf3Vzi5nhoptYtCUDX4l1NIs+M nTO/SY7Wp9+s7Vbp2UDjosbRSnP1biyMayyKCuIQ= X-Received: by 2002:a05:600c:3e0e:b0:4bb:6a5a:783d with SMTP id 5b1f17b1804b1-4bb88929c63mr601620475e9.18.1796041846327; Mon, 30 Nov 2026 04:30:46 -0800 (PST) Message-ID: <8bc97eec-8ae3-4d7f-b603-b7ed43f12960@suse.com> Date: Mon, 30 Nov 2026 13:30:45 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] Xen BUG at mce_amd.c:100 (mc_ec2type) on Zen 3; host left wedged, no reboot To: Peter Deggendorfer Cc: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie , Jason Andryuk , Soham Dandapat , Andrew Cooper , xen-devel@lists.xen.org References: <8138ed44-727f-45bc-9673-9684e922595b@cortex-media.de> <2a44faa9-9a9f-4681-84d6-8267acbec9b0@cortex-media.de> <0d3f95a2-6eb7-47d1-9910-bee2a048af22@suse.com> <044602ca-3665-47c9-b250-b1f19cb0b2bc@cortex-media.de> <8d1b403f-bdd5-42b6-93a9-b6fdd8494428@cortex-media.de> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <8d1b403f-bdd5-42b6-93a9-b6fdd8494428@cortex-media.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-bad1c0/1796041847-BDEC6034-7891CA6E/0/0 X-purgate-type: clean X-purgate-size: 13938 X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 30.11.2026 13:09, Peter Deggendorfer wrote: > Am 30.11.2026 um 13:00 schrieb Peter Deggendorfer: >> Am 16.11.2026 um 16:41 schrieb Jan Beulich: >>> On 13.11.2026 08:08, Peter Deggendorfer wrote: >>>> Am 11.11.2026 um 08:41 schrieb Jan Beulich: >>>>> On 10.11.2026 10:59, Peter Deggendorfer wrote: >>>>>> Am 02.11.2026 um 13:54 schrieb Jan Beulich: >>>>>>> On 31.10.2026 14:44, Peter Deggendorfer wrote: >>>>>>>> As requested, I added a printk to mcheck_mca_logout(), and the >>>>>>>> BUG() in >>>>>>>> mc_ec2type() is still replaced. These are the only changes >>>>>>>> against the >>>>>>>> Debian package: >>>>>>>> >>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce_amd.c >>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce_amd.c >>>>>>>> @@ -97,7 +97,7 @@ >>>>>>>>          if ( errorcode & MC_EC_TLB_TYPE ) >>>>>>>>              return MC_EC_TLB_TYPE; >>>>>>>>          /* Unreached */ >>>>>>>> -    BUG(); >>>>>>>> +    printk(XENLOG_WARNING "MCE: unknown AMD error code %#x\n", >>>>>>>> errorcode); >>>>>>>>          return 0; >>>>>>>>      } >>>>>>>> >>>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.c >>>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.c >>>>>>>> @@ -304,3 +304,6 @@ >>>>>>>>              if ( !(status & MCi_STATUS_VAL) ) >>>>>>>>                  continue; /* this bank has no valid telemetry */ >>>>>>>> >>>>>>>> +        if ( who == MCA_POLLER ) >>>>>>>> +            printk(XENLOG_WARNING "MCE: CPU%u bank %d status >>>>>>>> %#"PRIx64"\n", >>>>>>>> +                   smp_processor_id(), i, status); >>>>>>>> >>>>>>>> >>>>>>>> We now have some data points: >>>>>>>> >>>>>>>> (XEN) [2026-10-27 13:42:10.588] MCE: CPU2 bank 23 status >>>>>>>> 0x830824448b48ffff >>>>>>>> (XEN) [2026-10-27 18:19:55.593] MCE: CPU2 bank 23 status >>>>>>>> 0xffffffffffffffff >>>>>>>> (XEN) [2026-10-27 22:11:10.596] MCE: CPU2 bank 17 status >>>>>>>> 0xffff832036a40048 >>>>>>>> (XEN) [2026-10-27 22:11:10.596] MCE: unknown AMD error code 0x48 >>>>>>>> (XEN) [2026-10-28 00:33:55.597] MCE: CPU2 bank 10 status >>>>>>>> 0xffff82d04022a8af >>>>>>>> (XEN) [2026-10-28 05:26:40.599] MCE: CPU2 bank 17 status >>>>>>>> 0xffff82d0402408e3 >>>>>>>> (XEN) [2026-10-29 23:17:25.618] MCE: CPU2 bank 17 status >>>>>>>> 0xffff82d04022a8af >>>>>>>> (XEN) [2026-10-30 03:25:10.622] MCE: CPU2 bank 23 status >>>>>>>> 0xffffffffffffffff >>>>>>>> (XEN) [2026-10-30 10:05:55.625] MCE: CPU2 bank 10 status >>>>>>>> 0xffffffffffffffff >>>>>>>> (XEN) [2026-10-31 00:58:10.625] MCE: CPU2 bank 17 status >>>>>>>> 0xffff888100b872e8 >>>>>>>> (XEN) [2026-10-31 00:58:10.625] MCE: unknown AMD error code 0x72e8 >>>>>>>> (XEN) [2026-10-31 04:17:55.632] MCE: CPU2 bank 23 status >>>>>>>> 0xffff831f00006000 >>>>>>>> (XEN) [2026-10-31 04:17:55.632] MCE: unknown AMD error code 0x6000 >>>>>>>> >>>>>>>> Only 3 of these would have hit the BUG(); the others have UC >>>>>>>> clear or >>>>>>>> an error code that happens to contain a type bit. >>>>>>>> >>>>>>>> The values look like pointers rather than status registers: >>>>>>>> >>>>>>>>       ffff82d040......  Xen text/data -- the prefix of every RIP >>>>>>>> in my >>>>>>>>                         earlier panic dumps >>>>>>>>       ffff831f........ / ffff8320........  same range as rsp in >>>>>>>> those >>>>>>>>                         dumps (e.g. ffff831fe6b3fc38, >>>>>>>> ffff832036a87c38) >>>>>>>>       ffff888100b872e8  dom0 Linux range? >>>>>>> Plus the very first of the entries above is a pointer value >>>>>>> rotated by 16 bits. >>>>>>> >>>>>>>> Two things that make me doubt these are real status values at all: >>>>>>>> 0xffff82d04022a8af appears twice, 47 hours apart, for two different >>>>>>>> banks (10 and 17). And all timestamps are congruent mod 15 seconds, >>>>>>>> i.e. this is the poller hitting it on a small fraction of passes. >>>>>>> There's no question that the values are garbage. We just need to >>>>>>> find out why >>>>>>> that is. As we have to explore all (remote) possibilities, first >>>>>>> of all - you >>>>>>> don't play any games involving the XEN_MC_msrinject hypercall, do >>>>>>> you? For >>>>>>> the immediate purpose here, and since ... >>>>>> No, I never used XEN_MC_msrinject hypercall on this host; it's a >>>>>> plain Debian trixie installation. >>>>>> >>>>>> >>>>>>>> I don't know where the read goes wrong. >>>>>>> ... I can't make sense of the behavior either, I'm inclined to >>>>>>> suggest that >>>>>>> you add this hunk to your debugging patch: >>>>>>> >>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.h >>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.h >>>>>>> @@ -79,7 +79,6 @@ >>>>>>>     static inline uint64_t mca_rdmsr(unsigned int msr) >>>>>>>     { >>>>>>>         uint64_t val; >>>>>>> -    if (intpose_lookup(smp_processor_id(), msr, &val) == NULL) >>>>>>>             rdmsrl(msr, val); >>>>>>>         return val; >>>>>>>     } >>>>> Can you please replace this by >>>>> >>>>> --- a/xen/arch/x86/cpu/mcheck/mce.h >>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.h >>>>> @@ -79,8 +79,18 @@ extern bool intpose_inval(unsigned int c >>>>>    static inline uint64_t mca_rdmsr(unsigned int msr) >>>>>    { >>>>>        uint64_t val; >>>>> -    if (intpose_lookup(smp_processor_id(), msr, &val) == NULL) >>>>> -        rdmsrl(msr, val); >>>>> + >>>>> +    if ( !intpose_lookup(smp_processor_id(), msr, &val) ) >>>>> +    { >>>>> +        unsigned long lo = 0x555555555555UL, hi = 0xaaaaaaaaU; >>>>> + >>>>> +        asm volatile ( "rdmsr" >>>>> +                       : "+a" (lo), "+d" (hi) >>>>> +                       : "c" (msr) ); >>>>> + >>>>> +        val = (hi << 32) | lo; >>>>> +    } >>>>> + >>>>>        return val; >>>>>    } >>>> (XEN) [2026-11-12 17:31:32.982] MCE: CPU2 bank 10 status >>>> 0xffff82d0402409a3 >>>> (XEN) [2026-11-12 17:31:32.982] MCE: CPU2 bank 10 -> 0 >>>> (XEN) [2026-11-12 20:37:02.988] MCE: CPU2 bank 23 status >>>> 0xffff82d0402409a3 >>>> (XEN) [2026-11-12 20:37:02.988] MCE: CPU2 bank 23 -> 0 >>>> (XEN) [2026-11-13 05:18:02.990] MCE: CPU2 bank 10 status >>>> 0xffff8315c0010000 >>>> (XEN) [2026-11-13 05:18:02.990] MCE: CPU2 bank 10 -> 0 >>>> >>>> The sentinel values never show up; RAX/RDX do get overwritten, just not >>>> with the MSR contents. Against this build's xen-syms.map, >>>> 0xffff82d0402409a3 is softirq.c#__do_softirq+0x73. >>> We've discussed this again among maintainers, and despite ... >>> >>>>>>>> /dev/mcelog records match the log lines one-to-one (same banks, >>>>>>>> same order, all CPU 2), but carry status zero in every case. The >>>>>>>> record's >>>>>>>> status comes from the second read in mca_init_bank(), before >>>>>>>> mcabank_clear(), so that second read returned 0. >>>>>>> Based on this observation, another thing you may want to try is >>>>>>> extend the >>>>>>> existing hunk you have to >>>>>>> >>>>>>> --- a/xen/arch/x86/cpu/mcheck/mce.c >>>>>>> +++ b/xen/arch/x86/cpu/mcheck/mce.c >>>>>>> @@ -304,6 +304,17 @@ >>>>>>>              if ( !(status & MCi_STATUS_VAL) ) >>>>>>>                  continue; /* this bank has no valid telemetry */ >>>>>>> >>>>>>> +        if ( who == MCA_POLLER ) >>>>>>> +        { >>>>>>> +            printk("MCE: CPU%u bank %d status %#"PRIx64"\n", >>>>>>> +                   smp_processor_id(), i, status); >>>>>>> +            status = mca_rdmsr(MSR_IA32_MCx_STATUS(i)); >>>>>>> +            printk("MCE: CPU%u bank %d -> %#"PRIx64"\n", >>>>>>> +                   smp_processor_id(), i, status); >>>>>>> +            if ( !(status & MCi_STATUS_VAL) ) >>>>>>> +                continue; >>>>>>> +        } >>>>>>> + >>>>>>>             /* >>>>>>>              * For Intel Latest CPU CMCI/MCE Handler caller, we >>>>>>> need to >>>>>>>              * decide whether to clear bank by MCi_STATUS bit >>>>>>> value such as >>>>>>> >>>>>> Since 2026-11-03 the host runs Xen 4.20.5-pre (Debian >>>>>> 4.20.4+39-gf1e1321c87-0+deb13u1) with your two debugging hunks >>>>>> (intpose_lookup() removed from mca_rdmsr(), re-read in the poller) >>>>>> and >>>>>> your "x86/MCE: reduce redundant code" series (both patches). In 7 >>>>>> days: >>>>>> >>>>>> >>>>>> (XEN) [2026-11-03 13:54:50.378] MCE: CPU2 bank 25 status >>>>>> 0x8000001fe67e1163 >>>>>> (XEN) [2026-11-03 13:54:50.378] MCE: CPU2 bank 25 -> 0 >>>>>> (XEN) [2026-11-03 14:52:20.360] MCE: CPU2 bank 7 status >>>>>> 0x8000000080000000 >>>>>> (XEN) [2026-11-03 14:52:20.360] MCE: CPU2 bank 7 -> 0 >>>>>> (XEN) [2026-11-03 20:01:20.264] MCE: CPU2 bank 25 status >>>>>> 0xffff82d04022a8ef >>>>>> (XEN) [2026-11-03 20:01:20.264] MCE: CPU2 bank 25 -> 0 >>>>>> (XEN) [2026-11-05 14:31:19.276] MCE: CPU2 bank 25 status >>>>>> 0x8000001fe67e1163 >>>>>> (XEN) [2026-11-05 14:31:19.276] MCE: CPU2 bank 25 -> 0 >>>>>> (XEN) [2026-11-06 11:27:18.812] MCE: CPU2 bank 24 status >>>>>> 0xffff832036a754c0 >>>>>> (XEN) [2026-11-06 11:27:18.812] MCE: CPU2 bank 24 -> 0 >>>>>> (XEN) [2026-11-06 18:26:48.671] MCE: CPU2 bank 7 status >>>>>> 0xffff831fe6b154c0 >>>>>> (XEN) [2026-11-06 18:26:48.671] MCE: CPU2 bank 7 -> 0 >>>>>> (XEN) [2026-11-07 06:31:48.345] MCE: CPU2 bank 16 status >>>>>> 0xffff8313f11d2010 >>>>>> (XEN) [2026-11-07 06:31:48.345] MCE: CPU2 bank 16 -> 0 >>>>>> (XEN) [2026-11-07 09:41:48.243] MCE: CPU2 bank 16 status >>>>>> 0xffffffffffffffff >>>>>> (XEN) [2026-11-07 09:41:48.243] MCE: CPU2 bank 16 -> 0 >>>>>> (XEN) [2026-11-07 21:32:17.875] MCE: CPU2 bank 7 status >>>>>> 0xffff83203a5ea2d0 >>>>>> (XEN) [2026-11-07 21:32:17.875] MCE: CPU2 bank 7 -> 0 >>>>>> (XEN) [2026-11-08 06:25:47.633] MCE: CPU2 bank 16 status >>>>>> 0xffffffffffffffff >>>>>> (XEN) [2026-11-08 06:25:47.633] MCE: CPU2 bank 16 -> 0 >>>>>> (XEN) [2026-11-08 15:11:17.390] MCE: CPU2 bank 16 status >>>>>> 0xffff82d040588f80 >>>>>> (XEN) [2026-11-08 15:11:17.390] MCE: CPU2 bank 16 -> 0 >>>>>> (XEN) [2026-11-09 07:29:46.980] MCE: CPU2 bank 16 status >>>>>> 0xffffffffffffffff >>>>>> (XEN) [2026-11-09 07:29:46.980] MCE: CPU2 bank 16 -> 0 >>>>>> (XEN) [2026-11-09 10:49:46.880] MCE: CPU2 bank 7 status >>>>>> 0xffffffffffffffff >>>>>> (XEN) [2026-11-09 10:49:46.880] MCE: CPU2 bank 7 -> 0 >>>>>> (XEN) [2026-11-09 13:09:16.822] MCE: CPU2 bank 7 status >>>>>> 0xffffffffffffffff >>>>>> (XEN) [2026-11-09 13:09:16.822] MCE: CPU2 bank 7 -> 0 >>>>> ... this it almost looks as if the first RDMSR is "skipped" >>>>> altogether. The >>>>> changed debugging hunk might further confirm that, at which point I >>>>> think >>>>> we need to assume that there is some issue with the hardware here >>>>> (which is >>>>> already suggested by all instances being confined to CPU2). >>>> So the first RDMSR isn't being skipped after all. >>>> >>>> Still puzzles me that the full hardware replacement in October changed >>>> nothing, if this is CPU-specific. >>> ... this being pretty much inexplicable (albeit aiui it's still only >>> a single >>> system where you observe this), we don't really see what else we can >>> do on >>> the software side. You may now want to talk to AMD. >>> >>> One further thought was raised for the software side, though: Did you >>> ever >>> run plain Linux (under comparable load) on this hardware? If not, >>> could you >>> maybe try to, to see whether similar artifacts appear there? >> >> >> Thank you, Jan -- and thanks to the other maintainers for discussing >> this. I really appreciate the time you've put into looking at it. >> >> Two updates: >> >> We have now upgraded a second host to 4.20 and see exactly the same >> behaviour there: garbage values on the first read, 0 on the re-read, >> CPU 2. So it is no longer a single system. >> >> While searching around, I found several reports that look closely >> related, all on Zen 3: >> >> https://forum.proxmox.com/threads/184025/ >>   Ryzen 9 5950X, same cpuid (0x00a20f12), same mcgcap (0x11c), >>   status values such as 0xffffffffffffffff and 0xffffffff980d9d10, >>   with the kernel reporting "Bank 27 is reserved" / "Bank 18 is >>   reserved". >> >> https://github.com/8do-abehn/lab/issues/435 >>   Three Ryzen 9 5900X hosts. Five events on five different banks, all >>   reported as reserved, four of them carrying the identical status >>   value 0xffffffff89c0b000, with Error Addr, IPID and Syndrome all >>   zero. >> >> That last one matches what I saw with 0xffff82d04022a8af appearing for >> two different banks. In all those cases Linux recognises the bank as >> reserved and logs it; it doesn't act on it. >> >> On your question: we have run plain Debian on this hardware and never >> saw any problems there. >> >> One practical question. Would you consider the re-read hunk acceptable >> to keep running in production for now? I wouldn't call doing so outright risky, but anything like this cannot really be answered without first understanding what's going on. Which ... >> Peter > > Right after sending that, I came across a patch on linux-edac from > 2026-11-07 that explains the mechanism: > >   [PATCH] x86/mce/amd: Don't poll unpopulated SMCA banks > https://lore.kernel.org/linux-edac/20261107111211.578991-1-zakbrightonknight@gmail.com/ ... we're now a fair bit closer to. Albeit I still don't see why it would only ever be CPU2 where this issue is seen. From the description there, (at least) all secondary threads should exhibit the same behavior. Jan