public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xen] f43: wrong version of xsa518 patch in last build
@ 2026-10-30 22:24 Michael Young
  0 siblings, 0 replies; only message in thread
From: Michael Young @ 2026-10-30 22:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xen
Branch : f43
Commit : 61d66fd9fd5adad16ad13dbd5683997586564c78
Author : Michael Young <m.a.young@durham.ac.uk>
Date   : 2026-10-30T22:23:57+00:00
Stats  : +67/-78 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/xen/c/61d66fd9fd5adad16ad13dbd5683997586564c78?branch=f43

Log:
wrong version of xsa518 patch in last build

---
diff --git a/xen.spec b/xen.spec
index d1d8ed6..ccfd839 100644
--- a/xen.spec
+++ b/xen.spec
@@ -51,7 +51,7 @@
 Summary: Xen is a virtual machine monitor
 Name:    xen
 Version: 4.20.4
-Release: 3%{?dist}
+Release: 4%{?dist}
 # Automatically converted from old format: GPLv2+ and LGPLv2+ and BSD - review is highly recommended.
 License: GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ AND LicenseRef-Callaway-BSD
 URL:     http://xen.org/
@@ -86,7 +86,7 @@ Patch54: xsa512-2.patch
 Patch55: xsa515.patch
 Patch56: xsa516.patch
 Patch57: xsa517.patch
-Patch58: xsa518.patch
+Patch58: xsa518-4.20.patch
 Patch59: xsa519-4.20-1.patch
 Patch60: xsa519-4.20-2.patch
 Patch61: xsa520.patch
@@ -830,6 +830,9 @@ fi
 %endif
 
 %changelog
+* Fri Oct 30 2026 Michael Young <m.a.young@durham.ac.uk> - 4.20.4-4
+- wrong version of xsa518 patch in last build
+
 * Mon Oct 19 2026 Michael Young <m.a.young@durham.ac.uk> - 4.20.4-3
 - x86/AMD: ineffectual Zenbleed workaround [XSA-515, CVE-2026-79608]
   x86: XPTI may break on huge-memory systems [XSA-516, CVE-2026-79609]

diff --git a/xsa518-4.20.patch b/xsa518-4.20.patch
new file mode 100644
index 0000000..e0438f7
--- /dev/null
+++ b/xsa518-4.20.patch
@@ -0,0 +1,62 @@
+From: Andrew Cooper <andrew.cooper3@citrix.com>
+Subject: x86/vmx: Rework #DB intercept logic to fix VMEntry failure with BTF
+
+The consistency checks in effect when Blocked-by-STI/MovSS are active includes
+DEBUGCTL.BTF too.  Take this into account when editing PENDING_DBG.BS.
+
+This ends up narrowing the cases where PENDING_DBG is modified.  Rework the
+comment to be more precise.
+
+This is XSA-518 / CVE-2026-79611.
+
+Fixes: 1d3eb8259804 ("x86/vtx: Work around SingleStep + STI/MovSS VMEntry failures")
+Reported-by: Teddy Astie <teddy.astie@vates.tech>
+Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
+Reviewed-by: Jan Beulich <jbeulich@suse.com>
+Reviewed-by: Teddy Astie <teddy.astie@vates.tech>
+
+--- a/xen/arch/x86/hvm/vmx/vmx.c
++++ b/xen/arch/x86/hvm/vmx/vmx.c
+@@ -4281,26 +4281,30 @@ void asmlinkage vmx_vmexit_handler(struc
+              * We intercept #DB unconditionally to work around CVE-2015-8104 /
+              * XSA-156 (guest-kernel induced host DoS).
+              *
+-             * STI/MovSS shadows block/defer interrupts/exceptions (exact
+-             * details are complicated and poorly documented).  Debug
+-             * exceptions delayed for any reason are stored in the
+-             * PENDING_DBG_EXCEPTIONS field.
++             * Most sources of #DB accumuate status in PENDING_DBG, which are
++             * then dispatched in priority order prior to fetching the next
++             * instruction.  When the #DB intercept triggers, PENDING_DBG is 0
++             * with the status bits having moved into EXIT_QUALIFICATION.
+              *
+-             * The falling edge of PENDING_DBG causes #DB to be delivered,
+-             * resulting in a VMExit, as #DB is intercepted.  The VMCS still
+-             * reports blocked-by-STI/MovSS.
++             * At any point if Blocked-by-STI/MovSS are active, extra VMEntry
++             * consistency checks are applied, cross-checking EFLAGS.TF,
++             * PENDING_DBG.BS and DEBUGCTL.BTF.  These consistency checks
++             * apply to Activity-state-HLT too, but Xen doesn't support this.
+              *
+-             * The VMEntry checks when EFLAGS.TF is set don't like a VMCS in
+-             * this state.  Despite a #DB queued in VMENTRY_INTR_INFO, the
+-             * state is rejected as DR6.BS isn't pending.  Fix this up.
++             * The VMCS state at the point of #DB intercept does not satisfy
++             * the consistency checks.  In the case that a SingleStep should
++             * be pending, fill PENDING_DBG back in to satisfy the consitency
++             * check.
+              */
+             if ( unlikely(regs->eflags & X86_EFLAGS_TF) )
+             {
+-                unsigned long int_info;
++                unsigned long int_info, debugctl;
+ 
+                 __vmread(GUEST_INTERRUPTIBILITY_INFO, &int_info);
++                __vmread(GUEST_IA32_DEBUGCTL, &debugctl);
+ 
+-                if ( int_info & (VMX_INTR_SHADOW_STI | VMX_INTR_SHADOW_MOV_SS) )
++                if ( (int_info & (VMX_INTR_SHADOW_STI | VMX_INTR_SHADOW_MOV_SS)) &&
++                     !(debugctl & IA32_DEBUGCTLMSR_BTF) )
+                 {
+                     unsigned long pending_dbg;
+ 

diff --git a/xsa518.patch b/xsa518.patch
deleted file mode 100644
index 7c9cf54..0000000
--- a/xsa518.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From: Andrew Cooper <andrew.cooper3@citrix.com>
-Subject: x86/vmx: Rework #DB intercept logic to fix VMEntry failure with BTF
-
-The consistency checks in effect when Blocked-by-STI/MovSS are active includes
-DEBUGCTL.BTF too.  Take this into account when editing PENDING_DBG.BS.
-
-This ends up narrowing the cases where PENDING_DBG is modified.  Rework the
-comment to be more precise.
-
-This is XSA-518 / CVE-2026-79611.
-
-Fixes: 1d3eb8259804 ("x86/vtx: Work around SingleStep + STI/MovSS VMEntry failures")
-Reported-by: Teddy Astie <teddy.astie@vates.tech>
-Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
-Reviewed-by: Jan Beulich <jbeulich@suse.com>
-Reviewed-by: Teddy Astie <teddy.astie@vates.tech>
----
- xen/arch/x86/hvm/vmx/vmx.c | 41 +++++++++++++++++---------------------
- 1 file changed, 18 insertions(+), 23 deletions(-)
-
-diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
-index 6237623a4c16..97dd37dd7ce4 100644
---- a/xen/arch/x86/hvm/vmx/vmx.c
-+++ b/xen/arch/x86/hvm/vmx/vmx.c
-@@ -4396,33 +4396,28 @@ void asmlinkage vmx_vmexit_handler(struct cpu_user_regs *regs)
-              * We intercept #DB unconditionally to work around CVE-2015-8104 /
-              * XSA-156 (guest-kernel induced host DoS).
-              *
--             * STI/MovSS shadows block/defer interrupts/exceptions (exact
--             * details are complicated and poorly documented).  Debug
--             * exceptions delayed for any reason are stored in the
--             * PENDING_DBG_EXCEPTIONS field.
-+             * Most sources of #DB accumuate status in PENDING_DBG, which are
-+             * then dispatched in priority order prior to fetching the next
-+             * instruction.  When the #DB intercept triggers, PENDING_DBG is 0
-+             * with the status bits having moved into EXIT_QUALIFICATION.
-              *
--             * The falling edge of PENDING_DBG causes #DB to be delivered,
--             * resulting in a VMExit, as #DB is intercepted.  The VMCS still
--             * reports blocked-by-STI/MovSS.
-+             * At any point if Blocked-by-STI/MovSS are active, extra VMEntry
-+             * consistency checks are applied, cross-checking EFLAGS.TF,
-+             * PENDING_DBG.BS and DEBUGCTL.BTF.  These consistency checks
-+             * apply to Activity-state-HLT too, but Xen doesn't support this.
-              *
--             * The VMEntry checks when EFLAGS.TF is set don't like a VMCS in
--             * this state.  Despite a #DB queued in VMENTRY_INTR_INFO, the
--             * state is rejected as DR6.BS isn't pending.  Fix this up.
-+             * The VMCS state at the point of #DB intercept does not satisfy
-+             * the consistency checks.  In the case that a SingleStep should
-+             * be pending, fill PENDING_DBG back in to satisfy the consitency
-+             * check.
-              */
--            if ( unlikely(regs->eflags & X86_EFLAGS_TF) )
-+            if ( unlikely(regs->eflags & X86_EFLAGS_TF) &&
-+                 (vmread(GUEST_INTERRUPTIBILITY_INFO) &
-+                  (VMX_INTR_SHADOW_STI | VMX_INTR_SHADOW_MOV_SS)) &&
-+                 !(vmread(GUEST_IA32_DEBUGCTL) & IA32_DEBUGCTLMSR_BTF) )
-             {
--                unsigned long int_info;
--
--                __vmread(GUEST_INTERRUPTIBILITY_INFO, &int_info);
--
--                if ( int_info & (VMX_INTR_SHADOW_STI | VMX_INTR_SHADOW_MOV_SS) )
--                {
--                    unsigned long pending_dbg;
--
--                    __vmread(GUEST_PENDING_DBG_EXCEPTIONS, &pending_dbg);
--                    __vmwrite(GUEST_PENDING_DBG_EXCEPTIONS,
--                              pending_dbg | DR_STEP);
--                }
-+                ASSERT(vmread(GUEST_PENDING_DBG_EXCEPTIONS) == 0);
-+                __vmwrite(GUEST_PENDING_DBG_EXCEPTIONS, X86_DR6_BS);
-             }
- 
-             if ( !v->domain->debugger_attached )

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-30 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 22:24 [rpms/xen] f43: wrong version of xsa518 patch in last build Michael Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox