Lines Matching refs:thread
53 tsk->thread.gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_alloc_thread_stack()
64 tsk->thread.gcs_base = addr; in gcs_alloc_thread_stack()
65 tsk->thread.gcs_size = size; in gcs_alloc_thread_stack()
66 tsk->thread.gcspr_el0 = addr + size - sizeof(u64); in gcs_alloc_thread_stack()
143 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_ENABLE) in gcs_set_el0_mode()
146 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_WRITE) in gcs_set_el0_mode()
149 if (task->thread.gcs_el0_mode & PR_SHADOW_STACK_PUSH) in gcs_set_el0_mode()
163 if (task->thread.gcs_base) in gcs_free()
164 vm_munmap(task->thread.gcs_base, task->thread.gcs_size); in gcs_free()
166 task->thread.gcspr_el0 = 0; in gcs_free()
167 task->thread.gcs_base = 0; in gcs_free()
168 task->thread.gcs_size = 0; in gcs_free()
194 if (task->thread.gcs_base || task->thread.gcspr_el0) in arch_set_shadow_stack_status()
205 task->thread.gcspr_el0 = gcs + size - sizeof(u64); in arch_set_shadow_stack_status()
206 task->thread.gcs_base = gcs; in arch_set_shadow_stack_status()
207 task->thread.gcs_size = size; in arch_set_shadow_stack_status()
209 write_sysreg_s(task->thread.gcspr_el0, in arch_set_shadow_stack_status()
213 task->thread.gcs_el0_mode = arg; in arch_set_shadow_stack_status()
229 return put_user(task->thread.gcs_el0_mode, arg); in arch_get_shadow_stack_status()
245 task->thread.gcs_el0_locked |= arg; in arch_lock_shadow_stack_status()