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.
【ima、selinux长稳】系统打印general protection fault后panic
Backlog
#IC7JAA
内核缺陷
hulk-robot
Opened this issue
2025-05-13 18:57
【严重程度】 严重 【特性】 【重现类型】 有条件必然重现 【定位分析】 并发执行load policy会触发general protection fault,导致内核panic。这是因为在执行list_replace_rcu替换链表ima_policy_rules中的结点的时候,当前进程将旧结点从链表中删除并设置old->prev = LIST_POISON2,如果另一个并行的进程已经持有旧结点,那么在list_replace_rcu的时候就会引用到毒药指针,造成内核panic。解决办法是在ima_lsm_update_rules函数中,为链表的遍历操作加mutex锁。ima_update_policy中也使用了ima_policy_rules链表,所以在其中链表写操作前加锁。 **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
【严重程度】 严重 【特性】 【重现类型】 有条件必然重现 【定位分析】 并发执行load policy会触发general protection fault,导致内核panic。这是因为在执行list_replace_rcu替换链表ima_policy_rules中的结点的时候,当前进程将旧结点从链表中删除并设置old->prev = LIST_POISON2,如果另一个并行的进程已经持有旧结点,那么在list_replace_rcu的时候就会引用到毒药指针,造成内核panic。解决办法是在ima_lsm_update_rules函数中,为链表的遍历操作加mutex锁。ima_update_policy中也使用了ima_policy_rules链表,所以在其中链表写操作前加锁。 **二、缺陷分析结构反馈** 影响性分析说明: 缺陷严重等级:(Critical/High/Moderate/Low) 缺陷根因说明: 受影响版本排查(受影响/不受影响): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1 修复是否涉及abi变化(是/否): openEuler-20.03-LTS-SP4 openEuler-22.03-LTS-SP3 openEuler-22.03-LTS-SP4 openEuler-24.03-LTS openEuler-24.03-LTS-SP1
Comments (
8
)
Sign in
to comment
Status
Backlog
Backlog
已挂起
Doing
Declined
Done
Assignees
Not set
Xie XiuQi
xiexiuqi
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Kernel
DEFECT/UNFIXED
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
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