[PATCH] arm64/gcs: Don't try to access GCS registers if arm64.nogcs is enabled

Will Deacon will at kernel.org
Fri Jul 4 10:44:11 PDT 2025


On Thu, 19 Jun 2025 22:15:41 +0100, Mark Brown wrote:
> During EL2 setup if GCS is advertised in the ID registers we will reset the
> GCS control registers GCSCR_EL1 and GCSCRE0_EL1 to known values in order to
> ensure it is disabled. This is done without taking into account overrides
> supplied on the command line, meaning that if the user has configured
> arm64.nogcs we will still access these GCS specific registers. If this was
> done because EL3 does not enable GCS this results in traps to EL3 and a
> failed boot which is not what users would expect from having set that
> parameter.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64/gcs: Don't try to access GCS registers if arm64.nogcs is enabled
      https://git.kernel.org/arm64/c/0d1c86b84096

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list