Debian Bug report logs - #550010
hfsplus corrupts filesystems >2TB

version graph

Package: linux-image-2.6.26-1-amd64; Maintainer for linux-image-2.6.26-1-amd64 is (unknown);

Reported by: Marc Tamsky <[email protected]>

Date: Tue, 6 Oct 2009 23:36:02 UTC

Severity: critical

Found in version linux-2.6/2.6.26-13

Fixed in versions linux-2.6/2.6.31-1~experimental.2, linux-2.6/2.6.26-20

Done: dann frazier <[email protected]>

Bug is archived. No further changes may be made.

Full log


Message #27 received at [email protected] (full text, mbox, reply):

Received: (at 550010) by bugs.debian.org; 7 Oct 2009 20:17:45 +0000
From [email protected] Wed Oct 07 20:17:45 2009
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 46; hammy, 60; neutral, 48; spammy, 6.
	spammytokens:1.000-1--H*r:sk:rebecca,
	1.000-1--HX-Spam-Relays-External:sk:rebecca, 1.000-1--H*RU:sk:rebecca,
	0.998-1--H*x:sk:phpmail, 0.957-+--H*c:alternative
	hammytokens:0.000-+--filesystem, 0.000-+--grep, 0.000-+--Linux,
	0.000-+--HX-SA-Exim-Scanned:expanded, 0.000-+--HX-SA-Exim-Scanned:false
X-Spam-Status: No, score=-2.5 required=4.0 tests=BAYES_00,HTML_MESSAGE,MULTALT,
	MURPHY_DRUGS_REL8 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02
Return-path: <[email protected]>
Received: from thedennisons.org ([209.209.134.67] helo=rebecca.thedennisons.org)
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <[email protected]>)
	id 1MvcxE-0004IC-V3
	for [email protected]; Wed, 07 Oct 2009 20:17:45 +0000
Received: from localhost ([127.0.0.1] helo=thedennisons.org)
	by rebecca.thedennisons.org with esmtp (Exim 4.63)
	(envelope-from <[email protected]>)
	id 1Mvd5T-0007bF-Bg
	for [email protected]; Wed, 07 Oct 2009 16:26:15 -0400
Date: Wed, 7 Oct 2009 16:26:10 -0400
To: [email protected]
From: Dan Dennison <[email protected]>
Subject: CONFIG_LBD has gone missing sometime after 2.6.18
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.1]
X-Mailer: FeLaMiMail
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="b1_305b4dfa6bf2f7a4665cdb40a78bea04"
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: [email protected]
X-SA-Exim-Scanned: No (on rebecca.thedennisons.org); SAEximRunCond expanded to false
[Message part 1 (text/plain, inline)]
$ ls /boot/config*
/boot/config-2.6.18-6-amd64 /boot/config-2.6.29-2-amd64
/boot/config-2.6.26-1-amd64 /boot/config-2.6.30-1-amd64

$ grep LBD /boot/config*
/boot/config-2.6.18-6-amd64:CONFIG_LBD=y

Is it at all concerning that the sd driver tries a read capacity 16 and
fails?

I propose the following sequence of events:

1) 'sd' block device tries to read capacity 16 and fails because CONFIG_LBD
is not asserted, defaulting to a size of 2TB
2) 'hfsplus' then tries to mount this larger-than-2TB filesystem and is
successful
3) Writes to this inappropriately mounted filesystem fail once they run off
of the edge

I submit that the proposed patch is in error, and that hfsplus does very
well support >2TB filesystems on Linux. Further, hfsplus and all filesystem
drivers should check for the degenerate case of block device 

Dan Dennison

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 9 21:37:03 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.