Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ago1.20.0 occlum #6

Open
wants to merge 2 commits into
base: ago1.20.0
Choose a base branch
from

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