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

Async usercall interface for SGX enclaves #291

Closed
wants to merge 26 commits into from

Commits on Feb 26, 2021

  1. Configuration menu
    Copy the full SHA
    9a9b2a0 View commit details
    Browse the repository at this point in the history
  2. Poll based interface

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    373a2d2 View commit details
    Browse the repository at this point in the history
  3. Poll through separate type

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    a75e589 View commit details
    Browse the repository at this point in the history
  4. Simplify CancelHandle

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    95ec8ae View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c650f46 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6a2437 View commit details
    Browse the repository at this point in the history
  7. Remove reserved field

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    c038129 View commit details
    Browse the repository at this point in the history
  8. Add CallbackHandlerWaker

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    6eb6a34 View commit details
    Browse the repository at this point in the history
  9. Minor fixes

    mzohreva committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    7668388 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    de6b5f3 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Configuration menu
    Copy the full SHA
    f5f2199 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2021

  1. Configuration menu
    Copy the full SHA
    6e5617e View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Configuration menu
    Copy the full SHA
    4cf2a8e View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Fix race condition when cancel is received before usercall

    `UsercallEvent::Start` was being sent in `fn handle_usercall`,
    which is too late. It needs to be sent before we receive the next
    usercall from the enclave so we can maintain the invariant that
    "we only need to keep track of cancels received before the actual
    usercall if the read position has not moved past the write position
    when cancel was received."
    mzohreva committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    cf85cb6 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Configuration menu
    Copy the full SHA
    e1e92d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d106b45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54c4623 View commit details
    Browse the repository at this point in the history
  4. Merge #393

    393: [PLAT-896] Verify fifo descriptor pointers r=jethrogb a=raoulstrackx
    
    Some checks are missing when allocating and processing `FifoDescriptor`
    
    Co-authored-by: Raoul Strackx <raoul.strackx@fortanix.com>
    bors[bot] and raoulstrackx committed May 9, 2022
    Configuration menu
    Copy the full SHA
    d7632ef View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2022

  1. Configuration menu
    Copy the full SHA
    b730db0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8117cb3 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2022

  1. Merge #398

    398: [PLAT-838] Refactor `ipc_queue` backport r=jethrogb a=raoulstrackx
    
    Backports #396
    
    Co-authored-by: Raoul Strackx <raoul.strackx@fortanix.com>
    bors[bot] and raoulstrackx committed Jun 2, 2022
    Configuration menu
    Copy the full SHA
    0837fce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1008a62 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Merge #400

    400: Rust nightly compatibility r=jethrogb a=raoulstrackx
    
    The `mz/async-usercalls` is a rather old branch that hasn't been kept up to date with the latest Rust nightly compilers. This PR corrects this situation by backporting many of the changes already on master.
    
    Co-authored-by: Raoul Strackx <raoul.strackx@fortanix.com>
    bors[bot] and raoulstrackx committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    9d9dc4c View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Configuration menu
    Copy the full SHA
    367d286 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Configuration menu
    Copy the full SHA
    c10e404 View commit details
    Browse the repository at this point in the history
  2. Merge #432

    432: Enable `enclave_loader()` fallback to libsgx_enclave_common.so.1 r=Taowyoo a=raoulstrackx
    
    The `aesmd` service depends on a `dcap_quoteprov.so` library (the DCAP provider) to aid in DCAP attestations. For it to work correctly, it may need to (recursively) request a DCAP attestation itself. For that a `dcap-ql::enclave_loader` call is required. Unfortunately, when this happens as part of the `aesmd` service, `Dl::this()` returns `/opt/intel/sgx-aesm-service/aesm/aesm_service`. This leads to an error as the expected symbols can't be located. This PR adds a fallback to the `libsgx_enclave_common.so.1` library (or `sgx_enclave_common.dll` on windows).
    
    Co-authored-by: Raoul Strackx <raoul.strackx@fortanix.com>
    Co-authored-by: Yuxiang Cao <yuxiang.cao@fortanix.com>
    3 people committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    0a64b40 View commit details
    Browse the repository at this point in the history