Re: [PATCH] Fix vmlinux verification for s390(x)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Holzheu wrote:
Hi Dave,

Another fix for s390(x) ...

When starting crash with an s390x standalone dump, we get the following message:

WARNING: machine type mismatch:
         crash utility: S390X
         /usr/lib/debug/lib/modules/2.6.18-86.el5/vmlinux: (unknown)

To fix that this patch adds s390(x) support in the is_kernel() function,
where the vmlinux ELF file is verified.

Signed-off-by: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx>
---

 symbols.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff -Naurp crash-4.0-6.2/symbols.c crash-4.0-6.2-s390x-warn-fix/symbols.c
--- crash-4.0-6.2/symbols.c	2008-04-14 17:49:21.000000000 +0200
+++ crash-4.0-6.2-s390x-warn-fix/symbols.c	2008-04-14 17:49:27.000000000 +0200
@@ -2540,6 +2540,11 @@ is_kernel(char *file)
 				goto bailout;
 			break;
+ case EM_S390:
+			if (machine_type_mismatch(file, "S390", NULL, 0))
+				goto bailout;
+			break;
+
 		default:
 			if (machine_type_mismatch(file, "(unknown)", NULL, 0))
 				goto bailout;
@@ -2573,6 +2578,11 @@ is_kernel(char *file)
 				goto bailout;
 			break;
+ case EM_S390:
+			if (machine_type_mismatch(file, "S390X", NULL, 0))
+				goto bailout;
+			break;
+
 		default:
 			if (machine_type_mismatch(file, "(unknown)", NULL, 0))
 				goto bailout;



Got it -- queued for the next release.

Thanks,
  Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux