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
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】动态大页测试进程执行与分配拆分并发出现vmcore
Done
#I66OCA
Task
hulk-robot
Opened this issue
2022-12-19 14:33
【严重程度】 一般 【特性】 内存管理 【重现类型】 有条件必然重现 【定位分析】 </p><p><br></p><p><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">hpool_merge_page这个函数会首先将所有percpu_pool内存池中的页放到src_hpages_pool内存池中,然后再移动到wait_page_list链表上进行隔离。在移动页时通过PagePool判断页是不是在src_hpages_pool内存池中。</span></p><ol class="ordered"><li class="ordered"><span class="ql-ui" contenteditable="false"></span><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">由于这个过程中只锁定了src_hpages_pool,此时可能有页刚刚被释放到percpu_pool内存池中,也会将其也添加进wait_page_list链表上,但此时操作的是percpu_pool内存池,没有加对应的锁,因此可能会发生list corruption。</span></li><li class="ordered"><span class="ql-ui" contenteditable="false"></span><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">同时,PagePool会被free_pages_prepare函数清空,这个清空状态没有被锁保护,因此也可能会把这种页判断为是在src_hpages_pool内存池中,进而可能发生list corruption。</span></li></ol><p><br></p><p> 【影响评估及测试建议】 在使用dhugetlb.2M.reserved_pages接口设置大页数量时,如果写入的值过大,会发生大页合并操作,此时可能会发生list correption错误,进而导致内核崩溃。</p><p> 【对外部影响描述】 无</p><p>
【严重程度】 一般 【特性】 内存管理 【重现类型】 有条件必然重现 【定位分析】 </p><p><br></p><p><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">hpool_merge_page这个函数会首先将所有percpu_pool内存池中的页放到src_hpages_pool内存池中,然后再移动到wait_page_list链表上进行隔离。在移动页时通过PagePool判断页是不是在src_hpages_pool内存池中。</span></p><ol class="ordered"><li class="ordered"><span class="ql-ui" contenteditable="false"></span><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">由于这个过程中只锁定了src_hpages_pool,此时可能有页刚刚被释放到percpu_pool内存池中,也会将其也添加进wait_page_list链表上,但此时操作的是percpu_pool内存池,没有加对应的锁,因此可能会发生list corruption。</span></li><li class="ordered"><span class="ql-ui" contenteditable="false"></span><span style="background-color: rgb(255, 255, 255); font-size: 14px; color: rgb(37, 43, 58);">同时,PagePool会被free_pages_prepare函数清空,这个清空状态没有被锁保护,因此也可能会把这种页判断为是在src_hpages_pool内存池中,进而可能发生list corruption。</span></li></ol><p><br></p><p> 【影响评估及测试建议】 在使用dhugetlb.2M.reserved_pages接口设置大页数量时,如果写入的值过大,会发生大页合并操作,此时可能会发生list correption错误,进而导致内核崩溃。</p><p> 【对外部影响描述】 无</p><p>
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
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