]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:23 +0000 (12:57 +0100)
commit5bb88024409ef7bb53e5d42d35097a7a3157f764
tree2eb98ba297d377a2f90c62a2914ca7ba62ad20a6
parent7992a8c946890a1a6d870bfac4e737a71a8a1676
arm64/gcs: Flush the GCS locking state on exec

commit 98a97bf41528ef738b06eb07ec2b2eb1cfde6ce6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/process.c