Hello community, here is the log from the commit of package crash for openSUSE:Factory checked in at 2018-01-13 21:49:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/crash (Old) and /work/SRC/openSUSE:Factory/.crash.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "crash" Sat Jan 13 21:49:33 2018 rev:146 rq:563935 version:7.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/crash/crash.changes 2018-01-02 16:35:35.704322828 +0100 +++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-01-13 21:49:33.628723563 +0100 @@ -1,0 +2,9 @@ +Fri Jan 12 18:14:39 UTC 2018 - [email protected] + +- Added crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch + + With latest NMI IPI changes, crash_ipi_callback is found multiple + times on the stack. Ensure the chosen symbol relates to an actual + backtrace. bsc#1072718 + +------------------------------------------------------------------- New: ---- crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ crash.spec ++++++ --- /var/tmp/diff_new_pack.dHEZ0v/_old 2018-01-13 21:49:34.888664818 +0100 +++ /var/tmp/diff_new_pack.dHEZ0v/_new 2018-01-13 21:49:34.892664632 +0100 @@ -1,7 +1,7 @@ # # spec file for package crash # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -86,6 +86,7 @@ Patch19: %{name}-ppc64-book3s-update-hash-page-table-geometry.patch Patch20: %{name}-x86_64_kvtop-usable-symtab_init.patch Patch21: %{name}-allow-use-of-sadump-captured-KASLR-kernel.patch +Patch22: %{name}-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch Patch90: %{name}-sial-ps-2.6.29.diff BuildRequires: bison BuildRequires: flex @@ -284,6 +285,7 @@ %patch19 -p1 %patch20 -p1 %patch21 -p1 +%patch22 -p1 %if %{have_snappy} %patch15 -p1 %endif ++++++ crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch ++++++ With latest NMI IPI changes, crash_ipi_callback is found multiple times on the stack. Ensure the chosen symbol relates to an actual backtrace. Signed-off-by: Hari Bathini <[email protected]> --- ppc64.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ppc64.c b/ppc64.c index 672ee60..0b04187 100644 --- a/ppc64.c +++ b/ppc64.c @@ -2337,6 +2337,14 @@ retry: *nip = *up; *ksp = bt->stackbase + ((char *)(up) - 16 - bt->stackbuf); + /* + * Check whether this symbol relates to a + * backtrace or not + */ + ur_ksp = *(ulong *)&bt->stackbuf[(*ksp) - bt->stackbase]; + if (!INSTACK(ur_ksp, bt)) + continue; + return TRUE; } }
