From 688ab57b9349adb19277d88f2469ceeadb8ba083 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 14 Mar 2023 21:33:04 +0000 Subject: feat(gcs): support guarded control stack Arm v9.4 introduces support for Guarded Control Stack, providing mitigations against some forms of RPO attacks and an efficient mechanism for obtaining the current call stack without requiring a full stack unwind. Enable access to this feature for EL2 and below, context switching the newly added EL2 registers as appropriate. Change the FVP platform to default to handling this as a dynamic option so the right decision can be made by the code at runtime. Signed-off-by: Mark Brown Change-Id: I691aa7c22e3547bb3abe98d96993baf18c5f0e7b --- make_helpers/defaults.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'make_helpers') diff --git a/make_helpers/defaults.mk b/make_helpers/defaults.mk index 808a058b2..34a9bc6b9 100644 --- a/make_helpers/defaults.mk +++ b/make_helpers/defaults.mk @@ -188,6 +188,9 @@ ENABLE_FEAT_S2POE := 0 # Flag to enable access to Stage 1 Permission Overlay (FEAT_S1POE) ENABLE_FEAT_S1POE := 0 +# Flag to enable access to Guarded Control Stack (FEAT_GCS) +ENABLE_FEAT_GCS := 0 + # By default BL31 encryption disabled ENCRYPT_BL31 := 0 -- cgit v1.2.1