Re: [PATCH v10 10/40] arm64/cpufeature: Runtime detection of Guarded Control Stack (GCS)

2024-08-16 Thread Catalin Marinas
On Thu, Aug 01, 2024 at 01:06:37PM +0100, Mark Brown wrote: > @@ -2870,6 +2872,13 @@ static const struct arm64_cpu_capabilities > arm64_features[] = { > .matches = has_nv1, > ARM64_CPUID_FIELDS_NEG(ID_AA64MMFR4_EL1, E2H0, NI_NV1) > }, > + { > + .de

[PATCH v10 10/40] arm64/cpufeature: Runtime detection of Guarded Control Stack (GCS)

2024-08-01 Thread Mark Brown
Add a cpufeature for GCS, allowing other code to conditionally support it at runtime. Reviewed-by: Thiago Jung Bauermann Signed-off-by: Mark Brown --- arch/arm64/include/asm/cpufeature.h | 6 ++ arch/arm64/kernel/cpufeature.c | 9 + arch/arm64/tools/cpucaps| 1 + 3