Re: (subset) [PATCH v2 0/3] arm64/gcs: Store the GCSCRE0_EL1 register value not userspace mode
From: Catalin Marinas
Date: Thu Nov 12 2026 - 16:44:27 EST
On Thu, 05 Nov 2026 13:00:11 +0000, Mark Brown wrote:
> At present we store the userspace GCS mode for a task using the prctl()
> value set by userspace rather than the mode configuration written to
> GCSCRE0_EL1 which means the register value needs to be generated on each
> task switch when the new task uses GCS. Since the mapping between the
> two is easily reversable switch things around and store the value that
> we need in the context switch path.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/3] arm64/gcs: Ignore attempts to change GCS mode during signal return
https://git.kernel.org/arm64/c/d395db3dcd4c