已关闭
[Bug-Report|缺陷反馈]: MultiScaleDeformableAttn 输入 shape 不一致时可触发 GM 越界读 #5305
cuijie创建于 8月28日关闭于 9月11日
CANN-robot
9月8日 评论:
9月8日 评论:
Notice
@cuijie25 , this issue is linked to an open PR. Please merge the PR before closing this issue.


CANN-robot
9月8日 评论:
9月8日 评论:
Notice
@cuijie25 , this issue is linked to an open PR. Please merge the PR before closing this issue.


9月8日 issue状态由 进行中 改变为 已完成
9月8日 关闭了 issue
9月11日 关闭了 issue
9月11日 添加了label:resolved
Describe the current behavior / 问题描述 (Mandatory / 必填)
MultiScaleDeformableAttn 算子 host 侧 tiling 校验不完整,存在 GM 越界读风险:
Environment / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
构造非法 shape 用例验证:修复前 kernel 越界读;修复后 tiling 返回 GRAPH_FAILED / kernel Trap 报错,打印 numLevels 一致性或 H/W 合法性诊断日志。
Special notes for this issue/备注 (Optional / 选填)
关联修复 PR:https://gitcode.com/cann/ops-nn/pulls/9456