Bug 758105 - file is not able to detect swap signature on ia64
Summary: file is not able to detect swap signature on ia64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 758109
TreeView+ depends on / blocked
 
Reported: 2011-11-29 11:12 UTC by Karel Srot
Modified: 2013-04-12 20:56 UTC (History)
1 user (show)

Fixed In Version: file-4.17-22
Doc Type: Bug Fix
Doc Text:
Cause: On ia64, swap signature is stored on different place than on other architectures. Consequence: Swap signature on ia64 was not detected Fix: New magic pattern to detect the swap signature on ia64 has been added. Result: File now detects swap on ia64 as excepted.
Clone Of:
: 758109 (view as bug list)
Environment:
Last Closed: 2012-06-22 09:44:27 UTC
Target Upstream Version:


Attachments (Terms of Use)
ia64 swapfile (80 bytes, application/x-bzip2)
2011-11-29 11:12 UTC, Karel Srot
no flags Details
proposed patch (380 bytes, patch)
2011-11-30 08:51 UTC, Jan Kaluža
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1029 0 normal SHIPPED_LIVE file bug fix update 2012-06-22 13:43:43 UTC

Description Karel Srot 2011-11-29 11:12:03 UTC
Description of problem:

$ file swapfile 
swapfile: data

Version-Release number of selected component (if applicable):
file-4.17-19

How reproducible:
always

Steps to Reproduce:
on ia64

# dd if=/dev/zero of=swapfile bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00402347 s, 261 MB/s
# mkswap swapfile 
mkswap: swapfile: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 1020 KiB
no label, UUID=363cf4f4-f0f5-4db6-8337-0f5f18479cae
# file swapfile 
swapfile:data

Expected results:
something similar to x86_64/i386
swapfile: Linux/i386 swap file (new style) 1 (4K pages) size 255 pages

swapfile attached

Comment 1 Karel Srot 2011-11-29 11:12:32 UTC
Created attachment 537890 [details]
ia64 swapfile

Comment 2 Jan Kaluža 2011-11-30 08:51:29 UTC
Created attachment 538472 [details]
proposed patch

Comment 6 Jan Kaluža 2012-05-14 09:13:00 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: On ia64, swap signature is stored on different place than on other architectures.

Consequence: Swap signature on ia64 was not detected

Fix: New magic pattern to detect the swap signature on ia64 
has been added.

Result: File now detects swap on ia64 as excepted.

Comment 9 errata-xmlrpc 2012-06-22 09:44:27 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-1029.html


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