## Description

Fix DCAP verification concurrency issue by introducing a global lock. It seems 
the "sgx_qv_verify_quote" logic breaks (return 
SGX_QL_ERROR_UNEXPECTED or  collateral_exp_status==1) when there are there are 
concurrent verification request.
I need some time to figure out the root cause.

Fixes # (issue)

## Type of change (select or add applied and delete the others)

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality 
to not work as expected)
- [ ] API change with a documentation update
- [ ] Additional test coverage
- [ ] Code cleanup or just sync with upstream third-party crates

## How has this been tested?

## Checklist

- [x] Fork the repo and create your branch from `master`.
- [ ] If you've added code that should be tested, add tests.
- [ ] If you've changed APIs, update the documentation.
- [ ] Ensure the tests pass (see CI results).
- [ ] Make sure your code lints/format.

You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave/pull/586

-- Commit Summary --

  * [Fix] DCap service error.

-- File Changes --

    M dcap/src/main.rs (36)

-- Patch Links --

https://github.com/apache/incubator-teaclave/pull/586.patch
https://github.com/apache/incubator-teaclave/pull/586.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/586

Reply via email to