Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2021-09-25 00:35:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and      /work/SRC/openSUSE:Factory/.crash.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "crash"

Sat Sep 25 00:35:32 2021 rev:177 rq:921300 version:7.2.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/crash/crash.changes      2021-06-26 
21:25:58.895384386 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.1899/crash.changes    2021-09-25 
00:36:21.447189698 +0200
@@ -1,0 +2,11 @@
+Fri Sep 24 10:30:46 UTC 2021 - Michal Suchanek <msucha...@suse.de>
+
+- Fix build on ppc64 - it needs full TOC as much as ppc64le.
+
+-------------------------------------------------------------------
+Thu Sep 23 12:41:11 UTC 2021 - Michal Suchanek <msucha...@suse.de>
+
+- Fix module loading (bsc#1190743 ltc#194414).
+  + crash-mod-fix-module-object-file-lookup.patch
+
+-------------------------------------------------------------------

New:
----
  crash-mod-fix-module-object-file-lookup.patch

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

Other differences:
------------------
++++++ crash.spec ++++++
--- /var/tmp/diff_new_pack.OkMeSF/_old  2021-09-25 00:36:22.251190538 +0200
+++ /var/tmp/diff_new_pack.OkMeSF/_new  2021-09-25 00:36:22.251190538 +0200
@@ -98,6 +98,8 @@
 # PATCH-FIX-UPSTREAM - 
https://github.com/crash-utility/crash/commit/9c881ab372010b46655dfed0a3c5cd78b3ff8fa0.patch
 Patch45:        %{name}-x86_64-VC-exception-stack-support.patch
 Patch46:        %{name}-xen-pvops.patch
+# PATCH-FIX-UPSTREAM - 
https://github.com/crash-utility/crash/commit/cf0c8d10e1870d89b39f40382634db51aa8fcf2c.patch
+Patch47:        %{name}-mod-fix-module-object-file-lookup.patch
 Patch90:        %{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -301,6 +303,7 @@
 %patch44 -p1
 %patch45 -p1
 %patch46 -p1
+%patch47 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif
@@ -326,7 +329,7 @@
 cp %{S:6} memory_driver
 
 %build
-%ifarch ppc64le
+%ifarch ppc64le ppc64
 # for ppc64le use -mfull-toc needed by lto as per boo#1146646
 export CFLAGS="$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing 
-mfull-toc"
 %else


++++++ crash-mod-fix-module-object-file-lookup.patch ++++++
>From cf0c8d10e1870d89b39f40382634db51aa8fcf2c Mon Sep 17 00:00:00 2001
From: Hari Bathini <hbath...@linux.ibm.com>
Date: Fri, 3 Sep 2021 17:33:42 +0530
Subject: [PATCH] mod: fix module object file lookup

Upstream: merged - expected 7.3.1
Git-commit: cf0c8d10e1870d89b39f40382634db51aa8fcf2c

On systems where vmlinux file is not under /usr/lib/debug/lib/modules
directory, 'mod -s|-S' command may fail to find the module's object
file with the below error:

    mod: cannot find or load object file for sd_mod module

Fix it by trying all possible module object file extentions while
searching for the object file under /usr/lib/debug/lib/modules
directory.

Signed-off-by: Naveen N. Rao <naveen.n....@linux.ibm.com>
Signed-off-by: Hari Bathini <hbath...@linux.ibm.com>
---
 kernel.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/kernel.c b/kernel.c
index 36fdea29b1cb..b2c8a0ccb7ab 100644
--- a/kernel.c
+++ b/kernel.c
@@ -4796,7 +4796,18 @@ module_objfile_search(char *modref, char *filename, char 
*tree)
 
        sprintf(dir, "%s/%s", DEFAULT_REDHAT_DEBUG_LOCATION, 
                kt->utsname.release);
-       retbuf = search_directory_tree(dir, file, 0);
+       if (!(retbuf = search_directory_tree(dir, file, 0))) {
+               switch (kt->flags & (KMOD_V1|KMOD_V2))
+               {
+               case KMOD_V2:
+                       sprintf(file, "%s.ko", modref);
+                       retbuf = search_directory_tree(dir, file, 0);
+                       if (!retbuf) {
+                               sprintf(file, "%s.ko.debug", modref);
+                               retbuf = search_directory_tree(dir, file, 0);
+                       }
+               }
+       }
 
        if (!retbuf && (env = getenv("CRASH_MODULE_PATH"))) {
                sprintf(dir, "%s", env);
-- 
2.31.1

Reply via email to