Compare commits

...
Author SHA1 Message Date
openeuler-ci-bot 631a88c896 !51 fix null pointer reference when CONFIG_KASAN is open
From: @zhouwenpei 
Reviewed-by: @hanxinke 
Signed-off-by: @hanxinke
2022-02-22 09:20:42 +00:00
zhouwenpei 40287365d1 fix null pointer reference when CONFIG_KASAN is open 2022-02-08 15:40:07 +08:00
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -225,7 +225,7 @@ index fdf77bd..cc32d9d 100644
bt->flags &= ~BT_IRQSTACK;
if (arm64_switch_stack(bt, &stackframe, ofp) == USER_MODE)
break;
@@ -2965,6 +3068,79 @@ arm64_in_kdump_text(struct bt_info *bt, struct arm64_stackframe *frame)
@@ -2965,6 +3068,81 @@ arm64_in_kdump_text(struct bt_info *bt, struct arm64_stackframe *frame)
}
static int
@@ -241,6 +241,8 @@ index fdf77bd..cc32d9d 100644
+ return FALSE;
+
+ ms = machdep->machspec;
+ if (!ms->sdei_stacks)
+ return FALSE;
+ cpu = bt->tc->processor;
+ stackbase = ms->sdei_stacks[cpu];
+ stackbuf = GETBUF(ms->sdei_stack_size);
+4 -1
View File
@@ -1,6 +1,6 @@
Name: crash
Version: 7.2.9
Release: 4
Release: 5
Summary: Linux kernel crash utility.
License: GPLv3
URL: https://crash-utility.github.io
@@ -76,6 +76,9 @@ install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h
%{_mandir}/man8/crash.8*
%changelog
* Tue Feb 8 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 7.2.9-5
- fix null pointer reference when CONFIG_KASAN is open
* Tue Jun 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.2.9-4
- add buildrequires m4