Bug 751030 - File does not correctly identify a linux kernel image
Summary: File does not correctly identify a linux kernel image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-03 09:47 UTC by Karel Srot
Modified: 2012-10-29 12:59 UTC (History)
1 user (show)

Fixed In Version: file-4.17-19
Doc Type: Bug Fix
Doc Text:
Cause: There was no magic pattern to detect S390X kernel images. Consequence: File was not able to detect S390X kernel images. Fix: New magic pattern have been implemented to match S390X kernel images. Result: File detects S390X kernel images as "Linux S390".
Clone Of: 688700
Environment:
Last Closed: 2012-02-21 05:46:33 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0201 0 normal SHIPPED_LIVE file bug fix update 2012-02-20 14:53:52 UTC

Description Karel Srot 2011-11-03 09:47:12 UTC
similar to 688700 but valid for all archs, even intel

[root@rhel57 ~]# rpm -q file
file-4.17-15.el5_3.1
[root@rhel57 ~]# file /boot/vmlinuz*
/boot/vmlinuz-2.6.18-274.el5: ELF 64-bit LSB shared object, AMD x86-64, version 1, stripped


+++ This bug was initially created as a clone of Bug #688700 +++

Description of problem:

.qa.[root@s390x-6s-v1 boot]# file vmlinuz-2.6.32-71.18.2.el6.s390x
vmlinuz-2.6.32-71.18.2.el6.s390x: data
.qa.[root@s390x-6s-v1 boot]# file vmlinuz-2.6.32-71.18.2.el6.s390x.debug
vmlinuz-2.6.32-71.18.2.el6.s390x.debug: data


Version-Release number of selected component (if applicable):
file-5.04-6.el6.s390x

How reproducible:

always

Steps to Reproduce:
1. run file on s390x vmlinuz file (compressed kernel image)
2.
3.
  
Actual results:
on s/390x:
file vmlinuz-2.6.32-71.18.2.el6.s390x
vmlinuz-2.6.32-71.18.2.el6.s390x: data

on x86_64:

file /boot/vmlinuz-2.6.32-71.el6.x86_64 
/boot/vmlinuz-2.6.32-71.el6.x86_64: Linux kernel x86 boot executable bzImage, version 2.6.32-71.el6.x86_64 (mockbuild, RO-rootFS, root_dev 0x901, swap_dev 0x3, Normal VGA


Expected results:

something similar to output present on x86_64

Additional info:

This issue seems to be limited to s/390x

Comment 6 Jan Kaluža 2012-01-05 10:39:55 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: There was no magic pattern to detect S390X kernel images.

Consequence: File was not able to detect S390X kernel images.

Fix: New magic pattern have been implemented to match S390X kernel images.

Result: File detects S390X kernel images as "Linux S390".

Comment 7 errata-xmlrpc 2012-02-21 05:46:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0201.html


Note You need to log in before you can comment on or make changes to this bug.