We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b8fc6 commit cce4c41Copy full SHA for cce4c41
arch/arm64/kernel/process.c
@@ -288,7 +288,9 @@ static void flush_gcs(void)
288
if (!system_supports_gcs())
289
return;
290
291
- gcs_free(current);
+ current->thread.gcspr_el0 = 0;
292
+ current->thread.gcs_base = 0;
293
+ current->thread.gcs_size = 0;
294
current->thread.gcs_el0_mode = 0;
295
write_sysreg_s(GCSCRE0_EL1_nTR, SYS_GCSCRE0_EL1);
296
write_sysreg_s(0, SYS_GCSPR_EL0);
0 commit comments