Compare commits

..
Author SHA1 Message Date
openeuler-ci-bot 0fdd6cfe58 !165 [sync] PR-162: use patch command to apply patches for consistency in context
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2025-06-17 05:52:15 +00:00
wangxiao65 77f05d07a1 use patch command to apply patches for consistency in context
(cherry picked from commit 6b2a64b805)
2025-06-13 10:05:48 +08:00
openeuler-ci-bot 3112976347 !163 [sync] PR-161: fix ps error when mm_struct.rss_stat is not initialized
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2025-06-06 08:46:22 +00:00
zhangjian 102c7d7849 fix ps error when mm_struct.rss_stat is not initialized
Signed-off-by: zhangjian <zhangjian496@huawei.com>
(cherry picked from commit bc29223016)
2025-06-05 15:40:17 +08:00
2 changed files with 1 additions and 76 deletions
@@ -1,66 +0,0 @@
From db0077614aaeda6d0ed557f2b91d3349d5fe430f Mon Sep 17 00:00:00 2001
From: Austin Kim <austindh.kim@gmail.com>
Date: Tue, 29 Oct 2024 17:32:07 +0900
Subject: [PATCH] Fix for 'sys' to properly display the PANIC message
Using 'sys' command, we can view the panic message with general system
information. If we run RISCV64-based vmcore, PANIC message is not properly
displayed.
The reason is that the string "Unable to handle kernel" is not
completely matched with the panic_msg[]. The corresponding kernel commit
is 21733cb518471.
Without the patch:
crash> sys
KERNEL: vmlinux [TAINTED]
DUMPFILE: vmcore
CPUS: 4
DATE: Thu Aug 22 16:13:08 KST 2024
UPTIME: 00:33:25
LOAD AVERAGE: 0.07, 0.07, 0.02
TASKS: 385
NODENAME: starfive
RELEASE: 6.6.20+
VERSION: #13 SMP Mon Aug 19 12:58:52 KST 2024
MACHINE: riscv64 (unknown Mhz)
MEMORY: 4 GB
PANIC: ""
With the patch:
crash> sys
KERNEL: vmlinux [TAINTED]
DUMPFILE: vmcore
CPUS: 4
DATE: Thu Aug 22 16:13:08 KST 2024
UPTIME: 00:33:25
LOAD AVERAGE: 0.07, 0.07, 0.02
TASKS: 385
NODENAME: starfive
RELEASE: 6.6.20+
VERSION: #13 SMP Mon Aug 19 12:58:52 KST 2024
MACHINE: riscv64 (unknown Mhz)
MEMORY: 4 GB
PANIC: "Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000000000000"
Signed-off-by: Austin Kim <austindh.kim@gmail.com>
---
task.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/task.c b/task.c
index c131cc32..33de7da2 100644
--- a/task.c
+++ b/task.c
@@ -6392,6 +6392,11 @@ get_panicmsg(char *buf)
get_symbol_data("sysrq_pressed", sizeof(int), &msg_found);
break;
}
+
+ /*
+ * Try to search panic string in panic keywords
+ */
+ search_panic_task_by_keywords(buf, &msg_found);
}
found:
+1 -10
View File
@@ -1,6 +1,6 @@
Name: crash
Version: 8.0.5
Release: 9
Release: 8
Summary: Linux kernel crash utility.
License: GPLv3
URL: https://crash-utility.github.io
@@ -14,9 +14,6 @@ Patch3: 0003-crash-8.0.4-add-support-for-loongarch64.patch
Patch4: 0004-arm64-fix-a-potential-segfault-when-unwind-frame.patch
Patch5: 0005-arm64-fix-SDEI-stack-frame-unwind-while-UNW_4_14-is-.patch
Patch9001: huawei-fix-ps-error-when-mm_struct.rss_stat-is-lazy-initial.patch
%ifarch riscv64
Patch6: backport-fix-for-sys-to-properly-display-the-PANIC-m.patch
%endif
BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel texinfo libzstd-devel
BuildRequires: gcc gcc-c++ bison m4
@@ -62,9 +59,6 @@ created by manufacturer-specific firmware.
%patch 4 -p1
%patch 5 -p1
%patch 9001 -p1
%ifarch riscv64
%patch 6 -p1
%endif
%build
cp %{SOURCE1} .
@@ -99,9 +93,6 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h
%{_mandir}/man8/crash.8*
%changelog
* Mon Jul 14 2025 liuzhilin <liuzhilin@kylinos.cn> - 8.0.5-9
- backport Fix for 'sys' to properly display the PANIC message patch.
* Wed Jun 04 2025 wangxiao <wangxiao184@h-partners.com> - 8.0.5-8
- use patch command to apply patches for consistency in context