Debian Bug report logs - #148123
xfsprogs: xfs_db endianness problem

version graph

Package: xfsprogs; Maintainer for xfsprogs is XFS Development Team <linux-xfs@vger.kernel.org>; Source for xfsprogs is src:xfsprogs (PTS, buildd, popcon).

Reported by: Clint Adams <schizo@debian.org>

Date: Sat, 25 May 2002 08:18:04 UTC

Severity: normal

Tags: upstream

Found in version 2.0.4-1

Fixed in versions xfsprogs/2.9.5-1, xfsprogs/2.9.4-1

Done: Niv Sardi <xaiki@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Nathan Scott <nathans@debian.org>, xfsprogs@packages.qa.debian.org:
Bug#148123; Package xfsprogs. (full text, mbox, link).


Acknowledgement sent to Clint Adams <schizo@debian.org>:
New Bug report received and forwarded. Copy sent to Nathan Scott <nathans@debian.org>, xfsprogs@packages.qa.debian.org. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Clint Adams <schizo@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xfsprogs: xfs_db endianness problem
Date: Sat, 25 May 2002 04:11:06 -0400
Package: xfsprogs
Version: 2.0.4-1
Severity: important

To reproduce on i386, select an inode, set type to agi, and attempt to
write a number to unlinked.

786824 shows up as 2365656064

It is unclear whether the bytes are swapped incorrectly for display
purposes or on disk.



Information forwarded to debian-bugs-dist@lists.debian.org, xfsprogs@packages.qa.debian.org:
Bug#148123; Package xfsprogs. (full text, mbox, link).


Acknowledgement sent to Nathan Scott <nathans@debian.org>:
Extra info received and forwarded to list. Copy sent to xfsprogs@packages.qa.debian.org. (full text, mbox, link).


Message #10 received at 148123@bugs.debian.org (full text, mbox, reply):

From: Nathan Scott <nathans@debian.org>
To: Clint Adams <schizo@debian.org>, 148123@bugs.debian.org
Subject: Re: Bug#148123: xfsprogs: xfs_db endianness problem
Date: Tue, 28 May 2002 08:24:54 +1000
[Message part 1 (text/plain, inline)]
hi Clint,

On Sat, May 25, 2002 at 04:11:06AM -0400, Clint Adams wrote:

> To reproduce on i386, select an inode, set type to agi, and attempt to
> write a number to unlinked.

[I assume you realise this is a bogus thing to do (effectively "casting"
an inode to an AGI and then writing at some arbitrary offset in the inode),
and is guaranteed to cause filesystem corruption].

> 786824 shows up as 2365656064
> 
> It is unclear whether the bytes are swapped incorrectly for display
> purposes or on disk.
> 

There are several known endian problems in xfs_db's write mode.  I'll
open a bug upstream so they don't forget about them.

> Severity: important

Hmm.. xfs_db's write feature requires expert mode, and is not very
widely used.  If this is indeed an endian problem then the workaround
is simple (convert numbers manually before writing).  I'll probably
downgrade the priority of this bug to "normal".

thanks.

-- 
Nathan
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Nathan Scott <nathans@debian.org>, xfsprogs@packages.qa.debian.org:
Bug#148123; Package xfsprogs. (full text, mbox, link).


Acknowledgement sent to Clint Adams <schizo@debian.org>:
Extra info received and forwarded to list. Copy sent to Nathan Scott <nathans@debian.org>, xfsprogs@packages.qa.debian.org. (full text, mbox, link).


Message #15 received at 148123@bugs.debian.org (full text, mbox, reply):

From: Clint Adams <schizo@debian.org>
To: Nathan Scott <nathans@debian.org>
Cc: 148123@bugs.debian.org
Subject: Re: Bug#148123: xfsprogs: xfs_db endianness problem
Date: Mon, 27 May 2002 20:45:10 -0400
> [I assume you realise this is a bogus thing to do (effectively "casting"
> an inode to an AGI and then writing at some arbitrary offset in the inode),
> and is guaranteed to cause filesystem corruption].

Well, I thought it might help with the /etc/motd problem.  It didn't.
Instead I ended up deleting another file in /etc.

> There are several known endian problems in xfs_db's write mode.  I'll
> open a bug upstream so they don't forget about them.
> 
> Hmm.. xfs_db's write feature requires expert mode, and is not very
> widely used.  If this is indeed an endian problem then the workaround
> is simple (convert numbers manually before writing).  I'll probably
> downgrade the priority of this bug to "normal".

There was another command which I executed that displayed something
byteswapped, but I've forgotten what that is.



Severity set to `normal'. Request was from Nathan Scott <nathans@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: upstream Request was from Nathan Scott <nathans@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Niv Sardi <xaiki@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Clint Adams <schizo@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #24 received at 148123-close@bugs.debian.org (full text, mbox, reply):

From: Niv Sardi <xaiki@debian.org>
To: 148123-close@bugs.debian.org
Subject: Bug#148123: fixed in xfsprogs 2.9.4-1
Date: Wed, 31 Oct 2007 04:17:02 +0000
Source: xfsprogs
Source-Version: 2.9.4-1

We believe that the bug you reported is fixed in the latest version of
xfsprogs, which is due to be installed in the Debian FTP archive:

xfslibs-dev_2.9.4-1_i386.deb
  to pool/main/x/xfsprogs/xfslibs-dev_2.9.4-1_i386.deb
xfsprogs-udeb_2.9.4-1_i386.udeb
  to pool/main/x/xfsprogs/xfsprogs-udeb_2.9.4-1_i386.udeb
xfsprogs_2.9.4-1.diff.gz
  to pool/main/x/xfsprogs/xfsprogs_2.9.4-1.diff.gz
xfsprogs_2.9.4-1.dsc
  to pool/main/x/xfsprogs/xfsprogs_2.9.4-1.dsc
xfsprogs_2.9.4-1_i386.deb
  to pool/main/x/xfsprogs/xfsprogs_2.9.4-1_i386.deb
xfsprogs_2.9.4.orig.tar.gz
  to pool/main/x/xfsprogs/xfsprogs_2.9.4.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 148123@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niv Sardi <xaiki@debian.org> (supplier of updated xfsprogs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 29 Oct 2007 17:42:00 +1100
Source: xfsprogs
Binary: xfsprogs-udeb xfslibs-dev xfsprogs
Architecture: source i386
Version: 2.9.4-1
Distribution: unstable
Urgency: low
Maintainer: Nathan Scott <nathans@debian.org>
Changed-By: Niv Sardi <xaiki@debian.org>
Description: 
 xfslibs-dev - XFS filesystem-specific static libraries and headers
 xfsprogs   - Utilities for managing the XFS filesystem
 xfsprogs-udeb - A stripped-down version of xfsprogs for debian-installer (udeb)
Closes: 144876 148123 148150 293631 339717 347561 385090 387057 409063 414073 414079 420764 445011
Changes: 
 xfsprogs (2.9.4-1) unstable; urgency=low
 .
   * New upstream release.
   * There are bugs that do not apply anymore (but were never closed)
     (closes: #339717, #347561, #414073, #409063, #387057, #385090, #293631, #420764, #414079, #445011, #148150, #148123)
   * Repackage as non-native. (closes: #144876)
   * Updated to latest standards, no change was needed.
   * Remove coma in udeb description as it confuses debconf (at least linda says so)
   * Remove checkver call, and let debian/compat be.
Files: 
 d8f567065b63aba4c1724e575ec23528 647 admin optional xfsprogs_2.9.4-1.dsc
 1cf0d30b35c6ba5b5d181602537bedf3 1005884 admin optional xfsprogs_2.9.4.orig.tar.gz
 1901235de651974c341b68093e84af8e 15695 admin optional xfsprogs_2.9.4-1.diff.gz
 4b9a57deb2ab2512a3ba94c2b0775c32 1397718 admin optional xfsprogs_2.9.4-1_i386.deb
 63f2fb85fde4c8af08ac511a4b9cdcd5 298304 libdevel extra xfslibs-dev_2.9.4-1_i386.deb
 d61662f4d2253a2d3418bc6d87e58afc 128586 debian-installer optional xfsprogs-udeb_2.9.4-1_i386.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHJ/eAvD4bToVllT0RArXNAJwPOe7N/zalZmGYhHbfos+4Z3+LnwCeItZf
83tjqKyxOAcUunOkuGxFhrY=
=v0SN
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 18 Jan 2008 07:27:49 GMT) (full text, mbox, link).


Bug unarchived. Request was from Lucas Nussbaum <lucas@lucas-nussbaum.net> to controlbugs.debian.org. (Sat, 09 Aug 2008 17:48:05 GMT) (full text, mbox, link).


Message #29 received at 148123-done@bugs.debian.org (full text, mbox, reply):

From: Christoph Hellwig <hch@lst.de>
To: 148123-done@bugs.debian.org
Subject: Verified to be fixed in lenny
Date: Thu, 1 Jan 2009 11:26:22 +0100
While we still have one endianess bug open for xfs_db upstream the
one in this bug has been verified to be fixed in xfsprogs-2.9.8-1
in lenny.




Marked as fixed in versions xfsprogs/2.9.5-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:36 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 29 Nov 2013 07:30:43 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 00:24:25 2017; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.