lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170104122205.n6ex2h54kmcevs5d@thunk.org>
Date:   Wed, 4 Jan 2017 07:22:05 -0500
From:   Theodore Ts'o <tytso@....edu>
To:     David Binderman <dcb314@...mail.com>
Cc:     "adilger.kernel@...ger.ca" <adilger.kernel@...ger.ca>,
        "linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: fs/ext4/indirect.c:81: possible 32 / 64 bit mixup ?

On Wed, Jan 04, 2017 at 10:40:38AM +0000, David Binderman wrote:
> Hello there,
> 
> linux-4.10-rc2/fs/ext4/indirect.c:81]: (style) int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information.

The on disk representation of indirect blocks is a u32.  Which is to
say, you can't use an indirect block mapped inode to address physical
block numbers beyond 2**32.  A 64-bit ext4 file system normally only
uses extent-mapped inodes, which can address the full set of block
numbers.

It is _possible_, but rare to have a 64-bit file system with indirect
blocks.  The only way it can happen in practice is with a 32-bit file
system that is later converted to be 64-bit using an off-line
conversion process.

(Which many distributions don't support beecause it's one more thing
for their QA folks to test; it also requires the latest e2fsprogs
1.43.x utilities, and since it's relatively new code, I usually tell
people to backup their file system first.  That way, if it succeeds,
it's faster than doing a backup, mkfs, restore sequence; and if it
fails, you can always fall back to that.  :-)

Cheers,

						- Ted

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ