From 65493d986d9e1d73fa8120799052c3d599950d4d Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Fri, 25 Oct 2024 09:56:32 +0800 Subject: [PATCH 1/5] Fix crash vmlinux /proc/kcore failed When executing "crash vmlinux /proc/kcore", the following error occurred: crash: cannot translate the ELF header of /proc/kcore Cause of the problem: The code in the patch was merged into the wrong location. Signed-of-by: Duan Chenghao --- 0003-crash-8.0.4-add-support-for-loongarch64.patch | 2 +- crash.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/0003-crash-8.0.4-add-support-for-loongarch64.patch b/0003-crash-8.0.4-add-support-for-loongarch64.patch index b699193..fad45fe 100644 --- a/0003-crash-8.0.4-add-support-for-loongarch64.patch +++ b/0003-crash-8.0.4-add-support-for-loongarch64.patch @@ -17211,7 +17211,7 @@ index 3907863..e977ae8 100644 static void check_dumpfile_size(char *); static int proc_kcore_init_32(FILE *, int); static int proc_kcore_init_64(FILE *, int); -@@ -217,6 +218,11 @@ is_netdump(char *file, ulong source_query) +@@ -314,6 +315,11 @@ is_netdump(char *file, ulong source_query) source_query)) goto bailout; break; diff --git a/crash.spec b/crash.spec index 85ea4cb..3007574 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.4 -Release: 5 +Release: 6 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io @@ -88,6 +88,9 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog +* Fri Oct 25 2024 duanchenghao - 8.0.4.6 +- Fix crash vmlinux /proc/kcore failed for loongarch64 + * Fri Sep 06 2024 yanying <201250106@smail.nju.edu.cn> - 8.0.4-5 - Add gdbsupport ignore Wenum-constexpr-conversion in enum-flags.h to fix clang build error -- Gitee From 41685126a8b95fdfacdde89d20311b57efa08665 Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Fri, 25 Oct 2024 03:41:32 +0000 Subject: [PATCH 2/5] update crash.spec. Signed-off-by: duanchenghao --- crash.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash.spec b/crash.spec index 3007574..0aacd76 100644 --- a/crash.spec +++ b/crash.spec @@ -88,7 +88,7 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog -* Fri Oct 25 2024 duanchenghao - 8.0.4.6 +* Fri Oct 25 2024 duanchenghao - 8.0.4-6 - Fix crash vmlinux /proc/kcore failed for loongarch64 * Fri Sep 06 2024 yanying <201250106@smail.nju.edu.cn> - 8.0.4-5 -- Gitee From 0071e3d1bfb60cc22a2dca13c2a1e4a75f869ab7 Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Fri, 25 Oct 2024 06:54:23 +0000 Subject: [PATCH 3/5] update crash.spec. Signed-off-by: duanchenghao --- crash.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash.spec b/crash.spec index 0aacd76..4f6c7fc 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.4 -Release: 6 +Release: 5 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io -- Gitee From aca1c83ff7d31b1c323ae500b1f792af9b741947 Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Fri, 25 Oct 2024 07:26:17 +0000 Subject: [PATCH 4/5] update crash.spec. Signed-off-by: duanchenghao --- crash.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash.spec b/crash.spec index 4f6c7fc..136df5a 100644 --- a/crash.spec +++ b/crash.spec @@ -88,7 +88,7 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog -* Fri Oct 25 2024 duanchenghao - 8.0.4-6 +* Fri Oct 25 2024 duanchenghao - 8.0.4-5 - Fix crash vmlinux /proc/kcore failed for loongarch64 * Fri Sep 06 2024 yanying <201250106@smail.nju.edu.cn> - 8.0.4-5 -- Gitee From 3dd7c60f68ef0915f2a9deb49d82534e52e718d0 Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Fri, 25 Oct 2024 07:28:59 +0000 Subject: [PATCH 5/5] update crash.spec. Signed-off-by: duanchenghao --- crash.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crash.spec b/crash.spec index 136df5a..0aacd76 100644 --- a/crash.spec +++ b/crash.spec @@ -1,6 +1,6 @@ Name: crash Version: 8.0.4 -Release: 5 +Release: 6 Summary: Linux kernel crash utility. License: GPLv3 URL: https://crash-utility.github.io @@ -88,7 +88,7 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h %{_mandir}/man8/crash.8* %changelog -* Fri Oct 25 2024 duanchenghao - 8.0.4-5 +* Fri Oct 25 2024 duanchenghao - 8.0.4-6 - Fix crash vmlinux /proc/kcore failed for loongarch64 * Fri Sep 06 2024 yanying <201250106@smail.nju.edu.cn> - 8.0.4-5 -- Gitee