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

[Check code with CI] aj/update-sgx-alloc #609

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Conversation

Taowyoo
Copy link
Collaborator

@Taowyoo Taowyoo commented May 24, 2024

Glue code for snmalloc allocator in SGX enclaves.

@Taowyoo
Copy link
Collaborator Author

Taowyoo commented Jun 20, 2024

The code change here should be moved to fortanix/rust#16
CC: @NirjharRoyiitk @aditijannu
Could you help doing this ?

.github/workflows/build.yml Show resolved Hide resolved
snmalloc-edp/build.rs Show resolved Hide resolved
let sn_alloc_align = sn_alloc_align.expect("sn_alloc_align");

let mut get_u64_at_symbol = |sym: elf::symbol::Symbol| {
assert_eq!(sym.st_size, 8);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: is there a constant we can use instead of 8 here? Or is there a Rust equivalent of sizeof uint64_t? This applies for the two uses of a literal 8 two lines down as well.

snmalloc-edp/build.rs Outdated Show resolved Hide resolved
snmalloc-edp/src/rust-sgx-snmalloc-shim.cpp Show resolved Hide resolved
snmalloc-edp/src/rust-sgx-snmalloc-shim.cpp Outdated Show resolved Hide resolved
snmalloc-edp/src/rust-sgx-snmalloc-shim.cpp Outdated Show resolved Hide resolved
snmalloc-edp/tests/global_alloc.rs Show resolved Hide resolved
@arai-fortanix arai-fortanix self-requested a review June 20, 2024 21:30
@aditijannu
Copy link

Addressed most of the comments left by @arai-fortanix in the latest commit but the unit test seems to be failing. Once I resolve that issue, I will move snmalloc-edp over to the rust repository.

@Taowyoo Taowyoo marked this pull request as draft September 3, 2024 18:48
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.

5 participants