Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【OLK-5.10】hi1215 芯片概率性从核拉起失败
Done
#I634EK
Task
hulk-robot
Opened this issue
2022-11-25 14:31
【严重程度】 严重 【特性】 【重现类型】 有条件概率重现 【定位分析】 </p><p>1215内核启动时,低概率会发生某些从核启动失败的情况。</p><p><br></p><p>在从核启动的过程中,会采用一个提前预留的 __v7_setup_stack 作为 mini-stack 使用,在执行 v7_invalidate_l1 的前后用来保存通用寄存器 (R0-R6) 和 LR,该 mini-stack 未独占 cacheline 且该内存区域所有核共享,从核在使用该栈时未使能 MMU(cache 也未使能),直接访问内存。</p><p><br></p><p>当某个从核(以 CPU7 为例)将其寄存器和 LR 压入栈后,因为 cacheline 共享,其他核(除 CPU7 以外的核)可能会将 cache 中的脏数据刷到内存里,导致这个核(CPU7)从栈中恢复寄存器和 LR 时恢复的 LR 值错误,后续执行 ret lr 的时候导致 CPU7 从非预期地址开始执行。</p><p><br></p><p>在 A15 上表现为出栈时 LR 被错误地恢复为 0,导致 CPU7 重新执行了一次安全非安全切换,触发未定义指令异常,进而导致 CPU7 启动失败。</p><p><br></p><p> 【影响评估及测试建议】 </p><p>影响评估:1215从核拉起失败会影响产品业务和系统性能</p><p>测试建议:在1215单板上反复reboot进行测试</p><p> 【对外部影响描述】 无</p><p>
【严重程度】 严重 【特性】 【重现类型】 有条件概率重现 【定位分析】 </p><p>1215内核启动时,低概率会发生某些从核启动失败的情况。</p><p><br></p><p>在从核启动的过程中,会采用一个提前预留的 __v7_setup_stack 作为 mini-stack 使用,在执行 v7_invalidate_l1 的前后用来保存通用寄存器 (R0-R6) 和 LR,该 mini-stack 未独占 cacheline 且该内存区域所有核共享,从核在使用该栈时未使能 MMU(cache 也未使能),直接访问内存。</p><p><br></p><p>当某个从核(以 CPU7 为例)将其寄存器和 LR 压入栈后,因为 cacheline 共享,其他核(除 CPU7 以外的核)可能会将 cache 中的脏数据刷到内存里,导致这个核(CPU7)从栈中恢复寄存器和 LR 时恢复的 LR 值错误,后续执行 ret lr 的时候导致 CPU7 从非预期地址开始执行。</p><p><br></p><p>在 A15 上表现为出栈时 LR 被错误地恢复为 0,导致 CPU7 重新执行了一次安全非安全切换,触发未定义指令异常,进而导致 CPU7 启动失败。</p><p><br></p><p> 【影响评估及测试建议】 </p><p>影响评估:1215从核拉起失败会影响产品业务和系统性能</p><p>测试建议:在1215单板上反复reboot进行测试</p><p> 【对外部影响描述】 无</p><p>
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Jianhua Zhang
chris_zjh
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register