diff options
| author | Mark Brown <broonie@kernel.org> | 2026-11-05 13:00:12 +0000 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2026-11-12 18:34:49 +0000 |
| commit | d395db3dcd4c590d26a2f3d581d8d5b7ddbfa478 (patch) | |
| tree | 210b35160cd1e754dfb4ebe4fe127a88617d7317 /tools/perf/scripts/python | |
| parent | 3c47ec82540ce89a6fdfd5e0e6d79f35892adfa4 (diff) | |
arm64/gcs: Ignore attempts to change GCS mode during signal return
If userspace tries to update the GCS mode as part of signal return then
we update the thread state but don't update GCSCRE0_EL1, meaning the
change does not take effect. We may also get issues for other tasks on
context switch since we suppress writes of the register if the two tasks
have the same mode.
Since no currently known userspace tries to use this functionality close
this by ignoring any attempt to change the mode through signal return.
The GCS mode for the current thread can be changed using the prctl()
interface and will be preserved on signal return, allowing updates to
the mode from the signal handler.
Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/as-8IqsbMbOBo5Oq@arm.com
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Fixes: 16f47bb9ac8a ("arm64/signal: Expose GCS state in signal frames")
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
