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 <duanchenghao@kylinos.cn>
This commit is contained in:
duanchenghao 2024-10-28 14:41:06 +08:00
parent 12cf3e71ab
commit 3836a4b0b1
2 changed files with 5 additions and 2 deletions

View File

@ -17211,7 +17211,7 @@ index 3907863..e977ae8 100644
static void check_dumpfile_size(char *); static void check_dumpfile_size(char *);
static int proc_kcore_init_32(FILE *, int); static int proc_kcore_init_32(FILE *, int);
static int proc_kcore_init_64(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)) source_query))
goto bailout; goto bailout;
break; break;

View File

@ -1,6 +1,6 @@
Name: crash Name: crash
Version: 8.0.4 Version: 8.0.4
Release: 5 Release: 6
Summary: Linux kernel crash utility. Summary: Linux kernel crash utility.
License: GPLv3 License: GPLv3
URL: https://crash-utility.github.io 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* %{_mandir}/man8/crash.8*
%changelog %changelog
* Fri Oct 25 2024 duanchenghao <duanchenghao@kylinos.cn> - 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 * 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 - Add gdbsupport ignore Wenum-constexpr-conversion in enum-flags.h to fix clang build error