]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/gcs: Flush the GCS locking state on exec
authorMark Brown <broonie@kernel.org>
Sat, 29 Nov 2025 00:48:45 +0000 (00:48 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 15 Dec 2025 12:06:40 +0000 (12:06 +0000)
commit98a97bf41528ef738b06eb07ec2b2eb1cfde6ce6
tree9d062f855eb7d4f27118b5d5dd6b583d35e1cdba
parent63de2b3859ba1def9f43ed0a9c25a68810208e5c
arm64/gcs: Flush the GCS locking state on exec

When we exec a new task we forget to flush the set of locked GCS mode bits.
Since we do flush the rest of the state this means that if GCS is locked
the new task will be unable to enable GCS, it will be locked as being
disabled. Add the expected flush.

Fixes: fc84bc5378a8 ("arm64/gcs: Context switch GCS state for EL0")
Cc: <stable@vger.kernel.org> # 6.13.x
Reported-by: Yury Khrustalev <Yury.Khrustalev@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Tested-by: Yury Khrustalev <yury.khrustalev@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/process.c