Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-11-15 00:19:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and      /work/SRC/openSUSE:Factory/.crash.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "crash"

Fri Nov 15 00:19:31 2019 rev:157 rq:748661 version:7.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/crash/crash.changes      2019-08-24 
18:46:47.917755025 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.26869/crash.changes   2019-11-15 
00:19:34.635965178 +0100
@@ -1,0 +2,18 @@
+Tue Nov 12 19:39:11 UTC 2019 - David Mair <[email protected]>
+
+- Added commit c0371f6ee2cae31ec9f506bbd231ab8fbe334c13 - Fix to
+  allow live analysis of s390x kernels that have been configured
+  with CONFIG_RANDOMIZE_BASE=y (KASLR). This allows crash to load
+  the coredump without the need for "--kaslr=<offset> on the
+  command-line.
+  Added:
+    crash-s390-autodetect-kaslr.patch
+
+  Implements jsc#SLE-9797
+
+-------------------------------------------------------------------
+Fri Nov  8 10:33:41 UTC 2019 - Jiri Slaby <[email protected]>
+
+- add crash-symbols-add-support-for-XZ.patch (bnc#1155921)
+
+-------------------------------------------------------------------

New:
----
  crash-s390-autodetect-kaslr.patch
  crash-symbols-add-support-for-XZ.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ crash.spec ++++++
--- /var/tmp/diff_new_pack.ufwVKE/_old  2019-11-15 00:19:38.419963862 +0100
+++ /var/tmp/diff_new_pack.ufwVKE/_new  2019-11-15 00:19:38.423963862 +0100
@@ -89,6 +89,8 @@
 Patch16:        eppic-support-arm64.patch
 Patch21:        %{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch22:        %{name}-allow-kmem-section-is-early.patch
+Patch23:        %{name}-symbols-add-support-for-XZ.patch
+Patch24:        %{name}-s390-autodetect-kaslr.patch
 Patch90:        %{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -285,6 +287,8 @@
 %patch13 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%patch24 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++++++ crash-s390-autodetect-kaslr.patch ++++++
Fix to allow live system analysis of s390x kernels that have been

configured with CONFIG_RANDOMIZE_BASE=y (KASLR).  Without the patch,
the "--kaslr=<offset>" command line option is required.
([email protected])
---
Index: b/symbols.c
===================================================================
--- a/symbols.c
+++ b/symbols.c
@@ -612,6 +612,12 @@ kaslr_init(void)
                st->_stext_vmlinux = UNINITIALIZED;
        }
 
+       if (machine_type("S390X") &&  /* Linux 5.2 */
+           (symbol_value_from_proc_kallsyms("__kaslr_offset") != BADVAL)) {
+               kt->flags2 |= (RELOC_AUTO|KASLR);
+               st->_stext_vmlinux = UNINITIALIZED;
+       }
+
        if (QEMU_MEM_DUMP_NO_VMCOREINFO()) {
                if (KDUMP_DUMPFILE() && kdump_kaslr_check()) {
                        kt->flags2 |= KASLR_CHECK;
++++++ crash-symbols-add-support-for-XZ.patch ++++++
From: Jiri Slaby <[email protected]>
Date: Fri, 8 Nov 2019 08:44:10 +0100
Subject: symbols: add support for XZ
Patch-mainline: submitted as PR#42
References: bnc#1155921

We plan to ship /boot/vmlinux*.xz in openSUSE. So add a support for
this, so that crash can handle that.

Signed-off-by: Jiri Slaby <[email protected]>
---
 symbols.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Index: b/symbols.c
===================================================================
--- a/symbols.c
+++ b/symbols.c
@@ -3597,6 +3597,7 @@ is_compressed_kernel(char *file, char **
 
 #define GZIP  (1)
 #define BZIP2 (2)
+#define XZ    (3)
 
 #define FNAME (1 << 3)
 
@@ -3646,6 +3647,19 @@ is_compressed_kernel(char *file, char **
                type = BZIP2;
        }
 
+       if (!memcmp(header, "\xfd""7zXZ", 6)) {
+               if (!STRNEQ(basename(file), "vmlinux") &&
+                   !(st->flags & FORCE_DEBUGINFO)) {
+                       error(INFO, "%s: compressed file name does not start "
+                           "with \"vmlinux\"\n", file);
+                       error(CONT, 
+                           "Use \"-f %s\" on command line to override.\n\n",
+                               file);
+                       return FALSE;
+               }
+               type = XZ;
+       }
+
        if (!type)
                return FALSE;
 
@@ -3681,6 +3695,12 @@ is_compressed_kernel(char *file, char **
                        "/bin/bunzip2" : "/usr/bin/bunzip2",
                        file, tempname);
                break;
+       case XZ:
+               sprintf(command, "%s -c %s > %s", 
+                       file_exists("/bin/unxz", NULL) ?
+                       "/bin/unxz" : "/usr/bin/unxz",
+                       file, tempname);
+               break;
        }
        if (system(command) < 0) {
                please_wait_done();

Reply via email to