1 Star 0 Fork 46

Ming Wang/kexec-tools-openEuler

forked from src-openEuler/kexec-tools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-incorrect-page-exclusion-in-exclude_nodata_pages.patch 909 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ming Wang 提交于 2025-01-06 15:08 +08:00 . Fix loongarch64 kdump image size overflow issue.
From fe71ffabcc7e5787b0bcf0b4cfcdab83182b84fd Mon Sep 17 00:00:00 2001
From: Ming Wang <wangming01@loongson.cn>
Date: Mon, 14 Oct 2024 16:23:08 +0800
Subject: [PATCH] Fix incorrect page exclusion in exclude_nodata_pages()
Signed-off-by: Ming Wang <wangming01@loongson.cn>
---
makedumpfile-1.7.4/makedumpfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/makedumpfile-1.7.4/makedumpfile.c b/makedumpfile-1.7.4/makedumpfile.c
index a6ec9d4..4ddbf4d 100644
--- a/makedumpfile-1.7.4/makedumpfile.c
+++ b/makedumpfile-1.7.4/makedumpfile.c
@@ -5192,7 +5192,7 @@ exclude_nodata_pages(struct cycle *cycle)
NULL, &file_size)) {
unsigned long long pfn, pfn_end;
- pfn = paddr_to_pfn(phys_start + file_size);
+ pfn = paddr_to_pfn(roundup(phys_start + file_size, PAGESIZE()));
pfn_end = paddr_to_pfn(roundup(phys_end, PAGESIZE()));
if (pfn < cycle->start_pfn)
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/robinorg/kexec-tools-openEuler.git
git@gitee.com:robinorg/kexec-tools-openEuler.git
robinorg
kexec-tools-openEuler
kexec-tools-openEuler
master

搜索帮助