linux-yocto/arch/arm64
Mark Brown 59923d508b arm64: Filter out SME hwcaps when FEAT_SME isn't implemented
commit a75ad2fc76 upstream.

We have a number of hwcaps for various SME subfeatures enumerated via
ID_AA64SMFR0_EL1. Currently we advertise these without cross checking
against the main SME feature, advertised in ID_AA64PFR1_EL1.SME which
means that if the two are out of sync userspace can see a confusing
situation where SME subfeatures are advertised without the base SME
hwcap. This can be readily triggered by using the arm64.nosme override
which only masks out ID_AA64PFR1_EL1.SME, and there have also been
reports of VMMs which do the same thing.

Fix this as we did previously for SVE in 064737920b ("arm64: Filter
out SVE hwcaps when FEAT_SVE isn't implemented") by filtering out the
SME subfeature hwcaps when FEAT_SME is not present.

Fixes: 5e64b862c4 ("arm64/sme: Basic enumeration support")
Reported-by: Yury Khrustalev <yury.khrustalev@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250620-arm64-sme-filter-hwcaps-v1-1-02b9d3c2d8ef@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-17 18:37:24 +02:00
..
boot arm64: dts: qcom: x1e80100-crd: mark l12b and l15b always-on 2025-07-10 16:05:05 +02:00
configs arm64: defconfig: mediatek: enable PHY drivers 2025-06-19 15:32:02 +02:00
crypto crypto: lib/Kconfig - Hide arch options from user 2025-05-02 07:59:32 +02:00
hyperv
include arm64/mm: Close theoretical race where stale TLB entry remains valid 2025-06-27 11:11:18 +01:00
kernel arm64: Filter out SME hwcaps when FEAT_SME isn't implemented 2025-07-17 18:37:24 +02:00
kvm KVM: arm64: Tear down vGIC on failed vCPU creation 2025-04-20 10:15:34 +02:00
lib arm64: insn: Add support for encoding DSB 2025-05-18 08:24:58 +02:00
mm arm64: poe: Handle spurious Overlay faults 2025-07-17 18:37:04 +02:00
net arm64: bpf: Only mitigate cBPF programs loaded by unprivileged users 2025-05-18 08:24:58 +02:00
tools arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9 2025-04-25 10:48:04 +02:00
xen xen/arm: call uaccess_ttbr0_enable for dm_op hypercall 2025-06-19 15:32:36 +02:00
Kbuild
Kconfig arm64: Support ARM64_VA_BITS=52 when setting ARCH_MMAP_RND_BITS_MAX 2025-06-19 15:31:37 +02:00
Kconfig.debug
Kconfig.platforms
Makefile kbuild: rust: add rustc-min-version support function 2025-06-27 11:11:40 +01:00