【标题描述】执行长稳sysfs用例中断,产生core文件。
【环境信息】
硬件信息:
ethtool -i enp125s0f0
driver: hns3
软件信息:
1) OS版本及分支:openEuler 20.03 LTS SP3
2) 内核信息:4.19.90-2111.5.0.0123.oe1.aarch64
3) 软件组件:dfx_long_stress
如果有特殊组网,请提供网络拓扑图
【问题复现步骤】
cd dfx_long_stress
sh startrunall.sh -p EulerOS_arm
出现概率:必现
【预期结果】
长稳程序连续执行多天,不中断,产生core文件
【实际结果】
执行中产生core文件
【附件信息】
Hi mazenggang3, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @Xie XiuQi, @YangYingliang, @成坚 (CHENG Jian).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题原因:
由于内容较多,debugfs中一条命令实际需要多次读取操作,并发读取时会造成时序混乱,内存访问错乱,导致call trace。
解决方案:
通过增加锁进行保护。
登录 后才可以发表评论