public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Young <m.a.young@durham.ac.uk>
To: git-commits@fedoraproject.org
Subject: [rpms/xen] f43: 2 security updates
Date: Wed, 11 Nov 2026 20:51:21 GMT	[thread overview]
Message-ID: <179443028148.1.18095218021406915552.rpms-xen-7dc25c2c0bd4@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/xen
            Branch : f43
            Commit : 7dc25c2c0bd443ca9695083d6117cd485afad1cd
            Author : Michael Young <m.a.young@durham.ac.uk>
            Date   : 2026-11-11T20:50:20+00:00
            Stats  : +430/-1 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/xen/c/7dc25c2c0bd443ca9695083d6117cd485afad1cd?branch=f43

            Log:
            2 security updates

AMD IOMMU Out-of-Bounds Device Table Read [XSA-524, CVE-2024-21963]
x86: Transient Scheduler Attacks (update)
	[XSA-525, CVE-2024-36350, CVE-2024-36357, CVE-2026-0004]

---
diff --git a/xen.spec b/xen.spec
index 43e9ae3..47e050a 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: 5%{?dist}
+Release: 6%{?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/
@@ -92,6 +92,10 @@ Patch60: xsa519-4.20-2.patch
 Patch61: xsa520.patch
 Patch62: xsa523-1.patch
 Patch63: xsa523-2.patch
+Patch64: xsa524.patch
+Patch65: xsa525-4.20-1.patch
+Patch65: xsa525-4.20-2.patch
+Patch65: xsa525-4.20-3.patch
 
 
 # build using Fedora seabios and ipxe packages for roms
@@ -285,6 +289,10 @@ manage Xen virtual machines.
 %patch 61 -p1
 %patch 62 -p1
 %patch 63 -p1
+%patch 64 -p1
+%patch 65 -p1
+%patch 66 -p1
+%patch 67 -p1
 
 # stubdom sources
 cp -v %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} stubdom
@@ -834,6 +842,11 @@ fi
 %endif
 
 %changelog
+* Wed Nov 11 2026 Michael Young <m.a.young@durham.ac.uk> - 4.20.4-6
+- AMD IOMMU Out-of-Bounds Device Table Read [XSA-524, CVE-2024-21963]
+  x86: Transient Scheduler Attacks (update)
+	[XSA-525, CVE-2024-36350, CVE-2024-36357, CVE-2026-0004]
+
 * Thu Nov 05 2026 Michael Young <m.a.young@durham.ac.uk> - 4.20.4-5
 - arbitrary read/write via grant copy
         [XSA-523, CVE-2026-102703, CVE-2026-102704]

diff --git a/xsa524.patch b/xsa524.patch
new file mode 100644
index 0000000..7eba708
--- /dev/null
+++ b/xsa524.patch
@@ -0,0 +1,120 @@
+From: Jan Beulich <jbeulich@suse.com>
+Subject: AMD/IOMMU: allocate (at least) one spare device table entry
+
+Certain IOMMUs have an off-by-one in the upper bounds check of device
+table accesses. Therefore an extra entry is needed, to avoid the IOMMU
+accessing random unrelated memory.
+
+Since the size is reported to the IOMMU in 4k granularity, an extra page
+may need allocating. To keep things simple (as before: full order-N
+allocations), arrange to allocate the next higher order of pages if/as
+necessary. At the same time avoid using / reporting the extra entries.
+
+As struct table_struct's alloc_size field is now only ever written, drop
+the field right away (if for nothing else than to avoid possible Misra
+concerns).
+
+This is CVE-2024-21963 / XSA-524.
+
+Signed-off-by: Jan Beulich <jbeulich@suse.com>
+Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
+
+diff --git a/xen/drivers/passthrough/amd/iommu-defs.h b/xen/drivers/passthrough/amd/iommu-defs.h
+index 30b094f18768..72c757918531 100644
+--- a/xen/drivers/passthrough/amd/iommu-defs.h
++++ b/xen/drivers/passthrough/amd/iommu-defs.h
+@@ -104,7 +104,7 @@ struct amd_iommu_dte {
+     /* 0 - 63 */
+     bool v:1;
+     bool tv:1;
+-    unsigned int :5;
++    unsigned int rsvd:5;
+     unsigned int had:2;
+ #define IOMMU_MAX_PT_LEVELS 6
+     unsigned int paging_mode:3;
+diff --git a/xen/drivers/passthrough/amd/iommu.h b/xen/drivers/passthrough/amd/iommu.h
+index 52f748310be4..042c6eed59b2 100644
+--- a/xen/drivers/passthrough/amd/iommu.h
++++ b/xen/drivers/passthrough/amd/iommu.h
+@@ -54,7 +54,6 @@ typedef struct cmd_entry
+ struct table_struct {
+     void *buffer;
+     unsigned long entries;
+-    unsigned long alloc_size;
+ };
+ 
+ struct ring_buffer {
+diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthrough/amd/iommu_init.c
+index e0c8925c33f7..9376ca612099 100644
+--- a/xen/drivers/passthrough/amd/iommu_init.c
++++ b/xen/drivers/passthrough/amd/iommu_init.c
+@@ -80,7 +80,9 @@ static void register_iommu_dev_table_in_mmio_space(struct amd_iommu *iommu)
+ 
+     entry = 0;
+     iommu_set_addr_lo_to_reg(&entry, addr_lo >> PAGE_SHIFT);
+-    set_field_in_reg_u32((iommu->dev_table.alloc_size / PAGE_SIZE) - 1,
++    set_field_in_reg_u32(ROUNDUP(iommu->dev_table.entries *
++                                 IOMMU_DEV_TABLE_ENTRY_SIZE,
++                                 PAGE_SIZE) - 1,
+                          entry, IOMMU_DEV_TABLE_SIZE_MASK,
+                          IOMMU_DEV_TABLE_SIZE_SHIFT, &entry);
+     writel(entry, iommu->mmio_base + IOMMU_DEV_TABLE_BASE_LOW_OFFSET);
+@@ -948,8 +950,21 @@ static void disable_iommu(struct amd_iommu *iommu)
+ 
+ static unsigned int __init dt_alloc_size(void)
+ {
+-    return PAGE_SIZE << get_order_from_bytes(ivrs_bdf_entries *
+-                                             IOMMU_DEV_TABLE_ENTRY_SIZE);
++    unsigned int nr = ROUNDUP(ivrs_bdf_entries,
++                              PAGE_SIZE / IOMMU_DEV_TABLE_ENTRY_SIZE);
++
++    /*
++     * AMD SN-3060 / CVE-2024-21963
++     *
++     * Some IOMMUs read beyond the programmed Device Table limit.  When the
++     * total size of the Device Table is less than 2M (covering all 2^16 BDFs
++     * in a single PCI Segment), we must allocate one extra entry to avoid the
++     * IOMMU reading unrelated memory and treating it as a valid entry.
++     */
++    if ( nr < (1U << 16) )
++        ++nr;
++
++    return PAGE_SIZE << get_order_from_bytes(nr * IOMMU_DEV_TABLE_ENTRY_SIZE);
+ }
+ 
+ static void __init deallocate_buffer(void *buf, unsigned long sz)
+@@ -1089,9 +1104,8 @@ static int __init amd_iommu_init_one(struct amd_iommu *iommu, bool intr)
+     if ( !IVRS_MAPPINGS_DEVTAB(ivrs_mappings) )
+         goto error_out;
+ 
+-    iommu->dev_table.alloc_size = dt_alloc_size();
+-    iommu->dev_table.entries = iommu->dev_table.alloc_size /
+-                               IOMMU_DEV_TABLE_ENTRY_SIZE;
++    /* There may be trailing "scratch" entries, which should not be used. */
++    iommu->dev_table.entries = ivrs_bdf_entries;
+     iommu->dev_table.buffer = IVRS_MAPPINGS_DEVTAB(ivrs_mappings);
+ 
+     enable_iommu(iommu);
+@@ -1255,11 +1269,21 @@ static int __init cf_check amd_iommu_setup_device_table(
+          * IOMMU_DEV_TABLE_INT_CONTROL_ABORTED all being zero, and us also
+          * wanting at least TV, GV, I, and EX set to false.
+          */
+-        for ( bdf = 0, size /= sizeof(*dt); bdf < size; ++bdf )
++        for ( bdf = 0; bdf < ivrs_bdf_entries; ++bdf )
+             dt[bdf] = (struct amd_iommu_dte){
+                           .v = true,
+                           .iv = iommu_intremap,
+                       };
++
++        /*
++         * Prefill extra DTEs such that their use will raise an
++         * ILLEGAL_DEV_TABLE_ENTRY event.
++         */
++        for ( size /= sizeof(*dt); bdf < size; ++bdf )
++            dt[bdf] = (struct amd_iommu_dte){
++                          .v = true,
++                          .rsvd = 3, /* As per AMD recommendation. */
++                      };
+     }
+ 
+     /* Add device table entries */

diff --git a/xsa525-4.20-1.patch b/xsa525-4.20-1.patch
new file mode 100644
index 0000000..cf9ff54
--- /dev/null
+++ b/xsa525-4.20-1.patch
@@ -0,0 +1,53 @@
+From: Andrew Cooper <andrew.cooper3@citrix.com>
+Subject: x86/spec-ctrl: Rename tsa_calculations()
+
+... and adjust some comments in preparation to cope with the second TSA
+variant.
+
+No functional change.
+
+This is part of XSA-525.
+
+Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
+Acked-by: Roger Pau Monné <roger@xenproject.org>
+
+diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c
+index bcdae1ed2377..f09512dfd6af 100644
+--- a/xen/arch/x86/spec_ctrl.c
++++ b/xen/arch/x86/spec_ctrl.c
+@@ -1528,11 +1528,11 @@ static void __init rfds_calculations(void)
+ }
+ 
+ /*
+- * Transient Scheduler Attacks
++ * Transient Scheduler Attacks (Store Queue and L1)
+  *
+  * https://www.amd.com/content/dam/amd/en/documents/resources/bulletin/technical-guidance-for-mitigating-transient-scheduler-attacks.pdf
+  */
+-static void __init tsa_calculations(void)
++static void __init tsa_sq_l1_calculations(void)
+ {
+     unsigned int curr_rev, min_rev;
+ 
+@@ -2329,9 +2329,9 @@ void __init init_speculation_mitigations(void)
+      * - March 2023, for RFDS.  Enumerate RFDS_CLEAR to mean that VERW now
+      *   scrubs non-architectural entries from certain register files.
+      *
+-     * - July 2025, for TSA.  Introduces VERW side effects to mitigate
+-     *   TSA_{SQ/L1}.  Xen must synthesise the VERW_CLEAR feature based on
+-     *   microcode version.
++     * - July 2025, for TSA-L1/SQ.  Introduces VERW side effects on Zen3/4.
++     *   Xen must synthesise the VERW_CLEAR feature based on microcode
++     *   version.
+      *
+      *   Note, these microcode updates were produced before the remediation of
+      *   the microcode signature issues, and are included in the firwmare
+@@ -2339,7 +2339,7 @@ void __init init_speculation_mitigations(void)
+      */
+     mds_calculations();
+     rfds_calculations();
+-    tsa_calculations();
++    tsa_sq_l1_calculations();
+ 
+     /*
+      * Parts which enumerate FB_CLEAR are those with now-updated microcode

diff --git a/xsa525-4.20-2.patch b/xsa525-4.20-2.patch
new file mode 100644
index 0000000..3d4c5c5
--- /dev/null
+++ b/xsa525-4.20-2.patch
@@ -0,0 +1,136 @@
+From: Andrew Cooper <andrew.cooper3@citrix.com>
+Subject: x86/spec-ctrl: Extend TSA-SQ/L1 mitigations to Zen5 CPUs
+
+AMD previously said that Zen5 was not affected by TSA.  This statement has
+been retracted, along with the recommendation to synthesise the TSA_SQ/L1_NO
+bits on Zen5 CPUs.
+
+Simply removing the synthesis of TSA_SQ/L1_NO creates a migration/resume
+problem; VMs which had booted between July 2025 and Nov 2026 on Zen5 would no
+longer be eligible to run on the same system as before.
+
+Tolerate VMs which have seen TSA_SQ/L1_NO, despite knowing this to be an
+unsafe configuration.  The VM is in no worse a position than before.
+
+This is CVE-2024-36350 and CVE-2024-36357, part of XSA-525.
+
+Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
+Acked-by: Roger Pau Monné <roger@xenproject.org>
+
+diff --git a/xen/arch/x86/cpu-policy.c b/xen/arch/x86/cpu-policy.c
+index 3e628e008e92..612fb1c389af 100644
+--- a/xen/arch/x86/cpu-policy.c
++++ b/xen/arch/x86/cpu-policy.c
+@@ -490,6 +490,23 @@ static void __init guest_common_max_feature_adjustments(uint32_t *fs)
+          * has been around since the 286.
+          */
+         __set_bit(X86_FEATURE_VERW_CLEAR, fs);
++
++        /*
++         * Between July 2025 and Nov 2026, AMD had said that Zen5 was not
++         * vulnerable to TSA and to synthesise the TSA_SQ/L1_NO bits, but this
++         * statement has been retracted.
++         *
++         * VM's booted during that period on Zen5 CPUs will have seen the
++         * bits.  Tolerate such VMs; they'll be in no worse a position than
++         * prior to Nov 2026.
++         *
++         * Zen6 enumerates TSA_SQ/L1_NO, so there's no change from this logic.
++         */
++        if ( boot_cpu_data.x86 == 0x1a )
++        {
++            __set_bit(X86_FEATURE_TSA_SQ_NO, fs);
++            __set_bit(X86_FEATURE_TSA_L1_NO, fs);
++        }
+         break;
+     }
+ 
+@@ -579,6 +596,20 @@ static void __init guest_common_default_feature_adjustments(uint32_t *fs)
+          */
+         if ( !cpu_has_verw_clear )
+             __clear_bit(X86_FEATURE_VERW_CLEAR, fs);
++
++        /*
++         * Between July 2025 and Nov 2026, AMD had said that Zen5 was not
++         * vulnerable to TSA and to synthesise the TSA_SQ/L1_NO bits, but this
++         * statement has been retracted.
++         *
++         * The max policy has these set for migration compatibility, but a VM
++         * should not see them by default if the hardware is affected.
++         */
++        if ( !cpu_has_tsa_sq_no )
++            __clear_bit(X86_FEATURE_TSA_SQ_NO, fs);
++
++        if ( !cpu_has_tsa_l1_no )
++            __clear_bit(X86_FEATURE_TSA_L1_NO, fs);
+         break;
+     }
+ 
+diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c
+index f09512dfd6af..0635286700b6 100644
+--- a/xen/arch/x86/spec_ctrl.c
++++ b/xen/arch/x86/spec_ctrl.c
+@@ -1545,18 +1545,22 @@ static void __init tsa_sq_l1_calculations(void)
+         return;
+ 
+     /*
+-     * According to the whitepaper, some Fam1A CPUs (Models 0x00...0x4f,
+-     * 0x60...0x7f) are not vulnerable but don't enumerate TSA_{SQ,L1}_NO.  If
+-     * we see either enumerated, assume both are correct ...
++     * Zen6 and later are stated not to be vulnerable to the 3 known TSA
++     * variants, and enumerate all TSA_*_NO bits.
++     *
++     * Zen5 is vulnerable to all 3.  It gets VERW_CLEAR with new enough
++     * microcode, which is enumerated in CPUID.
++     *
++     * No synthesis should be performed.
+      */
+-    if ( cpu_has_tsa_sq_no || cpu_has_tsa_l1_no )
++    if ( boot_cpu_data.x86 > 0x19 )
+         return;
+ 
+     /*
+-     * ... otherwise, synthesise them.  CPUs other than Fam19 (Zen3/4) are
+-     * stated to be not vulnerable.
++     * Zen2 and older are stated not to be vulnerable, and need to synthesise
++     * TSA_SQ/L1_NO.
+      */
+-    if ( boot_cpu_data.x86 != 0x19 )
++    if ( boot_cpu_data.x86 < 0x19 )
+     {
+         setup_force_cpu_cap(X86_FEATURE_TSA_SQ_NO);
+         setup_force_cpu_cap(X86_FEATURE_TSA_L1_NO);
+@@ -1564,7 +1568,7 @@ static void __init tsa_sq_l1_calculations(void)
+     }
+ 
+     /*
+-     * Fam19 CPUs get VERW_CLEAR with new enough microcode, but must
++     * Zen3 and Zen4 get VERW_CLEAR with new enough microcode, but must
+      * synthesise the CPUID bit.
+      */
+     curr_rev = this_cpu(cpu_sig).rev;
+@@ -2336,6 +2340,9 @@ void __init init_speculation_mitigations(void)
+      *   Note, these microcode updates were produced before the remediation of
+      *   the microcode signature issues, and are included in the firwmare
+      *   updates fixing the entrysign vulnerability from ~December 2024.
++     *
++     * - September 2026, for TSA-L1/SQ/Fill.  Introduces VERW side effects on
++     *   Zen5, and enumerates VERW_CLEAR.
+      */
+     mds_calculations();
+     rfds_calculations();
+diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/public/arch-x86/cpufeatureset.h
+index 618674123be3..85f417188e98 100644
+--- a/xen/include/public/arch-x86/cpufeatureset.h
++++ b/xen/include/public/arch-x86/cpufeatureset.h
+@@ -386,8 +386,8 @@ XEN_CPUFEATURE(PB_OPT_CTRL,        16*32+32) /*   MSR_PB_OPT_CTRL.IBPB_ALT */
+ XEN_CPUFEATURE(ITS_NO,             16*32+62) /*!A No Indirect Target Selection */
+ 
+ /* AMD-defined CPU features, CPUID level 0x80000021.ecx, word 18 */
+-XEN_CPUFEATURE(TSA_SQ_NO,          18*32+ 1) /*A  No Store Queue Transitive Scheduler Attacks */
+-XEN_CPUFEATURE(TSA_L1_NO,          18*32+ 2) /*A  No L1D Transitive Scheduler Attacks */
++XEN_CPUFEATURE(TSA_SQ_NO,          18*32+ 1) /*!A No Store Queue Transitive Scheduler Attacks */
++XEN_CPUFEATURE(TSA_L1_NO,          18*32+ 2) /*!A No L1D Transitive Scheduler Attacks */
+ 
+ #endif /* XEN_CPUFEATURE */
+ 

diff --git a/xsa525-4.20-3.patch b/xsa525-4.20-3.patch
new file mode 100644
index 0000000..fa821ae
--- /dev/null
+++ b/xsa525-4.20-3.patch
@@ -0,0 +1,107 @@
+From: Andrew Cooper <andrew.cooper3@citrix.com>
+Subject: x86/spec-ctrl: Mitigate the new TSA-Fill variant
+
+A new variant of TSA has been found, affecting only Zen5 CPUs.
+
+Updated microcode has been issued.  Unlike the original TSA, this microcode
+does enumerate VERW_CLEAR, so Xen does not need a table of microcode
+revisions.  The handling of VERW_CLEAR for guests is the same as before.
+
+A new CPUID bit, TSA_FILL_NO, indicates that the system is unaffected.  It is
+expected to be set on all Zen6 and later systems.  Zen4 and older are believed
+to be unaffected, and need to synthesise the bit for guests.
+
+This is CVE-2026-0004, part of XSA-525.
+
+Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
+Reviewed-by: Roger Pau Monné <roger@xenproject.org>
+
+diff --git a/xen/arch/x86/include/asm/cpufeature.h b/xen/arch/x86/include/asm/cpufeature.h
+index 431cf4a2a65d..f4f3730d6054 100644
+--- a/xen/arch/x86/include/asm/cpufeature.h
++++ b/xen/arch/x86/include/asm/cpufeature.h
+@@ -225,6 +225,7 @@ static inline bool boot_cpu_has(unsigned int feat)
+ /* CPUID level 0x80000021.ecx */
+ #define cpu_has_tsa_sq_no       boot_cpu_has(X86_FEATURE_TSA_SQ_NO)
+ #define cpu_has_tsa_l1_no       boot_cpu_has(X86_FEATURE_TSA_L1_NO)
++#define cpu_has_tsa_fill_no     boot_cpu_has(X86_FEATURE_TSA_FILL_NO)
+ 
+ /* Synthesized. */
+ #define cpu_has_arch_perfmon    boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
+diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c
+index 0635286700b6..42455386387f 100644
+--- a/xen/arch/x86/spec_ctrl.c
++++ b/xen/arch/x86/spec_ctrl.c
+@@ -515,7 +515,7 @@ static void __init print_details(enum ind_thunk thunk)
+      * Hardware read-only information, stating immunity to certain issues, or
+      * suggestions of which mitigation to use.
+      */
+-    printk("  Hardware hints:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
++    printk("  Hardware hints:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+            (caps & ARCH_CAPS_RDCL_NO)                        ? " RDCL_NO"        : "",
+            (caps & ARCH_CAPS_EIBRS)                          ? " EIBRS"          : "",
+            (caps & ARCH_CAPS_RSBA)                           ? " RSBA"           : "",
+@@ -542,7 +542,8 @@ static void __init print_details(enum ind_thunk thunk)
+            (e21a & cpufeat_mask(X86_FEATURE_SRSO_NO))        ? " SRSO_NO"        : "",
+            (e21a & cpufeat_mask(X86_FEATURE_SRSO_US_NO))     ? " SRSO_US_NO"     : "",
+            (e21c & cpufeat_mask(X86_FEATURE_TSA_SQ_NO))      ? " TSA_SQ_NO"      : "",
+-           (e21c & cpufeat_mask(X86_FEATURE_TSA_L1_NO))      ? " TSA_L1_NO"      : "");
++           (e21c & cpufeat_mask(X86_FEATURE_TSA_L1_NO))      ? " TSA_L1_NO"      : "",
++           (e21c & cpufeat_mask(X86_FEATURE_TSA_FILL_NO))    ? " TSA_FILL_NO"    : "");
+ 
+     /* Hardware features which need driving to mitigate issues. */
+     printk("  Hardware features:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+@@ -1602,6 +1603,33 @@ static void __init tsa_sq_l1_calculations(void)
+         setup_force_cpu_cap(X86_FEATURE_VERW_CLEAR);
+ }
+ 
++/*
++ * Transient Scheduler Attacks (L1-Fill)
++ *
++ * https://www.amd.com/content/dam/amd/en/documents/resources/bulletin/technical-guidance-for-mitigating-transient-scheduler-attacks.pdf
++ */
++static void __init tsa_fill_calculations(void)
++{
++    /* TSA is only known to affect AMD processors at this time. */
++    if ( boot_cpu_data.vendor != X86_VENDOR_AMD )
++        return;
++
++    /* If we're virtualised, don't attempt to synthesise anything. */
++    if ( cpu_has_hypervisor )
++        return;
++
++    /*
++     * Zen6 and later CPUs are expected to enumerate TSA_FILL_NO.
++     *
++     * Zen5 CPUs are vulnerable and get VERW_CLEAR in microcode.
++     *
++     * Zen4 and earlier are not believed to be affected, but do not enumerate
++     * TSA_FILL_NO.  Synthesise it.
++     */
++    if ( boot_cpu_data.x86 < 0x1a )
++        setup_force_cpu_cap(X86_FEATURE_TSA_FILL_NO);
++}
++
+ static bool __init cpu_has_gds(void)
+ {
+     /*
+@@ -2347,6 +2375,7 @@ void __init init_speculation_mitigations(void)
+     mds_calculations();
+     rfds_calculations();
+     tsa_sq_l1_calculations();
++    tsa_fill_calculations();
+ 
+     /*
+      * Parts which enumerate FB_CLEAR are those with now-updated microcode
+diff --git a/xen/include/public/arch-x86/cpufeatureset.h b/xen/include/public/arch-x86/cpufeatureset.h
+index 85f417188e98..77923984aaf7 100644
+--- a/xen/include/public/arch-x86/cpufeatureset.h
++++ b/xen/include/public/arch-x86/cpufeatureset.h
+@@ -388,6 +388,7 @@ XEN_CPUFEATURE(ITS_NO,             16*32+62) /*!A No Indirect Target Selection *
+ /* AMD-defined CPU features, CPUID level 0x80000021.ecx, word 18 */
+ XEN_CPUFEATURE(TSA_SQ_NO,          18*32+ 1) /*!A No Store Queue Transitive Scheduler Attacks */
+ XEN_CPUFEATURE(TSA_L1_NO,          18*32+ 2) /*!A No L1D Transitive Scheduler Attacks */
++XEN_CPUFEATURE(TSA_FILL_NO,        18*32+ 7) /*A  No L1D-Fill Transitive Scheduler Attacks */
+ 
+ #endif /* XEN_CPUFEATURE */
+ 

                 reply	other threads:[~2026-11-11 20:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179443028148.1.18095218021406915552.rpms-xen-7dc25c2c0bd4@fedoraproject.org \
    --to=m.a.young@durham.ac.uk \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox