linux/arch/arm64/kernel
Mark Brown 98a97bf415 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: fc84bc5378 ("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>
2025-12-15 12:06:40 +00:00
..
pi arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
probes arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
vdso
vdso32 kbuild: Add '-fms-extensions' to areas with dedicated CFLAGS 2025-10-30 21:26:28 -04:00
.gitignore
Makefile
Makefile.syscalls
acpi.c arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
acpi_numa.c
acpi_parking_protocol.c
alternative.c arm64: Reject modules with internal alternative callbacks 2025-11-07 15:00:14 +00:00
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
compat_alignment.c
cpu-reset.S
cpu_errata.c
cpu_ops.c
cpufeature.c ARM: 2025-12-05 17:01:20 -08:00
cpuinfo.c
crash_dump.c
debug-monitors.c arm64 updates for 6.18 2025-09-29 18:48:39 -07:00
efi-header.S
efi-rt-wrapper.S
efi.c arm64/efi: Call EFI runtime services without disabling preemption 2025-11-11 18:59:22 +00:00
elfcore.c
entry-common.c arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
entry-fpsimd.S
entry-ftrace.S arm64: Fix double word in comments 2025-11-12 17:07:59 +00:00
entry.S
fpsimd.c arm64/efi: Remove unneeded SVE/SME fallback preserve/store handling 2025-12-15 12:05:37 +00:00
ftrace.c arm64: Fix typos and spelling errors in comments 2025-11-12 17:06:21 +00:00
head.S
hibernate-asm.S
hibernate.c
hw_breakpoint.c
hyp-stub.S KVM: arm64: GICv3: Detect and work around the lack of ICV_DIR_EL1 trapping 2025-11-24 14:29:11 -08:00
idle.c
image-vars.h KVM: arm64: Turn vgic-v3 errata traps into a patched-in constant 2025-11-24 14:29:11 -08:00
image.h
io.c
irq.c arm64: use SOFTIRQ_ON_OWN_STACK for enabling softirq stack 2025-11-07 19:55:52 +00:00
jump_label.c
kaslr.c
kexec_image.c
kgdb.c
kuser32.S
machine_kexec.c arm64: Fix typos and spelling errors in comments 2025-11-12 17:06:21 +00:00
machine_kexec_file.c
module-plts.c
module.c arm64: Reject modules with internal alternative callbacks 2025-11-07 15:00:14 +00:00
mte.c mm/huge_memory: initialise the tags of the huge zero folio 2025-11-09 21:19:46 -08:00
paravirt.c
patching.c
pci.c
perf_callchain.c
perf_regs.c
pointer_auth.c
process.c arm64/gcs: Flush the GCS locking state on exec 2025-12-15 12:06:40 +00:00
proton-pack.c arm64: proton-pack: Fix hard lockup when !MITIGATE_SPECTRE_BRANCH_HISTORY 2025-11-24 13:31:50 +00:00
psci.c
ptrace.c arm64/sme: Support disabling streaming mode via ptrace on SME only systems 2025-11-17 20:11:54 +00:00
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S
return_address.c
rsi.c
sdei.c Merge branches 'for-next/misc', 'for-next/kselftest', 'for-next/efi-preempt', 'for-next/assembler-macro', 'for-next/typos', 'for-next/sme-ptrace-disable', 'for-next/local-tlbi-page-reused', 'for-next/mpam', 'for-next/acpi' and 'for-next/documentation', remote-tracking branch 'arm64/for-next/perf' into for-next/core 2025-11-28 15:47:12 +00:00
setup.c
signal.c
signal32.c
sigreturn32.S
sleep.S
smccc-call.S
smp.c arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
smp_spin_table.c
stacktrace.c
suspend.c
sys.c
sys32.c
sys_compat.c
syscall.c arm64: add unlikely hint to MTE async fault check in el0_svc_common 2025-11-11 19:49:19 +00:00
time.c
topology.c arch_topology: move parse_acpi_topology() to common code 2025-10-22 08:10:57 +02:00
trace-events-emulation.h
traps.c arm64: Fix typos and spelling errors in comments 2025-11-12 17:06:21 +00:00
vdso-wrap.S
vdso.c
vdso32-wrap.S
vmcore_info.c arm64/sysreg: Replace TCR_EL1 field macros 2025-11-13 15:58:30 +00:00
vmlinux.lds.S
watchdog_hld.c