77 Commits

Author SHA1 Message Date
openeuler-ci-bot
74e7c274c7
!116 arm64:fix a potential segfault when unwind frame
From: @wangxiao65 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-11-12 08:21:00 +00:00
wangxiao65
723c22bb0a arm64:fix a potential segfault when unwind frame 2024-11-12 05:57:22 +00:00
openeuler-ci-bot
30cde9e3b5
!108 Fix crash vmlinux /proc/kcore failed
From: @d_chenghao 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-10-30 08:02:02 +00:00
duanchenghao
3836a4b0b1 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>
2024-10-28 14:41:06 +08:00
openeuler-ci-bot
12cf3e71ab
!101 Backport a gdb patch to fix clang build "integer value -1 is outside the valid range of values" error
From: @yanyir 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2024-09-21 10:45:26 +00:00
yanyir
094d97d932 Add gdbsupport ignore Wenum-constexpr-conversion in enum-flags.h to fix clang build error
A backported patch from gdb (commit ID:8cbde735 "gdbsupport: ignore -Wenum-constexpr-conversion in enum-flags.")
2024-09-07 00:39:58 +08:00
openeuler-ci-bot
f8188d0c30
!99 Fix crash parsing vmcore file failed for loongarch64
From: @zhangzikang1992 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-08-21 13:16:19 +00:00
zhangzikang1992
66aac54683 Fix crash parsing vmcore file failed for loongarch64 2024-08-15 22:37:42 +08:00
openeuler-ci-bot
bc79147fb7
!94 修复loongarch64和sw_64平台的patch在x86_64或其他平台编译出来的源码包中丢失的问题
From: @nebd 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2024-06-07 06:54:54 +00:00
孤独的大河马在躺平
37379101f9
Fix lack of loongarch64 and sw_64 patche files in src.rpm package which is build from any platform
Signed-off-by: 孤独的大河马在躺平 <shaojiansong@kylinos.cn>
2024-05-28 09:24:21 +00:00
openeuler-ci-bot
0c06ccda6b
!92 Resolve loongarch64 patch add error and add support for loongarch64
From: @dpdwaj 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-04-23 08:33:47 +00:00
doupengda
d32856d64d Resolve loongarch64 patch add error and add support for loongarch64 2024-04-16 09:57:29 +08:00
openeuler-ci-bot
66daec136b
!91 Upgrade to crash-8.0.4
From: @chenhaixaing 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2024-02-19 12:10:10 +00:00
chenhaixiang
1b3ca1f15b Upgrade to crash-8.0.4
Signed-off-by chenhaixiang3@huawei.com
2024-01-25 14:32:19 +08:00
openeuler-ci-bot
b7f4deb953
!90 Fix compilation error due to new strlcpy function that glibc added
From: @chenhaixaing 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-08-01 12:56:21 +00:00
chenhaixiang
677ac816c7 Fix compilation error due to new strlcpy function that glibc added
Signed-off-by: chenhaixiang3@huawei.com
2023-08-01 08:22:41 -04:00
openeuler-ci-bot
6e03baeeb3
!83 添加LoongArch64架构支持
From: @robinorg 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-07-11 12:08:07 +00:00
Ming Wang
2279f9696c crash: add LoongArch64 support.
Signed-off-by: Ming Wang <wangming01@loongson.cn>
2023-07-11 17:35:43 +08:00
openeuler-ci-bot
93007e8507
!82 Add riscv64 support
From: @East_x 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-07-07 06:13:46 +00:00
EastDong
3405fc720c add riscv support 2023-07-07 11:43:54 +08:00
openeuler-ci-bot
cdaa074d92
!79 update to crash-8.0.2
From: @chenhaixaing 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-02-11 01:33:11 +00:00
chenhaixiang
f73fa2f432 update to crash-8.0.2
Signed-off-by:chenhaixiang <chenhaixiang3@huawei.com>
2023-02-10 19:39:15 +08:00
openeuler-ci-bot
a1f1597b2c
!77 fix segfault by "bt" command with offline cpus
From: @lijianglin6 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2023-01-04 08:27:16 +00:00
l30029166
d30bfa99c6 fix segfault by "bt" command with offline cpus 2023-01-04 15:52:06 +08:00
openeuler-ci-bot
20acea475c
!73 modifiy patch description to keep upstream info
From: @huskartang 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-29 11:06:45 +00:00
huskarTang
3652955d20 keep upstream info in patches 2022-12-29 17:00:53 +08:00
openeuler-ci-bot
2cbdc492a3
!72 Fix the value of TIF_SIGPENDING macro
From: @huskartang 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-29 07:37:00 +00:00
huskarTang
56bd067f8d Fix the value of TIF_SIGPENDING macro
Correct the change of the value of TIF_SIGPENDING macro between
different kernel versions.

TIF_SIGPENDING changes with the kernel version as follows:
ARM     2 -> 0 at v2.6.23
MIPS    2 -> 1 at v2.6.23
MIPS64  2 -> 1 at v2.6.23
PPC     2 -> 1 at v2.6.23
IA64    1 -> 0 at v2.6.23
PPC64   2 -> 1 at v2.6.23
S390    2 -> 1 at v3.16
S390X   2 -> 1 at v3.16
2022-12-29 14:44:28 +08:00
openeuler-ci-bot
2c37844741
!71 Fix 'kmem -s|-S' option on Linux 5.7 and later kernels
From: @huskartang 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-29 06:36:30 +00:00
huskarTang
bd3bd6b94d Fix 'kmem -s|-S' option on Linux 5.7 and later kernels 2022-12-29 13:00:01 +08:00
openeuler-ci-bot
5e1c30fc74
!70 arm64: Add lowercase tcr_el1_t1sz
From: @huskartang 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-29 03:42:33 +00:00
huskarTang
65b1724263 Add lowercase tcr_el1_t1sz 2022-12-29 11:19:03 +08:00
openeuler-ci-bot
944f493144
!69 rename pathes to keep in order
From: @huskartang 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-29 01:08:24 +00:00
huskarTang
2523dc8464 format patch names 2022-12-28 21:57:59 +08:00
openeuler-ci-bot
92e8df10e8
!64 Fix aarch64 KASAN 内核kdump,crash工具bt无法显示宕机堆栈
From: @ch-cityhunter 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-12-09 02:43:43 +00:00
Ding Hui
d38a008f23 fix backtraces of arm64 KASAN kernel dumpfile truncated
bugzilla: https://gitee.com/src-openeuler/crash/issues/I64FYG

apply upstream
https://listman.redhat.com/archives/crash-utility/2022-December/010288.html
and port for SDEI stack

Signed-off-by: Ding Hui <dinghui@sangfor.com.cn>
2022-12-06 08:57:29 +08:00
openeuler-ci-bot
444394d999
!60 添加sw架构
From: @wuzx065891 
Reviewed-by: @wangbin224 
Signed-off-by: @wangbin224
2022-10-28 06:34:13 +00:00
wzx
634549d7d8 Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
2022-10-19 14:34:47 +08:00
openeuler-ci-bot
cd51f25ab6
!52 Handle task_struct cpu member changes for kernels >= 5.16-rc1
From: @wangbin224 
Reviewed-by: @hanxinke 
Signed-off-by: @hanxinke
2022-02-23 13:18:55 +00:00
Bin Wang
c09fcc8583 Handle task_struct cpu member changes for kernels >= 5.16-rc1
Kernel commit bcf9033e5449bdcaa9bed46467a7141a8049dadb
("sched: move CPU field back into thread_info if THREAD_INFO_IN_TASK=y")
moved the member cpu of task_struct back into thread_info.
Without the patch, crash fails with the following error message
during session initialization:

  crash: invalid structure member offset: task_struct_cpu
FILE: task.c  LINE: 2904  FUNCTION: add_context()

And delete use_system_readline_v3.patch. Use readline provided by
internal gdb instead of system readline. System readline do not
match crash, and will cause a Segmentation fault when parse corefile.

Signed-off-by: Bin Wang <wangbin224@huawei.com>
2022-02-23 20:49:56 +08:00
openeuler-ci-bot
3177491352
!50 revert to fix null pointer reference when CONFIG_KASAN is open
From: @zhouwenpei 
Reviewed-by: @hanxinke 
Signed-off-by: @hanxinke
2022-02-22 09:21:17 +00:00
zhouwenpei
113036b569 revert to fix null pointer reference when CONFIG_KASAN is open 2022-02-08 11:23:34 +08:00
openeuler-ci-bot
4bf9c5b493
!46 add SDEI stack resolution
Merge pull request !46 from zhouwenpei/master
2022-01-20 08:04:30 +00:00
zhouwenpei
e956a09318 add SDEI stack resolution 2021-12-31 11:30:02 +08:00
openeuler-ci-bot
02f014ace3 !43 fix seek error “IRQ stack pointer”
Merge pull request !43 from zhouwenpei/master
2021-12-30 12:36:58 +00:00
zhouwenpei
6cef8b237f fix seek error IRQ stack pointer 2021-12-30 17:33:21 +08:00
openeuler-ci-bot
c10dc6cb03 !41 update verion to 7.3.0
Merge pull request !41 from zhouwenpei/master
2021-12-25 07:02:02 +00:00
zhouwenpei
a70be530b9 update verion to 7.3.0 2021-11-30 20:13:30 +08:00
openeuler-ci-bot
ab795fc7d2 !40 crash:fix null pointer reference when CONFIG_KASAN is open
From: @wangbin224
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-09-06 01:34:35 +00:00
wangbin
1882a00b9d crash: fix null pointer reference when CONFIG_KASAN is open
If CONFIG_KASAN is open, CONFIG_VMAP_STACK will be closed. And
the sdei_stack_normal_ptr will be undefined. When crash init the
stack, sdei_stacks will not init. We should not access the sdei_stacks
later, so check null pointer before access it.

Signed-off-by: wangbin <wangbin224@huawei.com>
2021-09-03 16:14:17 +08:00