Bug 3140

Summary: On sparc64, mkswap sets incorrect bits in bitmap
Product: [Retired] Red Hat Linux Reporter: Jeff Johnson <jbj>
Component: util-linuxAssignee: Jay Turner <jturner>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: davem, srevivo, util-linux
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-29 18:10:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Johnson 1999-05-29 13:14:27 UTC
Some changes to recent 2.3.4-pre kernels pointed out this
bug.
The mkswap tool on sparc64 would set the wrong bits in the
swappage
bitmap in the signature for version 0 swap partitions (the
issue is
that on big endian it matters what size the unit of words is
for
bitmaps).

This is deadly, and if users report bugs where their
UltraSparc's spit
out messages such as "attempt to read past end of device" or
similar,
and the device number printed out turns out to be one of
their swap
devices, this is indeed the bug they are seeing.

This is against the current 6.0 util-linux SRPM and builds
just fine.

Please put out an errata for this at next convenience,
thanks a lot.

Comment 1 Jeff Johnson 1999-05-29 18:10:59 UTC
Fixed (by applying patch) in util-linux-2.9o-14.