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

Replace enclave mmap with LKL mmap implementation #597

Open
prp opened this issue Jul 6, 2020 · 0 comments
Open

Replace enclave mmap with LKL mmap implementation #597

prp opened this issue Jul 6, 2020 · 0 comments
Labels
area: sgx-lkl Core SGX-LKL functionality enhancement p3 Non-blocking priority
Milestone

Comments

@prp
Copy link
Member

prp commented Jul 6, 2020

Currently SGX-LKL has a separate mmap implementation, and does not use LKL's mmap() for heap allocations. A drawback of this design is that LKL is unaware of userspace allocations and maintains its own fragmented memory space.

Instead, we should remove the enclave mmap() implementation and have all allocations be handled by LKL.

Currently, replacing the enclave mmap allocator with the LKL one results in a segfault in the musl libc dynamic loader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sgx-lkl Core SGX-LKL functionality enhancement p3 Non-blocking priority
Projects
None yet
Development

No branches or pull requests

1 participant