Skip to content

Conversation

@superajun-wsj
Copy link

No description provided.

jeffery.wsj and others added 2 commits February 2, 2024 16:37
… sgx tee

tee libos occlum hooks all syscall by providing a special glibc or musl
implementation to support java and c++ in sgx tee, but go's syscall is
not dependent on glibc and musl,it was implemented by plan9 assembly
in go runtime directly. we need to hook all syscalls by replacing syscall
instruction and jump into occlum syscall process entry.

Reviewed-by: lei.yul <[email protected]>
Reviewed-by: denghui.ddh <[email protected]>
Reviewed-by: qingfeng.yy <[email protected]>
go internal-abi defines x15 register as fixed zero value to initialize some
stack variables in x64 architecture. but tee libos occlum could not guarantee
to clear x15 when a syscall returns, so ago have to clear x15 when a occlum
syscall returned to prevent x15 register from pollution.

Reviewed-by: lei.yul <[email protected]>
Reviewed-by: denghui.ddh <[email protected]>
Reviewed-by: qingfeng.yy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant