Skip to content

Commit eda081d

Browse files
kristina-martsenkowilldeacon
authored andcommitted
arm64: cpufeature: Fix pointer auth hwcaps
The pointer auth hwcaps are not getting reported to userspace, as they are missing the .matches field. Add the field back. Fixes: 876e3c8 ("arm64/cpufeature: Pull out helper for CPUID register definitions") Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230428132546.2513834-1-kristina.martsenko@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 4e8f6e4 commit eda081d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

arch/arm64/kernel/cpufeature.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,26 +2657,26 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
26572657
#ifdef CONFIG_ARM64_PTR_AUTH
26582658
static const struct arm64_cpu_capabilities ptr_auth_hwcap_addr_matches[] = {
26592659
{
2660-
ARM64_CPUID_FIELDS(ID_AA64ISAR1_EL1, APA, PAuth)
2660+
HWCAP_CPUID_MATCH(ID_AA64ISAR1_EL1, APA, PAuth)
26612661
},
26622662
{
2663-
ARM64_CPUID_FIELDS(ID_AA64ISAR2_EL1, APA3, PAuth)
2663+
HWCAP_CPUID_MATCH(ID_AA64ISAR2_EL1, APA3, PAuth)
26642664
},
26652665
{
2666-
ARM64_CPUID_FIELDS(ID_AA64ISAR1_EL1, API, PAuth)
2666+
HWCAP_CPUID_MATCH(ID_AA64ISAR1_EL1, API, PAuth)
26672667
},
26682668
{},
26692669
};
26702670

26712671
static const struct arm64_cpu_capabilities ptr_auth_hwcap_gen_matches[] = {
26722672
{
2673-
ARM64_CPUID_FIELDS(ID_AA64ISAR1_EL1, GPA, IMP)
2673+
HWCAP_CPUID_MATCH(ID_AA64ISAR1_EL1, GPA, IMP)
26742674
},
26752675
{
2676-
ARM64_CPUID_FIELDS(ID_AA64ISAR2_EL1, GPA3, IMP)
2676+
HWCAP_CPUID_MATCH(ID_AA64ISAR2_EL1, GPA3, IMP)
26772677
},
26782678
{
2679-
ARM64_CPUID_FIELDS(ID_AA64ISAR1_EL1, GPI, IMP)
2679+
HWCAP_CPUID_MATCH(ID_AA64ISAR1_EL1, GPI, IMP)
26802680
},
26812681
{},
26822682
};

0 commit comments

Comments
 (0)