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

Fix shutdown bugs #770

Merged
merged 2 commits into from
Aug 11, 2020
Merged

Fix shutdown bugs #770

merged 2 commits into from
Aug 11, 2020

Conversation

prp
Copy link
Member

@prp prp commented Aug 11, 2020

This PR fixes two shutdown bugs:

The unmount code had an off-by-one error, which prevented correct
unmounting.
Since we are shutting down the enclave, the state will be cleaned up
anyway.
@vtikoo vtikoo merged commit 54512dd into oe_port Aug 11, 2020
@vtikoo vtikoo deleted the prp/fix_shutdown_bugs branch August 11, 2020 21:21
@@ -1227,7 +1230,7 @@ static void* lkl_termination_thread(void* args)

// Unmount mounts
long res;
for (int i = sgxlkl_enclave_state.num_disk_state - 1; i > 0; --i)
for (int i = cfg->num_mounts - 1; i >= 0; i--)
Copy link
Contributor

Choose a reason for hiding this comment

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

o man.

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.

None yet

4 participants