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.
mce-inject panic 导致 kdump 无法生成 vmcore 问题定位
Done
#I69VF6
Bug
Zeng Heng
Opened this issue
2023-01-10 22:02
【标题描述】mce-inject panic 导致 kdump 无法生成 vmcore 问题定位 【环境信息】 软件信息: 1)huawei/5.10.0-60.18.0.50.oe2203 主线最新代码也能复现 【问题复现步骤】 具体操作步骤 ~~~ # modprobe mce-inject # mce-inject uc ~~~ 其中,uc 脚本为: ~~~ CPU 1 BANK 4 STATUS uncorrected 0xc0 MCGSTATUS EIPV MCIP ADDR 0x1234 RIP 0xdeadbabe RAISINGCPU 0 MCGCAP SER CMCI TES 0x6 ~~~ 在 mce_panic 里面添加延时操作,可以增大问题复现概率: ~~~ diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 0ced8b250090..9f1090a78653 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -274,7 +274,7 @@ static void print_mce(struct mce *m) pr_emerg_ratelimited(HW_ERR "Run the above through 'mcelog -- ascii'\n"); } -#define PANIC_TIMEOUT 5 /* 5 seconds */ +#define PANIC_TIMEOUT 10 /* 5 seconds */ static atomic_t mce_panicked; @@ -355,6 +355,9 @@ static noinstr void mce_panic(const char *msg, struct mce *final, char *exp) if (!fake_panic) { if (panic_timeout == 0) panic_timeout = mca_cfg.panic_timeout; + int w = 6 * USEC_PER_SEC; + while (w--) + udelay(1); panic(msg); } else pr_emerg(HW_ERR "Fake kernel panic: %s\n", msg); ~~~ 【预期结果】 kdump 功能成功保存 vmcore 文件 【实际结果】 kdump 功能未成功保存 vmcore 文件 【附件信息】 社区讨论: https://lore.kernel.org/all/20230110102745.2514694-1-zengheng4@huawei.com/
【标题描述】mce-inject panic 导致 kdump 无法生成 vmcore 问题定位 【环境信息】 软件信息: 1)huawei/5.10.0-60.18.0.50.oe2203 主线最新代码也能复现 【问题复现步骤】 具体操作步骤 ~~~ # modprobe mce-inject # mce-inject uc ~~~ 其中,uc 脚本为: ~~~ CPU 1 BANK 4 STATUS uncorrected 0xc0 MCGSTATUS EIPV MCIP ADDR 0x1234 RIP 0xdeadbabe RAISINGCPU 0 MCGCAP SER CMCI TES 0x6 ~~~ 在 mce_panic 里面添加延时操作,可以增大问题复现概率: ~~~ diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 0ced8b250090..9f1090a78653 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -274,7 +274,7 @@ static void print_mce(struct mce *m) pr_emerg_ratelimited(HW_ERR "Run the above through 'mcelog -- ascii'\n"); } -#define PANIC_TIMEOUT 5 /* 5 seconds */ +#define PANIC_TIMEOUT 10 /* 5 seconds */ static atomic_t mce_panicked; @@ -355,6 +355,9 @@ static noinstr void mce_panic(const char *msg, struct mce *final, char *exp) if (!fake_panic) { if (panic_timeout == 0) panic_timeout = mca_cfg.panic_timeout; + int w = 6 * USEC_PER_SEC; + while (w--) + udelay(1); panic(msg); } else pr_emerg(HW_ERR "Fake kernel panic: %s\n", msg); ~~~ 【预期结果】 kdump 功能成功保存 vmcore 文件 【实际结果】 kdump 功能未成功保存 vmcore 文件 【附件信息】 社区讨论: https://lore.kernel.org/all/20230110102745.2514694-1-zengheng4@huawei.com/
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
sanglipeng
sanglipeng
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)
参与者(3)
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