linux-yocto/arch/arm64
Mark Brown d5024dc5e6 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: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-24 08:53:20 +02:00
..
boot arm64: dts: rockchip: use cs-gpios for spi1 on ringneck 2025-07-24 08:53:13 +02:00
configs arm64: defconfig: mediatek: enable PHY drivers 2025-06-19 15:28:24 +02:00
crypto
hyperv
include arm64/mm: Close theoretical race where stale TLB entry remains valid 2025-06-27 11:08:46 +01:00
kernel arm64: Filter out SME hwcaps when FEAT_SME isn't implemented 2025-07-24 08:53:20 +02:00
kvm KVM: arm64: Tear down vGIC on failed vCPU creation 2025-04-25 10:45:23 +02:00
lib arm64: insn: Add support for encoding DSB 2025-05-18 08:24:10 +02:00
mm arm64: Restrict pagetable teardown to avoid false warning 2025-06-27 11:09:00 +01:00
net bpf, arm64: Fix address emission with tag-based KASAN enabled 2025-05-22 14:12:25 +02:00
tools arm64: errata: Add workaround for Arm errata 3194386 and 3312417 2024-08-14 13:58:48 +02:00
xen xen/arm: call uaccess_ttbr0_enable for dm_op hypercall 2025-06-19 15:28:46 +02:00
Kbuild
Kconfig arm64: Support ARM64_VA_BITS=52 when setting ARCH_MMAP_RND_BITS_MAX 2025-06-19 15:28:07 +02:00
Kconfig.debug
Kconfig.platforms
Makefile arm64: Force position-independent veneers 2024-11-01 01:58:27 +01:00