7 Star 0 Fork 14

src-openEuler / cryptsetup

 / 详情

创建sm4加密设备,出现coredump

已验收
缺陷
创建于  
2023-03-09 22:27

【标题描述】创建sm4加密设备,出现coredump
【环境信息】
硬件信息:虚拟机(arm x86)
软件信息:
输入图片说明

【问题复现步骤】

test_pwd="Huawei12#$"
echo -e "${test_pwd}\n${test_pwd}" | cryptsetup -c sm4-xts-plain64 --key-size=256 --hash sm3 luksFormat --pbkdf=pbkdf2 --pbkdf-force-iterations=1000 "$test_disk"

【预期结果】
创建加密设备成功
【实际结果】
产生coredump
【附件信息】
比如系统message日志/组件日志、dump信息、图片等

评论 (3)

jinjin 创建了缺陷

Hi yanglijin, 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: Storage, and any of the maintainers: @liuzhiqiang , @linfeilong835 , @zero , @louhongxiang , @swf504

openeuler-ci-bot 添加了
 
sig/Storage
标签
jinjin 里程碑设置为openEuler-23.03-round-2
jinjin 负责人设置为swf504
jinjin 优先级设置为主要
jinjin 修改了描述
jinjin 修改了标题

从core文件分析可知,测试中设置的迭代次数为4294967295(INT_MAX),而23.03版本使用的是openssl-3.0.8,该版本支持的迭代次数为UINT_MAX,因此程序会继续执行下去,并且会执行较长时间(迭代次数较大),测试用例若超过一定时间,会被系统kill,导致程序coredump,从该用例历史执行情况来看,测试时间都在1小时,与上述分析相吻合,因此该问题为非问题。

为测试用例超时kill造成,建议调整用例

swf504 任务状态待办的 修改为已完成
张以正 任务状态已完成 修改为已验收

登录 后才可以发表评论

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

搜索帮助