From mboxrd@z Thu Jan 1 00:00:00 1970 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 CC07B606A32C for ; Thu, 3 Dec 2026 20:05:59 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1512935.1704746 (Exim 4.92) (envelope-from ) id 1xZD3c-0000ky-1V; Thu, 03 Dec 2026 20:05:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1512935.1704746; Thu, 03 Dec 2026 20:05:32 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZD3b-0000kr-V3; Thu, 03 Dec 2026 20:05:31 +0000 Received: by outflank-mailman (input) for mailman id 1512935; Thu, 03 Dec 2026 20:05:30 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZD3a-0000kl-LA for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 20:05:30 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZD3Z-00DdAW-J7 for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 21:05:29 +0100 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b11cb79-2eae-0a2a0a5409dd-0a2a450ae85e-48 for ; Thu, 03 Dec 2026 21:05:29 +0100 Received: from [212.23.1.3] (helo=smarthost01b.sbp.mail.zen.net.uk) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b11cb89-f2d2-0a2a450a0019-d4170103bfb6-3 for ; Thu, 03 Dec 2026 21:05:29 +0100 Received: from [217.155.64.189] (helo=mail0.xen.dingwall.me.uk) by smarthost01b.sbp.mail.zen.net.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97) (envelope-from ) id 1xZD3Y-00000009oVz-3OWp for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 20:05:28 +0000 Received: from localhost (localhost [IPv6:::1]) by mail0.xen.dingwall.me.uk (Postfix) with ESMTP id 74357FAE08F for ; Thu, 3 Dec 2026 20:05:28 +0000 (GMT) Received: from mail0.xen.dingwall.me.uk ([IPv6:::1]) by localhost (mail0.xen.dingwall.me.uk [IPv6:::1]) (amavis, port 10024) with ESMTP id R7HIq5PEAkRh for ; Thu, 3 Dec 2026 20:05:28 +0000 (GMT) Received: from ghoul.dingwall.me.uk (ghoul.dingwall.me.uk [192.168.1.200]) by dingwall.me.uk (Postfix) with ESMTPS id 4AF14FAE089 for ; Thu, 3 Dec 2026 20:05:28 +0000 (GMT) Received: by ghoul.dingwall.me.uk (Postfix, from userid 1000) id 3D0F8846; Thu, 3 Dec 2026 20:05:28 +0000 (GMT) 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; none X-Virus-Scanned: Debian amavis at dingwall.me.uk Date: Thu, 3 Dec 2026 20:05:28 +0000 From: James Dingwall To: xen-devel@lists.xenproject.org Subject: Xen 4.22.1: CONFIG_LIVEPATCH=n with CONFIG_XSM=y crash Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Originating-smarthost01b-IP: [217.155.64.189] Feedback-ID: 217.155.64.189 X-purgate-ID: tlsNG-4011c0/1796328329-59DDFCFC-EB05A6A8/0/0 X-purgate-type: clean X-purgate-size: 6356 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=no 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 Hi, I'm going through the process of updating our Xen build from 4.20.5 to 4.22.1. I've maintained the .config from 4.20.5 which had CONFIG_LIVEPATCH=n and CONFIG_XSM=y and just updated for the new release with `make -C xen oldconfig`. As soon as the dom0 memory is ballooned Xen crashes: (XEN) [2026-12-03 13:24:40.751] ----[ Xen-4.22.1 x86_64 debug=n Not tainted ]---- (XEN) [2026-12-03 13:24:40.751] CPU: 0 (XEN) [2026-12-03 13:24:40.751] RIP: e008:[] do_memory_op+0x829/0x2b5e (XEN) [2026-12-03 13:24:40.751] RFLAGS: 0000000000010202 CONTEXT: hypervisor (d0v0) (XEN) [2026-12-03 13:24:40.751] rax: 0000000000000001 rbx: ffff831077c6ffff rcx: 0000000000000001 (XEN) [2026-12-03 13:24:40.751] rdx: 00000000ffffffff rsi: ffff831077c6fd78 rdi: 0000000000000000 (XEN) [2026-12-03 13:24:40.751] rbp: 0000000000000000 rsp: ffff831077c6fbf0 r8: 00000000000000ff (XEN) [2026-12-03 13:24:40.751] r9: 0000000000000001 r10: 0000000000000000 r11: 0000000000000000 (XEN) [2026-12-03 13:24:40.751] r12: ffff83104f8d5000 r13: ffffc90040457dd8 r14: 0000000000000001 (XEN) [2026-12-03 13:24:40.751] r15: 0000000000000000 cr0: 0000000080050033 cr4: 00000000003526e0 (XEN) [2026-12-03 13:24:40.751] cr3: 00000009d2423000 cr2: ffff82d040459b40 (XEN) [2026-12-03 13:24:40.751] fsb: 0000000000000000 gsb: ffff889046c00000 gss: 0000000000000000 (XEN) [2026-12-03 13:24:40.751] ds: 0000 es: 0000 fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) [2026-12-03 13:24:40.751] Xen code around (do_memory_op+0x829/0x2b5e): (XEN) [2026-12-03 13:24:40.751] 01 89 ac 24 8c 01 00 00 <48> 8b 15 f0 44 22 00 c7 84 24 90 01 00 00 00 00 (XEN) [2026-12-03 13:24:40.751] Xen stack trace from rsp=ffff831077c6fbf0: (XEN) [2026-12-03 13:24:40.751] ffff83104f8d5000 8086000000008086 0000000000000000 0000000000000000 (XEN) [2026-12-03 13:24:40.751] 0000000000000003 0000000000000000 0000000000000000 8086000000008086 (XEN) [2026-12-03 13:24:40.751] 0000000000000000 0000000000000000 0000000000000000 0203001a00000000 (XEN) [2026-12-03 13:24:40.751] 0e00000001480000 ffff82d0402507e4 ffffffff83f508a0 0000000000000200 (XEN) [2026-12-03 13:24:40.751] 0000000000000000 0000000000007ff0 ffff83104f8ecdf0 ffff83104f8dc080 (XEN) [2026-12-03 13:24:40.751] 0000000100000007 0000000000000000 0000000000000000 0000000000000000 (XEN) [2026-12-03 13:24:40.751] 0000000000000003 00000000000000c0 0000000000000000 0000000000000000 (XEN) [2026-12-03 13:24:40.751] 0000000000000000 ffff82d0405ff058 ffff82d0405ff100 000000000000006f (XEN) [2026-12-03 13:24:40.751] ffff83100000006f ffff82d040600118 0000000000000202 ffff82d0402567bd (XEN) [2026-12-03 13:24:40.751] 0000000000000202 aaaaaaaaaaaaaaaa ffff83104f8c1000 0000000000000000 (XEN) [2026-12-03 13:24:40.751] 0000000000000206 ffff82d040350cb3 0000000000000000 0000000000000003 (XEN) [2026-12-03 13:24:40.751] 0000000000000003 0000000000000006 ffff83104f8d5000 ffffffff83f508a0 (XEN) [2026-12-03 13:24:40.751] 0000000000000200 0000000000000000 ffff831077c6fd8c 00000cfb4f8afe20 (XEN) [2026-12-03 13:24:40.751] ffffffff00000000 0000000000000001 0000000000000001 ffff83104f8d5000 (XEN) [2026-12-03 13:24:40.751] ffff83104f8c7000 0000000000000206 0000000000000000 0000000000000000 (XEN) [2026-12-03 13:24:40.751] 0000000000000001 ffff83104f8d5000 ffff83104f8c7000 ffff889046c1fad0 (XEN) [2026-12-03 13:24:40.751] 0000000000000000 ffff83104f8d5000 ffff82d040347b25 0000000000000000 (XEN) [2026-12-03 13:24:40.751] ffff831077c6fe48 0000000100007ff0 ffff82d04021ffcc ffff830043fbc070 (XEN) [2026-12-03 13:24:40.751] ffff82e000000000 0000000000000000 ffff888100000000 0000000000000006 (XEN) [2026-12-03 13:24:40.751] 00000000009d2423 0000000000000000 ffff831077c6ff08 000000000000000c (XEN) [2026-12-03 13:24:40.751] Xen call trace: (XEN) [2026-12-03 13:24:40.751] [] R do_memory_op+0x829/0x2b5e (XEN) [2026-12-03 13:24:40.751] [] S common/sched/credit2.c#runq_tickle+0x304/0x651 (XEN) [2026-12-03 13:24:40.751] [] S vcpu_wake+0x13d/0x224 (XEN) [2026-12-03 13:24:40.751] [] S send_IPI_mask+0xc3/0x20b (XEN) [2026-12-03 13:24:40.751] [] S do_mmuext_op+0xda5/0x14eb (XEN) [2026-12-03 13:24:40.751] [] S do_event_channel_op+0x1cc/0x112a (XEN) [2026-12-03 13:24:40.751] [] S pv_hypercall+0x50a/0x563 (XEN) [2026-12-03 13:24:40.751] [] S lstar_enter+0x13d/0x142 (XEN) [2026-12-03 13:24:40.751] (XEN) [2026-12-03 13:24:40.751] Pagetable walk from ffff82d040459b40: (XEN) [2026-12-03 13:24:40.751] L4[0x105] = 000000006fcb1063 ffffffffffffffff (XEN) [2026-12-03 13:24:40.751] L3[0x141] = 000000006fcae063 ffffffffffffffff (XEN) [2026-12-03 13:24:40.751] L2[0x002] = 0000001077c79063 ffffffffffffffff (XEN) [2026-12-03 13:24:40.751] L1[0x059] = 0000000000000000 ffffffffffffffff (XEN) [2026-12-03 13:24:41.162] (XEN) [2026-12-03 13:24:41.165] **************************************** (XEN) [2026-12-03 13:24:41.172] Panic on CPU 0: (XEN) [2026-12-03 13:24:41.176] FATAL PAGE FAULT (XEN) [2026-12-03 13:24:41.180] [error_code=0000] (XEN) [2026-12-03 13:24:41.185] Faulting linear address: ffff82d040459b40 (XEN) [2026-12-03 13:24:41.191] **************************************** (XEN) [2026-12-03 13:24:41.198] (XEN) [2026-12-03 13:24:41.201] Reboot in five seconds... (XEN) [2026-12-03 13:24:46.206] Resetting with ACPI MEMORY or I/O RESET_REG. Google AI suggested that the xsm_ops structure was being freed and that toggling the LIVEPATCH .config option would prevent the crash, which it does. I don't know if this dependency between the config options needs to be expressed to avoid an invalid .config combination or whether a different change is needed to allow XSM to remain independent of LIVEPATCH. Trying to summarise the complete exchange if LIVEPATCH=n then xsm_ops is in .init.data and gets unmapped after boot. With LIVEPATCH=y xsm_ops is in .data.ro_after_init. These are details that don't mean much to me so it is possible I have misunderstood. I am building a patched tree but I don't believe there are changes which would cause this. Thanks, James