37 Star 73 Fork 80

openEuler / secGear

 / 详情

同一enclave下,多线程创建任务,多次执行会导致D状态进程

已完成
缺陷
创建于  
2022-12-14 15:48

1.创建enclave
2.创建16线程进行同步任务调用
3.编译为二进制程序

第一次执行:通过无问题
第二次执行:进入D状态

[root@openEuler ~]# ps aux | grep secgear
root 8779 0.0 0.0 2852 1468 pts/0 D+ 15:15 0:00 /vendor/bin/secgear_switchless_wakeup_multicall
root 8781 0.0 0.0 21524 1920 pts/1 S+ 15:15 0:00 grep --color=auto secgear

评论 (2)

lijiaming 创建了缺陷

Hi lijiaming666, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-confidential-computing, and any of the maintainers: @blue , @chenmaodong , @itrustee_kernel , @dongdo-yao , @houmingyong , @modric , @hzero1996

openeuler-ci-bot 添加了
 
sig/sig-confidential
标签
lijiaming 修改了描述

测试用例中默认16个线程的异步调用task_id是0 .. 15
实际上16个线程异步调用执行时,有的线程开始执行时,有的线程已经结束,会复用空闲的id
查询时使用 0 .. 15 查询,会导致有些异步结果未查询,线程未释放。

测试用例适配,用调用异步调用时返回的task_id

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/openeuler/secGear.git
git@gitee.com:openeuler/secGear.git
openeuler
secGear
secGear

搜索帮助