From fa5583ea73f8b416bf5f283c70edde701961ba13 Mon Sep 17 00:00:00 2001 From: duanchenghao Date: Mon, 28 Oct 2024 14:41:06 +0800 Subject: [PATCH] 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 (cherry picked from commit 3836a4b0b1729d87b5b5f8a531ebbfa79ae37c13) --- 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..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,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