已关闭
【自提单】【MindFormers】代码内部通信矩阵等安全问题 #1950
zyw-hw创建于  2025年6月24日关闭于  2025年7月1日
zyw-hw
zyw-hw成员
2025年6月24日 创建

1.Describe the current behavior / 问题描述 (Mandatory / 必填)

代码中存在通信矩阵多余、全0监听等问题,需整改

2.Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment / 硬件环境(Mandatory / 必填):
    Hardware (e.g.Ascend910B1/Mac CPU)

    样例:

后端类型 硬件具体类别
Ascend 910B1
CPU Win CPU
  • Software Environment / 软件环境 (Mandatory / 必填):
    迭代版本新增问题样例:(根据实际修改和增删)
Software Version(根据实际修改,必填)
MindSpore MindSpore 2.7.0
MindFormers dev
Python Python 3.11.4

bugfix版本问题引入样例:(根据实际修改和增删)

不涉及

3.Related testcase / 关联用例 (Mandatory / 必填)

不涉及

4.Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

不涉及

5.Describe the expected behavior / 预期结果 (Mandatory / 必填)

不涉及

6.Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

不涉及报错日志

7.Special notes for this issue/备注 (Optional / 选填)

**【定位人】**吴某某(根据实际修改)

likedislike
zyw-hwzyw-hw成员
2025年6月24日 创建了缺陷
zyw-hwzyw-hw成员
2025年6月24日 添加了   ctl/rdselftest 标签
zyw-hwzyw-hw成员
2025年6月24日 修改了标题
zyw-hwzyw-hw成员
2025年6月24日 关联了MindSpore/mindformers Pull Request !6608
zyw-hwzyw-hw成员
2025年6月25日 修改了描述
zyw-hwzyw-hw成员
2025年6月25日 关联了MindSpore/mindformers Pull Request !6626
zyw-hwzyw-hw成员
2025年6月26日 关联了MindSpore/mindformers Pull Request !6641
zyw-hw
zyw-hw成员
2025年6月26日 评论:

Appearance & Root Cause
问题:【安全】代码中存在通信矩阵多余、全0监听等问题,需整改
根因:
文档机代码中存在通信矩阵多余、全0监听、trust_remote_code等安全问题

Fix Solution
修改函数的默认入参,使其不存在pickle序列化和反序列化风险

Fix Description & Test Suggestion
https://gitee.com/mindspore/mindformers/pulls/6641
https://gitee.com/mindspore/mindformers/pulls/6608
https://gitee.com/mindspore/mindformers/pulls/6626

Self-test Report & DT Review
目前前后端耗时在12分钟以内。
是否需要补充 ST/UT:否
原因:非功能模块

Introduction Analysis
引入类型:特性合入引入
引入PR:https://gitee.com/mindspore/mindformers/pulls/6267
PR合入时间:2025年5月29日
问题是否偶现:是

likedislike
zyw-hwzyw-hw成员
2025年6月26日 将任务状态从 TODO 修改为DONE
zyw-hwzyw-hw成员
2025年7月1日 关联了MindSpore/mindformers Pull Request !6682
zyw-hwzyw-hw成员
2025年7月1日 将任务状态从 DONE 修改为TODO
zyw-hwzyw-hw成员
2025年7月1日 将任务状态从 TODO 修改为DONE
zyw-hwzyw-hw成员
2025年7月15日 修改了标题
Iivss成员
2025年9月10日 移除了ctl/rdselftest(已删除)标签
AAtomGit-Bot
2025年12月14日 关联了看板:MindSpore Bug Tracking System