intel / intel/confidential-computing.sgx.sdk
threads 1:1 in binding mode of TCS?return SGX_ERROR_OUT_OF_TCS
- Dominant language
- C++
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
1.untrusted threads number must less than trusted threads in binding mode of TCS policy?
if the same threads, it will not can be used for binding urts threads.
2.in is_special_ecall is false branch
trust_thread = _acquire_thread();
// for edmm feature, we don't support simulation mode yet
// m_utility_thread will be NULL in simulation mode
if(NULL == trust_thread && NULL != m_utility_thread)
{
m_need_to_wait_for_new_thread_cond.lock();
m_utility_thread->get_enclave()->fill_tcs_mini_pool_fn();
m_need_to_wait_for_new_thread = true;
while(m_need_to_wait_for_new_thread != false)
{
m_need_to_wait_for_new_thread_cond.wait();
}
m_need_to_wait_for_new_thread_cond.unlock();
trust_thread = _acquire_thread();
}
Contributor guide
Assessment
This issue has not been assessed yet.