mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
[Pal/Linux-SGX] Zero out LibOS TCB area on thread startup
This commit is contained in:
committed by
Dmitrii Kuvaiskii
parent
51b4714e2c
commit
2a978423fa
@@ -88,6 +88,8 @@ void pal_start_thread (void)
|
||||
new_thread->param = NULL;
|
||||
SET_ENCLAVE_TLS(thread, new_thread);
|
||||
SET_ENCLAVE_TLS(ready_for_exceptions, 1UL);
|
||||
PAL_TCB* pal_tcb = pal_get_tcb();
|
||||
memset(&pal_tcb->libos_tcb, 0, sizeof(pal_tcb->libos_tcb));
|
||||
callback((void *) param);
|
||||
_DkThreadExit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user